Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/gamesetup_mp/gamesetup_mp.xml
Show First 20 Lines • Show All 58 Lines • ▼ Show 20 Lines | <object name="pageJoin" size="0 32 100% 100%" hidden="true"> | ||||
</object> | </object> | ||||
</object> | </object> | ||||
<object name="pageHost" size="0 32 100% 100%" hidden="true"> | <object name="pageHost" size="0 32 100% 100%" hidden="true"> | ||||
<object type="text" style="ModernLabelText" size="0 0 100% 30"> | <object type="text" style="ModernLabelText" size="0 0 100% 30"> | ||||
<translatableAttribute id="caption">Set up your server to host.</translatableAttribute> | <translatableAttribute id="caption">Set up your server to host.</translatableAttribute> | ||||
</object> | </object> | ||||
<object name="hostPlayerNameWrapper" hidden="true"> | <object name="hostPlayerNameWrapper" hidden="true"> | ||||
<object type="text" size="20 36 50% 66" style="ModernRightLabelText"> | <object type="text" size="20 36 50% 66" style="ModernRightLabelText"> | ||||
<translatableAttribute id="caption">Player Name:</translatableAttribute> | <translatableAttribute id="caption">Player Name:</translatableAttribute> | ||||
</object> | </object> | ||||
<object name="hostPlayerName" type="input" size="50%+10 40 100%-20 64" style="ModernInput"> | <object name="hostPlayerName" type="input" size="50%+10 40 100%-20 64" style="ModernInput"> | ||||
<action on="Load"> | <action on="Load"> | ||||
this.caption = multiplayerName(); | this.caption = multiplayerName(); | ||||
</action> | </action> | ||||
</object> | </object> | ||||
</object> | </object> | ||||
<!-- Host server name is only used on games started through the lobby. --> | |||||
<object name="hostServerNameWrapper" hidden="true"> | <object name="hostServerNameWrapper" hidden="true"> | ||||
<object type="text" size="20 36 50% 66" style="ModernRightLabelText"> | <object type="text" size="20 36 50% 66" style="ModernRightLabelText"> | ||||
<translatableAttribute id="caption">Server Name:</translatableAttribute> | <translatableAttribute id="caption">Server Name:</translatableAttribute> | ||||
</object> | </object> | ||||
<object name="hostServerName" type="input" size="50%+10 40 100%-20 64" style="ModernInput" max_length="256"> | <object name="hostServerName" type="input" size="50%+10 40 100%-20 64" style="ModernInput" max_length="256"> | ||||
<action on="Load"> | <action on="Load"> | ||||
this.caption = getDefaultGameName(); | this.caption = getDefaultGameName(); | ||||
</action> | </action> | ||||
</object> | </object> | ||||
</object> | </object> | ||||
<object> | <object> | ||||
<object type="text" size="20 66 50% 104" style="ModernRightLabelText"> | <object type="text" size="20 66 50% 104" style="ModernRightLabelText"> | ||||
<translatableAttribute id="caption">Server Port:</translatableAttribute> | <translatableAttribute id="caption">Server Port:</translatableAttribute> | ||||
</object> | </object> | ||||
<object name="hostPort" type="input" size="50%+10 80 100%-20 104" style="ModernInput"> | <object name="hostPort" type="input" size="50%+10 80 100%-20 104" style="ModernInput"> | ||||
<translatableAttribute id="tooltip">Leave blank to use the default port.</translatableAttribute> | <translatableAttribute id="tooltip">Leave blank to use the default port.</translatableAttribute> | ||||
<action on="Load"> | <action on="Load"> | ||||
this.caption = getValidPort(Engine.ConfigDB_GetValue("user", "multiplayerhosting.port")); | this.caption = getValidPort(Engine.ConfigDB_GetValue("user", "multiplayerhosting.port")); | ||||
</action> | </action> | ||||
<action on="Press"> | <action on="Press"> | ||||
this.caption = getValidPort(this.caption); | this.caption = getValidPort(this.caption); | ||||
</action> | </action> | ||||
</object> | </object> | ||||
</object> | </object> | ||||
<object name="hostSTUNWrapper" size="120 106 100% 146"> | <!-- Host password is only used on games started through the lobby. --> | ||||
<object name="hostPasswordWrapper" size="0 116 100% 126" hidden="true"> | |||||
<object type="text" size="20 0 50% 22" style="ModernRightLabelText"> | |||||
<translatableAttribute id="caption">Server Password:</translatableAttribute> | |||||
<translatableAttribute id="tooltip">Leave blank to not require it.</translatableAttribute> | |||||
</object> | |||||
<object name="hostPassword" type="input" size="50%+10 0 100%-20 22" style="ModernInput" max_length="256"> | |||||
<action on="Load"> | |||||
Stan: Don't we do the js function assignation on the js side now? | |||||
this.caption = getDefaultPassword(); | |||||
</action> | |||||
</object> | |||||
</object> | |||||
<object name="hostSTUNWrapper" size="120 136 100% 180"> | |||||
<object name="useSTUN" size="0 10 32 100%" type="checkbox" style="ModernTickBox"> | <object name="useSTUN" size="0 10 32 100%" type="checkbox" style="ModernTickBox"> | ||||
<action on="Press">Engine.ConfigDB_CreateAndWriteValueToFile("user", "lobby.stun.enabled", String(this.checked), "config/user.cfg");</action> | <action on="Press">Engine.ConfigDB_CreateAndWriteValueToFile("user", "lobby.stun.enabled", String(this.checked), "config/user.cfg");</action> | ||||
</object> | </object> | ||||
<object type="text" size="26 0 100% 100%" style="ModernLeftLabelText"> | <object type="text" size="26 0 100% 100%" style="ModernLeftLabelText"> | ||||
<translatableAttribute id="caption">Use STUN to work around firewalls</translatableAttribute> | <translatableAttribute id="caption">Use STUN to work around firewalls</translatableAttribute> | ||||
</object> | </object> | ||||
</object> | </object> | ||||
Done Inline ActionsNuke? Stan: Nuke? | |||||
</object> | </object> | ||||
<object name="hostFeedback" type="text" style="ModernLabelText" size="50 100%-80 100%-50 100%-45" textcolor="red"/> | <object name="hostFeedback" type="text" style="ModernLabelText" size="50 100%-80 100%-50 100%-45" textcolor="red"/> | ||||
<object name="continueButton" hotkey="confirm" type="button" size="50%+5 100%-45 100%-18 100%-17" style="ModernButtonRed"> | <object name="continueButton" hotkey="confirm" type="button" size="50%+5 100%-45 100%-18 100%-17" style="ModernButtonRed"> | ||||
<translatableAttribute id="caption">Continue</translatableAttribute> | <translatableAttribute id="caption">Continue</translatableAttribute> | ||||
<action on="Press">confirmSetup();</action> | <action on="Press">confirmSetup();</action> | ||||
</object> | </object> | ||||
<object type="button" style="ModernButtonRed" size="18 100%-45 50%-5 100%-17" hotkey="cancel"> | <object type="button" style="ModernButtonRed" size="18 100%-45 50%-5 100%-17" hotkey="cancel"> | ||||
<translatableAttribute id="caption">Cancel</translatableAttribute> | <translatableAttribute id="caption">Cancel</translatableAttribute> | ||||
<action on="Press">cancelSetup();</action> | <action on="Press">cancelSetup();</action> | ||||
</object> | </object> | ||||
<object name="pageConnecting" hidden="true"> | <object name="pageConnecting" hidden="true"> | ||||
<object name="connectionStatus" type="text" style="ModernLabelText" size="0 100 100% 120"/> | <object name="connectionStatus" type="text" style="ModernLabelText" size="0 50%-10 100% 50%+10"/> | ||||
</object> | </object> | ||||
<object name="pagePassword" size="0 32 100% 100%" hidden="true"> | |||||
<object name="clientPasswordWrapper" size="0 0 100% 40"> | |||||
<object type="text" size="20 0 50% 22" style="ModernRightLabelText"> | |||||
<translatableAttribute id="caption">Password:</translatableAttribute> | |||||
</object> | |||||
<object name="clientPassword" type="input" size="50%+10 0 100%-20 22" style="ModernInput" max_length="256"> | |||||
<action on="Load"> | |||||
this.caption = getDefaultPassword(); | |||||
</action> | |||||
</object> | |||||
</object> | |||||
<object name="confirmPasswordButton" hotkey="confirm" type="button" size="50%+5 100%-45 100%-18 100%-17" style="ModernButtonRed"> | |||||
<translatableAttribute id="caption">Confirm</translatableAttribute> | |||||
<action on="Press">confirmPassword();</action> | |||||
</object> | |||||
Done Inline ActionsNuke? Stan: Nuke? | |||||
</object> | |||||
</object> | </object> | ||||
</objects> | </objects> |
Wildfire Games · Phabricator
Don't we do the js function assignation on the js side now?