Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/gamesetup_mp/gamesetup_mp.xml
<?xml version="1.0" encoding="utf-8"?> | <?xml version="1.0" encoding="utf-8"?> | ||||
<objects> | <objects> | ||||
<script directory="gui/common/"/> | <script directory="gui/common/"/> | ||||
<script directory="gui/gamesetup_mp/"/> | <script directory="gui/gamesetup_mp/"/> | ||||
<!-- Add a translucent black background to fade out the menu page --> | <!-- Add a translucent black background to fade out the menu page --> | ||||
<object type="image" sprite="ModernFade"/> | <object type="image" sprite="ModernFade"/> | ||||
<object name="multiplayerPages" type="image" style="ModernDialog" size="50%-230 50%-120 50%+230 50%+120"> | <object name="multiplayerPages" type="image" style="ModernDialog" size="50%-230 50%-172 50%+230 50%+172"> | ||||
<action on="Tick"> | <action on="Tick"> | ||||
onTick(); | onTick(); | ||||
</action> | </action> | ||||
<object style="ModernLabelText" type="text" size="50%-128 0%-16 50%+128 16"> | <object style="ModernLabelText" type="text" size="50%-128 0%-16 50%+128 16"> | ||||
<translatableAttribute id="caption">Multiplayer</translatableAttribute> | <translatableAttribute id="caption">Multiplayer</translatableAttribute> | ||||
</object> | </object> | ||||
<object name="pageJoin" size="0 32 100% 100%" hidden="true"> | <object name="pageJoin" size="0 20 100% 100%-45" 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">Joining an existing game.</translatableAttribute> | <translatableAttribute id="caption">Joining an existing game.</translatableAttribute> | ||||
</object> | </object> | ||||
<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> | ||||
Show All 24 Lines | <object name="pageJoin" size="0 20 100% 100%-45" hidden="true"> | ||||
this.caption = getValidPort(Engine.ConfigDB_GetValue("user", "multiplayerjoining.port")); | this.caption = getValidPort(Engine.ConfigDB_GetValue("user", "multiplayerjoining.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="pageHost" size="0 32 100% 100%" hidden="true"> | <object name="pageHost" size="0 20 100% 100%-45" 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> | ||||
Show All 15 Lines | <object name="pageHost" size="0 20 100% 100%-45" hidden="true"> | ||||
<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 76 50% 100" 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 76 100%-20 100" 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> | ||||
<!-- Host password is only used on games started through the lobby. --> | <!-- Host password is only used on games started through the lobby. --> | ||||
<object name="hostPasswordWrapper" size="0 116 100% 126" hidden="true"> | <object name="hostPasswordWrapper" hidden="true"> | ||||
<object type="text" size="20 0 50% 22" style="ModernRightLabelText"> | <object type="text" size="20 110 50% 134" style="ModernRightLabelText"> | ||||
<translatableAttribute id="caption">Server Password:</translatableAttribute> | <translatableAttribute id="caption">Server Password:</translatableAttribute> | ||||
<translatableAttribute id="tooltip">Leave blank to not require it.</translatableAttribute> | <translatableAttribute id="tooltip">Leave blank to not require it.</translatableAttribute> | ||||
</object> | </object> | ||||
<object name="hostPassword" type="input" size="50%+10 0 100%-20 22" style="ModernInput" mask="true" mask_char="*" max_length="256"> | <object name="hostPassword" type="input" size="50%+10 110 100%-20 134" style="ModernInput" mask="true" mask_char="*" max_length="256"> | ||||
<action on="Load"> | <action on="Load"> | ||||
this.caption = getDefaultPassword(); | this.caption = getDefaultPassword(); | ||||
</action> | </action> | ||||
</object> | </object> | ||||
</object> | </object> | ||||
<object name="hostSTUNWrapper" size="120 136 100% 180"> | <object name="hostSTUNWrapper" hidden="true"> | ||||
<object name="useSTUN" size="0 10 32 100%" type="checkbox" style="ModernTickBox"> | <object name="useSTUN" size="120 144 152 168" type="checkbox" style="ModernTickBox"> | ||||
<action on="Press">Engine.ConfigDB_CreateAndSaveValue("user", "lobby.stun.enabled", String(this.checked));</action> | <action on="Press">Engine.ConfigDB_CreateAndSaveValue("user", "lobby.stun.enabled", String(this.checked));</action> | ||||
</object> | </object> | ||||
<object type="text" size="26 0 100% 100%" style="ModernLeftLabelText"> | <object type="text" size="146 144 100% 168" 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 name="aclsWrapper" hidden="true"> | |||||
<object name="useACLs" size="120 178 152 202" type="checkbox" style="ModernTickBox"> | |||||
<action on="Press">Engine.ConfigDB_CreateAndSaveValue("user", "acls.server.enable", String(this.checked));</action> | |||||
</object> | |||||
<object type="text" size="146 178 100% 202" style="ModernLeftLabelText"> | |||||
<translatableAttribute id="caption">Use Access Control Lists (ACLs)</translatableAttribute> | |||||
</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> | ||||
Show All 30 Lines |
Wildfire Games · Phabricator