This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.

28 lines
712 B
C++
Raw Normal View History

2021-01-16 13:19:20 +01:00
#include "gui/window.hpp"
#include "gui/tab_bar.hpp"
2020-12-26 20:15:32 +01:00
namespace big
{
void window::render_player_window()
2020-12-26 20:15:32 +01:00
{
if (g_selectedPlayer.id != g_selectedPlayer.id || !g_selectedPlayer.is_online) return;
2020-12-26 20:15:32 +01:00
2021-01-16 13:19:20 +01:00
char title[64];
strcpy(title, "Player Options: ");
strcat(title, g_selectedPlayer.name);
strcat(title, "###player_options");
ImGui::SetNextWindowSize({ 350.f, 300.f }, ImGuiCond_FirstUseEver);
if (g_temp.windows.player && ImGui::Begin(title, &g_temp.windows.player))
2020-12-26 20:15:32 +01:00
{
2021-01-16 13:19:20 +01:00
ImGui::BeginTabBar("tabbar_player");
tabbar::player_info();
tabbar::player_griefing();
tabbar::player_teleport();
tabbar::player_drop();
2021-01-16 13:19:20 +01:00
ImGui::EndTabBar();
2020-12-26 20:15:32 +01:00
ImGui::End();
}
}
}