Add message to help new users register for the lobby.
This was SVN commit r14457.
This commit is contained in:
parent
2008ebc9d6
commit
b3a74e8f72
@ -101,10 +101,13 @@ function onTick()
|
||||
var registerButton = getGUIObjectByName("register");
|
||||
var sanitizedName = sanitizePlayerName(username, true, true)
|
||||
// If there aren't a username and password entered, we can't start registration or connection.
|
||||
|
||||
if (!username || !password)
|
||||
{
|
||||
connectButton.enabled = false;
|
||||
registerButton.enabled = false;
|
||||
if (!username && !password)
|
||||
feedback.caption = "Please enter existing login or desired registration credentials.";
|
||||
}
|
||||
// Check they are using a valid account name.
|
||||
else if (username != sanitizedName)
|
||||
@ -116,7 +119,8 @@ function onTick()
|
||||
// Allow them to connect/begin registation if there aren't any problems.
|
||||
else if (pageRegisterHidden)
|
||||
{
|
||||
if (feedback.caption == "Sorry, you can't use [, ], unicode, whitespace, or commas.")
|
||||
if (feedback.caption == "Sorry, you can't use [, ], unicode, whitespace, or commas." ||
|
||||
feedback.caption == "Please enter existing login or desired registration credentials.")
|
||||
feedback.caption = "";
|
||||
connectButton.enabled = true;
|
||||
registerButton.enabled = true;
|
||||
|
@ -63,7 +63,7 @@
|
||||
</action>
|
||||
</object>
|
||||
</object>
|
||||
<object name="feedback" type="text" style="ModernCenteredLabelText" size="50 150 100%-50 180" textcolor="red"/>
|
||||
<object name="feedback" type="text" style="ModernCenteredLabelText" size="50 150 100%-50 190" textcolor="red"/>
|
||||
<object type="button" size="18 100%-45 126 100%-17" style="StoneButton">
|
||||
Cancel
|
||||
<action on="Press">
|
||||
|
Loading…
Reference in New Issue
Block a user