feat(Handling): Added vehicle handling restore
This commit is contained in:
parent
956509d747
commit
1f56626a3b
@ -6,6 +6,13 @@ namespace big
|
|||||||
{
|
{
|
||||||
if (ImGui::BeginTabItem("General"))
|
if (ImGui::BeginTabItem("General"))
|
||||||
{
|
{
|
||||||
|
if (ImGui::Button("Restore Handling Data"))
|
||||||
|
{
|
||||||
|
g_vehicle_service->restore_vehicle();
|
||||||
|
}
|
||||||
|
|
||||||
|
ImGui::Separator();
|
||||||
|
|
||||||
ImGui::Text("Gravity");
|
ImGui::Text("Gravity");
|
||||||
ImGui::SliderFloat("##Gravity", &g_local_player->m_vehicle->m_gravity, -50.f, 50.f);
|
ImGui::SliderFloat("##Gravity", &g_local_player->m_vehicle->m_gravity, -50.f, 50.f);
|
||||||
|
|
||||||
|
@ -16,6 +16,7 @@ namespace big
|
|||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
g_vehicle_service->attempt_save();
|
||||||
|
|
||||||
ImGui::BeginTabBar("handling_tabbar");
|
ImGui::BeginTabBar("handling_tabbar");
|
||||||
tab_handling::tab_general();
|
tab_handling::tab_general();
|
||||||
|
Reference in New Issue
Block a user