Custom window login.

Posted by MrSloth
<constants>
@c_my_window: $AB8778;
@c_my_border: $391506;
</constants>
<styles>
overlay:
{
width: max;
height: max;
background-alpha: 0.5;
}

window:
{
center: true;
width: 325;
height: 400;
}



input:
{
background: $ffffff;
border-size: 1;
width: 135;
height: 25;
center: true;
margin: 5;
margin-bottom: 150;
password:
{
margin-bottom: 80;
password: true;
}
}

button:
{
width: 135;
height: 25;
center: true;
margin: 5;
register:
{
margin-bottom: -60;
}
}

error:
{
center: true;
margin-bottom: -200;
height: 70;
width: max;
}

</styles>
<layout>
<canvas style[overlay]>
<canvas style[window]>
<textbox style[input] name[login.username]>Username</textbox>
<textbox style[input, input.password] name[login.password] >Password</textbox>
<button style[button] name[login.login]>LOGIN</button>
<button style[button, button.register] name[login.register]>REGISTER</button>
<label style[error] name[login.error]></label>
</canvas>
</c

Replies (2)

Last message on 26 Sep 2016

MrSloth (Topicstarter) on 22 Sep 2016, 00:48:20
The problem im having is the login button does not work?
Size43 (Administrator) on 26 Sep 2016, 19:50:39
Does the game connect to the server succesfully? What does gms_info_isloggedin() return?