feat(HandlingCurrentProfile): Added update modal
This commit is contained in:
parent
3a4974a5bd
commit
bffd13987e
@ -5,18 +5,27 @@ namespace big
|
|||||||
void tab_handling::tab_current_profile()
|
void tab_handling::tab_current_profile()
|
||||||
{
|
{
|
||||||
if (ImGui::BeginTabItem("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"))
|
if (ImGui::Button("Save Profile"))
|
||||||
{
|
{
|
||||||
ImGui::OpenPopup("Save Handling");
|
ImGui::OpenPopup("Save Handling");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (ImGui::Button("Update Profile"))
|
||||||
|
{
|
||||||
|
ImGui::OpenPopup("Update Handling");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
modal_handling::modal_save_handling();
|
modal_handling::modal_save_handling();
|
||||||
|
modal_handling::modal_update_handling();
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
if (ImGui::Button("Restore Handling"))
|
if (ImGui::Button("Restore Handling"))
|
||||||
{
|
|
||||||
g_vehicle_service->restore_vehicle();
|
g_vehicle_service->restore_vehicle();
|
||||||
}
|
|
||||||
|
|
||||||
ImGui::Separator();
|
ImGui::Separator();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user