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

This commit is contained in:
AzaezelX 2024-01-04 13:10:17 -06:00
parent e4342079f1
commit f4491f8202

View file

@ -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();