2021-07-23 23:02:46 +02:00
|
|
|
#include "player/player_tabs.hpp"
|
2021-05-26 13:17:19 +02:00
|
|
|
#include "gui/window.hpp"
|
|
|
|
#include "imgui.h"
|
|
|
|
|
|
|
|
namespace big
|
|
|
|
{
|
|
|
|
void window::player()
|
|
|
|
{
|
2021-07-26 21:22:01 +02:00
|
|
|
if (!g.selected_player.is_online || g.selected_player.net_player == nullptr)
|
|
|
|
{
|
|
|
|
g.window.player = false;
|
|
|
|
|
|
|
|
return;
|
|
|
|
}
|
2021-05-26 13:17:19 +02:00
|
|
|
|
|
|
|
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))
|
|
|
|
{
|
2021-07-23 23:02:46 +02:00
|
|
|
ImGui::BeginTabBar("tabbar_player");
|
|
|
|
tab_player::tab_info();
|
2021-07-25 21:02:57 +02:00
|
|
|
tab_player::tab_teleport();
|
2021-07-23 23:02:46 +02:00
|
|
|
ImGui::EndTabBar();
|
2021-05-26 13:17:19 +02:00
|
|
|
|
|
|
|
ImGui::End();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|