2013-11-07 21:07:24 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
|
|
|
<objects>
|
|
|
|
<script file="gui/lobby/prelobby.js"/>
|
|
|
|
<script file="gui/common/functions_global_object.js"/>
|
|
|
|
<script file="gui/common/functions_utility.js"/>
|
|
|
|
|
2013-12-31 01:01:27 +01:00
|
|
|
<!-- Add a translucent black background to fade out the menu page -->
|
2013-12-31 05:54:16 +01:00
|
|
|
<object type="image" z="0" sprite="modernFade"/>
|
2013-12-31 01:01:27 +01:00
|
|
|
|
|
|
|
<object name="dialog" type="image" style="ModernDialog" size="50%-190 50%-120 50%+190 50%+120">
|
2013-11-07 21:07:24 +01:00
|
|
|
|
|
|
|
<action on="Tick">
|
|
|
|
onTick();
|
|
|
|
</action>
|
|
|
|
|
|
|
|
<object name="pageConnecting" hidden="true">
|
|
|
|
<object name="connectionStatus" type="text" text_align="center" size="0 100 100% 120">
|
|
|
|
[Connection status]
|
|
|
|
</object>
|
|
|
|
</object>
|
|
|
|
|
|
|
|
<object style="TitleText" type="text" size="50%-128 0%-16 50%+128 16">
|
|
|
|
Multiplayer Lobby
|
|
|
|
</object>
|
|
|
|
|
|
|
|
<object name="pageConnect" size="0 32 100% 100%">
|
2013-12-31 01:01:27 +01:00
|
|
|
<object type="text" style="ModernCenteredLabelText" size="0 0 400 30">
|
|
|
|
Connect to the game lobby
|
2013-11-07 21:07:24 +01:00
|
|
|
</object>
|
2013-12-31 01:01:27 +01:00
|
|
|
<object name="connectUsernameLabel" type="text" size="50 40 125 70" style="ModernRightLabelText">
|
2013-11-07 21:07:24 +01:00
|
|
|
Login:
|
|
|
|
</object>
|
2013-12-31 01:01:27 +01:00
|
|
|
<object name="connectUsername" type="input" size="135 40 100%-50 64" style="ModernInput">
|
2013-11-07 21:07:24 +01:00
|
|
|
<action on="Load">
|
|
|
|
this.caption = Engine.ConfigDB_GetValue("user", "lobby.login");
|
|
|
|
</action>
|
|
|
|
</object>
|
2013-12-31 01:01:27 +01:00
|
|
|
<object name="connectPasswordLabel" type="text" size="50 80 125 110" style="ModernRightLabelText">
|
2013-11-07 21:07:24 +01:00
|
|
|
Password:
|
|
|
|
</object>
|
2013-12-31 01:01:27 +01:00
|
|
|
<object name="connectPassword" type="input" size="135 80 100%-50 104" style="ModernInput" mask="true" mask_char="*">
|
2013-11-07 21:07:24 +01:00
|
|
|
<action on="Load">
|
2013-12-31 01:01:27 +01:00
|
|
|
// We only show 10 characters to make it look decent.
|
|
|
|
this.caption = Engine.ConfigDB_GetValue("user", "lobby.password").substring(0, 10);
|
2013-11-07 21:07:24 +01:00
|
|
|
</action>
|
|
|
|
<action on="Press">
|
|
|
|
lobbyStart();
|
|
|
|
</action>
|
|
|
|
</object>
|
|
|
|
</object>
|
|
|
|
<object name="pageRegister" size="0 32 100% 100%" hidden="true">
|
2013-12-31 01:01:27 +01:00
|
|
|
<object type="text" style="ModernCenteredLabelText" size="0 0 400 30">
|
|
|
|
Registration
|
2013-11-07 21:07:24 +01:00
|
|
|
</object>
|
2013-12-31 01:01:27 +01:00
|
|
|
<object type="text" size="50 40 170 70" style="ModernRightLabelText">
|
2013-11-07 21:07:24 +01:00
|
|
|
Password again:
|
|
|
|
</object>
|
2013-12-31 01:01:27 +01:00
|
|
|
<object name="registerPasswordAgain" type="input" size="180 40 100%-50 64" style="ModernInput" mask="true" mask_char="*">
|
2013-11-07 21:07:24 +01:00
|
|
|
<action on="Press">
|
|
|
|
lobbyStartRegister()
|
|
|
|
</action>
|
|
|
|
</object>
|
2013-12-31 01:01:27 +01:00
|
|
|
</object>
|
2013-12-31 02:14:09 +01:00
|
|
|
<object name="feedback" type="text" style="ModernCenteredLabelText" size="50 150 100%-50 190" textcolor="red"/>
|
2013-12-31 01:01:27 +01:00
|
|
|
<object type="button" size="18 100%-45 126 100%-17" style="StoneButton">
|
|
|
|
Cancel
|
|
|
|
<action on="Press">
|
|
|
|
if (getGUIObjectByName("pageRegister").hidden)
|
|
|
|
{
|
2013-11-07 21:07:24 +01:00
|
|
|
lobbyStop();
|
2013-12-31 01:01:27 +01:00
|
|
|
Engine.PopGuiPage();
|
|
|
|
}
|
|
|
|
else
|
|
|
|
switchRegister();
|
|
|
|
</action>
|
|
|
|
</object>
|
|
|
|
<object name="register" type="button" size="136 100%-45 244 100%-17" style="StoneButton">
|
|
|
|
Register
|
|
|
|
<action on="Press">
|
|
|
|
if (getGUIObjectByName("pageRegister").hidden)
|
|
|
|
{
|
|
|
|
switchRegister();
|
|
|
|
}
|
|
|
|
else
|
2013-11-07 21:07:24 +01:00
|
|
|
lobbyStartRegister()
|
2013-12-31 01:01:27 +01:00
|
|
|
</action>
|
|
|
|
</object>
|
|
|
|
<object name="connect" type="button" size="254 100%-45 100%-18 100%-17" style="StoneButton">
|
|
|
|
Connect
|
|
|
|
<action on="Press">
|
|
|
|
lobbyStart();
|
|
|
|
</action>
|
2013-11-07 21:07:24 +01:00
|
|
|
</object>
|
|
|
|
|
|
|
|
</object>
|
|
|
|
|
|
|
|
</objects>
|