#include "tab_bar.hpp" namespace big { void tabbar::render_settings() { if (ImGui::BeginTabItem("Settings")) { if (ImGui::TreeNode("Protections")) { auto &protections = g_settings.options["settings"]["protections"]; if ( ImGui::Checkbox("Bounty", protections["bounty"].get()) || ImGui::Checkbox("Ceo Ban", protections["ceo_ban"].get()) || ImGui::Checkbox("Ceo Kick", protections["ceo_kick"].get()) || ImGui::Checkbox("Ceo Money", protections["ceo_money"].get()) || ImGui::Checkbox("Clear Wanted Level", protections["clear_wanted_level"].get()) || ImGui::Checkbox("Fake Deposit", protections["fake_deposit"].get()) || ImGui::Checkbox("Force Mission", protections["force_mission"].get()) || ImGui::Checkbox("GTA Banner", protections["gta_banner"].get()) || ImGui::Checkbox("Kick", protections["kick"].get()) || ImGui::Checkbox("Personal Vehicle Destroyed", protections["personal_vehicle_destroyed"].get()) || ImGui::Checkbox("Remote Off Radar", protections["remote_off_radar"].get()) || ImGui::Checkbox("Rotate Cam", protections["rotate_cam"].get()) || ImGui::Checkbox("Send To Cutscene", protections["send_to_cutscene"].get()) || ImGui::Checkbox("Send To Island", protections["send_to_island"].get()) || ImGui::Checkbox("Sound Spam", protections["sound_spam"].get()) || ImGui::Checkbox("Spectate", protections["spectate"].get()) || ImGui::Checkbox("Force Teleport", protections["force_teleport"].get()) || ImGui::Checkbox("Transaction Error", protections["transaction_error"].get()) || ImGui::Checkbox("Vehicle Kick", protections["vehicle_kick"].get()) ) { g_settings.save(); } if (ImGui::Button("Enable All")) features::functions::toggle_protections(true); ImGui::SameLine(); if (ImGui::Button("Disable All")) features::functions::toggle_protections(false); ImGui::TreePop(); } ImGui::EndTabItem(); } } }