Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/gui/gamesetup_mp/gamesetup_mp.xml
Show First 20 Lines • Show All 100 Lines • ▼ Show 20 Lines | <object name="pageHost" size="0 32 100% 100%" hidden="true"> | ||||
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" mask="true" mask_char="*" max_length="256"> | |||||
<action on="Load"> | |||||
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> | ||||
</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" mask="true" mask_char="*" 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> | |||||
</object> | |||||
</object> | </object> | ||||
</objects> | </objects> |
Wildfire Games · Phabricator