Tunables service fix and theme changes (#1507)

This commit is contained in:
maybegreat48
2023-06-23 06:43:44 +00:00
committed by GitHub
parent c577258c0d
commit 5e0efaaed5
43 changed files with 1616 additions and 800 deletions

View File

@ -14,7 +14,9 @@ namespace big
return gta_util::get_network()->m_game_session_ptr->is_host();
};
ImGui::Text("Host/breakup kick require Host");
if (!g_player_service->get_self()->is_host())
ImGui::Text("Host and breakup kick require session host");
ImGui::BeginDisabled(!g_player_service->get_self()->is_host());
components::player_command_button<"hostkick">(g_player_service->get_selected());

View File

@ -1,4 +1,5 @@
#include "script/globals/GPBD_FM_3.hpp"
#include "services/script_connection/script_connection_service.hpp"
#include "util/scripts.hpp"
#include "util/vehicle.hpp"
#include "views/view.hpp"