fix(PlayerWindow): Resize only on first use

This commit is contained in:
Yimura 2021-02-02 16:44:51 +01:00
parent 11f67334c7
commit cfed7b703f
No known key found for this signature in database
GPG Key ID: 54EFAD29393A6E78

View File

@ -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"))