refactor(TabBar): Renamed all files

This commit is contained in:
Yimura
2021-01-16 13:19:20 +01:00
parent b1af2a27fa
commit f737495ee5
15 changed files with 24 additions and 17 deletions

View File

@ -23,6 +23,8 @@ namespace big
static void render_misc(); static void render_misc();
static void render_spawn(); static void render_spawn();
static void render_settings(); static void render_settings();
static void player_info();
}; };
} }

View File

@ -103,7 +103,9 @@ namespace big
ImGui::Checkbox("Force Teleport", protections["force_teleport"].get<bool*>()) || ImGui::Checkbox("Force Teleport", protections["force_teleport"].get<bool*>()) ||
ImGui::Checkbox("Transaction Error", protections["transaction_error"].get<bool*>()) || ImGui::Checkbox("Transaction Error", protections["transaction_error"].get<bool*>()) ||
ImGui::Checkbox("Vehicle Kick", protections["vehicle_kick"].get<bool*>()) ImGui::Checkbox("Vehicle Kick", protections["vehicle_kick"].get<bool*>())
) { g_settings.save(); } ) {
g_settings.save();
}
if (ImGui::Button("Enable All")) if (ImGui::Button("Enable All"))
features::functions::toggle_protections(true); features::functions::toggle_protections(true);

View File

@ -1,5 +1,5 @@
#include "window.hpp" #include "gui/window.hpp"
#include "tab_bar/tab_bar.hpp" #include "gui/tab_bar.hpp"
namespace big namespace big
{ {

View File

@ -1,4 +1,5 @@
#include "window.hpp" #include "gui/window.hpp"
#include "gui/tab_bar.hpp"
#include "features.hpp" #include "features.hpp"
#include "pointers.hpp" #include "pointers.hpp"
@ -8,19 +9,21 @@ namespace big
{ {
if (g_selectedPlayer.id != g_selectedPlayerId || !g_selectedPlayer.is_online) return; if (g_selectedPlayer.id != g_selectedPlayerId || !g_selectedPlayer.is_online) return;
if (ImGui::Begin("Player Options")) char title[64];
strcpy(title, "Player Options: ");
strcat(title, g_selectedPlayer.name);
if (ImGui::Begin(title))
{ {
ImGui::Text("Selected player:");
ImGui::SameLine(); ImGui::TextColored({ 25,180,38,255 }, g_selectedPlayer.name);
if (ImGui::Button("Close")) if (ImGui::Button("Close"))
{ {
g_selectedPlayerId = -2; g_selectedPlayerId = -2;
} }
ImGui::Separator(); ImGui::BeginTabBar("tabbar_player");
ImGui::Checkbox("Spectate Player", &g_temp.spectate_player); ImGui::EndTabBar();
ImGui::Separator();
ImGui::Separator(); ImGui::Separator();

View File

@ -1,4 +1,4 @@
#include "window.hpp" #include "gui/window.hpp"
#include "features.hpp" #include "features.hpp"
#include "natives.hpp" #include "natives.hpp"
#include "script.hpp" #include "script.hpp"

View File

@ -1,4 +1,4 @@
#include "window.hpp" #include "gui/window.hpp"
#include "features.hpp" #include "features.hpp"
namespace big namespace big