Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/gamesetup_mp/gamesetup_mp.xml
Show First 20 Lines • Show All 88 Lines • ▼ Show 20 Lines | <object name="pageHost" size="0 32 100% 100%" hidden="true"> | ||||
<object name="hostServerName" type="input" size="50%+10 40 100%-20 64" style="ModernInput"> | <object name="hostServerName" type="input" size="50%+10 40 100%-20 64" style="ModernInput"> | ||||
<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% 116" style="ModernLabelText" text_align="right"> | <object type="text" size="20 66 50% 104" style="ModernLabelText" text_align="right"> | ||||
<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"> | |||||
<object name="useSTUN" size="120 116 152 146" type="checkbox" style="ModernTickBox"> | |||||
<action on="Press">saveSTUNSetting(String(this.checked));</action> | |||||
</object> | |||||
<object type="text" size="146 106 100% 146" style="ModernLabelText" text_align="left"> | |||||
<translatableAttribute id="caption">Use STUN to work around firewalls</translatableAttribute> | |||||
</object> | |||||
</object> | |||||
</object> | </object> | ||||
<object name="hostFeedback" type="text" style="ModernLabelText" size="50 100%-90 100%-50 100%-50" textcolor="red" /> | <object name="hostFeedback" type="text" style="ModernLabelText" size="50 100%-90 100%-50 100%-50" 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> | ||||
Show All 13 Lines |
Wildfire Games · Phabricator