Update tab_settings.cpp

fix(GUI): using ImGui::TreeNode and ImGui::TreePop in settings.cpp
This commit is contained in:
The-Denno 2022-01-05 18:43:03 +01:00
parent f1bfa8e22d
commit cea523f391

View File

@ -6,8 +6,8 @@ namespace big
{ {
if (ImGui::BeginTabItem("Settings")) if (ImGui::BeginTabItem("Settings"))
{ {
ImGui::Text("Protections:"); if (ImGui::TreeNode("Protections"))
{
ImGui::Checkbox("Bounty", &g.protections.script_events.bounty); ImGui::Checkbox("Bounty", &g.protections.script_events.bounty);
ImGui::Checkbox("CEO Ban", &g.protections.script_events.ceo_ban); ImGui::Checkbox("CEO Ban", &g.protections.script_events.ceo_ban);
ImGui::Checkbox("CEO Kick", &g.protections.script_events.ceo_kick); ImGui::Checkbox("CEO Kick", &g.protections.script_events.ceo_kick);
@ -26,6 +26,9 @@ namespace big
ImGui::Checkbox("Transaction Error", &g.protections.script_events.transaction_error); ImGui::Checkbox("Transaction Error", &g.protections.script_events.transaction_error);
ImGui::Checkbox("Vehicle Kick", &g.protections.script_events.vehicle_kick); ImGui::Checkbox("Vehicle Kick", &g.protections.script_events.vehicle_kick);
ImGui::TreePop();
}
ImGui::EndTabItem(); ImGui::EndTabItem();
} }
} }