feat(HandlingCurrentProfile): Added update modal

This commit is contained in:
Yimura 2021-09-18 22:15:45 +02:00
parent 3a4974a5bd
commit bffd13987e
No known key found for this signature in database
GPG Key ID: 3D8FF4397E768682

View File

@ -5,18 +5,27 @@ namespace big
void tab_handling::tab_current_profile()
{
if (ImGui::BeginTabItem("Current Profile"))
{
if (g_vehicle_service->get_active_profile(g_local_player->m_vehicle->m_handling->m_model_hash).empty())
{
if (ImGui::Button("Save Profile"))
{
ImGui::OpenPopup("Save Handling");
}
}
else
{
if (ImGui::Button("Update Profile"))
{
ImGui::OpenPopup("Update Handling");
}
}
modal_handling::modal_save_handling();
modal_handling::modal_update_handling();
ImGui::SameLine();
if (ImGui::Button("Restore Handling"))
{
g_vehicle_service->restore_vehicle();
}
ImGui::Separator();