feat(Windows): Added toggle for player window
This commit is contained in:
parent
5c20bcbdb8
commit
d08b6f969f
@ -54,6 +54,7 @@ namespace big
|
|||||||
if (ImGui::BeginMenu("Windows"))
|
if (ImGui::BeginMenu("Windows"))
|
||||||
{
|
{
|
||||||
ImGui::MenuItem("Main", nullptr, &g.window.main);
|
ImGui::MenuItem("Main", nullptr, &g.window.main);
|
||||||
|
ImGui::MenuItem("Players", nullptr, &g.window.users);
|
||||||
ImGui::MenuItem("Logs", nullptr, &g.window.log);
|
ImGui::MenuItem("Logs", nullptr, &g.window.log);
|
||||||
|
|
||||||
ImGui::EndMenu();
|
ImGui::EndMenu();
|
||||||
|
@ -12,7 +12,7 @@ namespace big
|
|||||||
|
|
||||||
ImGui::SetNextWindowSize({ width, (float)g.window.y - height_correction }, ImGuiCond_Always);
|
ImGui::SetNextWindowSize({ width, (float)g.window.y - height_correction }, ImGuiCond_Always);
|
||||||
ImGui::SetNextWindowPos({ g.window.x - width, height_correction }, ImGuiCond_Always);
|
ImGui::SetNextWindowPos({ g.window.x - width, height_correction }, ImGuiCond_Always);
|
||||||
if (ImGui::Begin("###player_menu", NULL, ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoNav))
|
if (g.window.users && ImGui::Begin("###player_menu", NULL, ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoNav))
|
||||||
{
|
{
|
||||||
auto vecButtonWidth = ImVec2(ImGui::GetWindowSize().x - 15.f, 0.0f);
|
auto vecButtonWidth = ImVec2(ImGui::GetWindowSize().x - 15.f, 0.0f);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user