2
0
Эх сурвалжийг харах

typofix. also, repopulate pref GuiTextEditCtrl each onWake just to be sure

AzaezelX 1 жил өмнө
parent
commit
f4491f8202

+ 2 - 2
Templates/BaseGame/game/data/UI/guis/ChooseLevelMenu.tscript

@@ -26,12 +26,11 @@ function ChooseLevelMenu::onAdd( %this )
       new AssetQuery(ChooseLevelAssetQuery);
       
    %this.previewButtonSize = "445 120";
-   %this.fillPrefEntries();
 }
 
 function ChooseLevelMenu::fillPrefEntries( %this )
 {
-    serverNameCTRL.setText($Pref::Player::Name);
+    playerNameCTRL.setText($Pref::Player::Name);
     serverNameCTRL.setText($Pref::Server::Name);
     serverPassCTRL.setText($Pref::Server::Password);
     serverInfoCTRL.setText($Pref::Server::Info);
@@ -40,6 +39,7 @@ function ChooseLevelMenu::fillPrefEntries( %this )
 
 function ChooseLevelMenu::onWake(%this)
 {
+   %this.fillPrefEntries();
    LevelPreviewArray.clear();
    
    ChooseLevelAssetQuery.clear();