fix(PlayerWindow): Resize only on first use
This commit is contained in:
parent
11f67334c7
commit
cfed7b703f
@ -10,8 +10,9 @@ namespace big
|
|||||||
char title[64];
|
char title[64];
|
||||||
strcpy(title, "Player Options: ");
|
strcpy(title, "Player Options: ");
|
||||||
strcat(title, g_selectedPlayer.name);
|
strcat(title, g_selectedPlayer.name);
|
||||||
|
strcat(title, "###player_options");
|
||||||
|
|
||||||
ImGui::SetNextWindowSize({ 350.f, 300.f });
|
ImGui::SetNextWindowSize({ 350.f, 300.f }, ImGuiCond_FirstUseEver);
|
||||||
if (ImGui::Begin(title))
|
if (ImGui::Begin(title))
|
||||||
{
|
{
|
||||||
if (ImGui::Button("Close"))
|
if (ImGui::Button("Close"))
|
||||||
|
Reference in New Issue
Block a user