mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-06-17 14:57:27 +08:00
23 lines
616 B
C++
23 lines
616 B
C++
#include "player/player_tabs.hpp"
|
|
#include "gui/window.hpp"
|
|
#include "imgui.h"
|
|
|
|
namespace big
|
|
{
|
|
void window::w_player()
|
|
{
|
|
std::string title = fmt::format("Player Options: {}###player_options", g_player_service->get_selected()->get_name());
|
|
|
|
ImGui::SetNextWindowSize({ 350.f, 300.f }, ImGuiCond_FirstUseEver);
|
|
if (g->window.player && g_player_service->get_selected()->is_valid() && ImGui::Begin(title.c_str(), &g->window.player))
|
|
{
|
|
ImGui::BeginTabBar("tabbar_player");
|
|
tab_player::tab_info();
|
|
tab_player::tab_teleport();
|
|
tab_player::tab_toxic();
|
|
ImGui::EndTabBar();
|
|
|
|
ImGui::End();
|
|
}
|
|
}
|
|
} |