mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-18 06:03:48 +00:00
- Ensures if there is a $pref::server::password set and you're creating a localConnection game, you can connect even if you don't have a client password set
- Changed ChooseLevelMenu layout to have a vertical list for levels with a static preview set, as well as a separate tab for server configs if trying to create a server - Added field to set password for connecting to passworded servers on the JoinServerMenu - Added sanity check so you can't try and activate a menuList that has no children(caused error spam)
This commit is contained in:
parent
150684a47d
commit
c809dbb4be
6 changed files with 446 additions and 98 deletions
|
|
@ -2,11 +2,20 @@
|
|||
function JoinServerMenu::onWake(%this)
|
||||
{
|
||||
$MenuList = JoinServerList;
|
||||
$MenuList.clear();
|
||||
$Client::Password = "";
|
||||
JoinServerList.listPosition = 0;
|
||||
|
||||
JoinServerList.syncGui();
|
||||
}
|
||||
|
||||
function JoinServerMenu::onSleep(%this)
|
||||
{
|
||||
echo("Exporting client prefs");
|
||||
%prefPath = getPrefpath();
|
||||
export("$pref::*", %prefPath @ "/clientPrefs." @ $TorqueScriptFileExtension, false);
|
||||
}
|
||||
|
||||
if(!isObject( JoinServerActionMap ) )
|
||||
{
|
||||
new ActionMap(JoinServerActionMap){};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue