mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-06-19 23:47:36 +08:00
27 lines
555 B
C++
27 lines
555 B
C++
![]() |
#include "gui/window.hpp"
|
||
|
#include "imgui.h"
|
||
|
|
||
|
namespace big
|
||
|
{
|
||
|
void window::player()
|
||
|
{
|
||
|
if (!g.selected_player.is_online) return;
|
||
|
|
||
|
char title[64];
|
||
|
strcpy(title, "Player Options: ");
|
||
|
strcat(title, g.selected_player.name);
|
||
|
strcat(title, "###player_options");
|
||
|
|
||
|
ImGui::SetNextWindowSize({ 350.f, 300.f }, ImGuiCond_FirstUseEver);
|
||
|
if (g.window.player && ImGui::Begin(title, &g.window.player))
|
||
|
{
|
||
|
/*ImGui::BeginTabBar("tabbar_player");
|
||
|
|
||
|
ImGui::EndTabBar();*/
|
||
|
|
||
|
ImGui::Checkbox("Spectate", &g.player.spectating);
|
||
|
|
||
|
ImGui::End();
|
||
|
}
|
||
|
}
|
||
|
}
|