feat(Handling): Added vehicle handling restore

This commit is contained in:
Yimura 2021-08-08 15:10:26 +02:00
parent 956509d747
commit 1f56626a3b
No known key found for this signature in database
GPG Key ID: 3D8FF4397E768682
2 changed files with 8 additions and 0 deletions

View File

@ -6,6 +6,13 @@ namespace big
{
if (ImGui::BeginTabItem("General"))
{
if (ImGui::Button("Restore Handling Data"))
{
g_vehicle_service->restore_vehicle();
}
ImGui::Separator();
ImGui::Text("Gravity");
ImGui::SliderFloat("##Gravity", &g_local_player->m_vehicle->m_gravity, -50.f, 50.f);

View File

@ -16,6 +16,7 @@ namespace big
return;
}
g_vehicle_service->attempt_save();
ImGui::BeginTabBar("handling_tabbar");
tab_handling::tab_general();