Since I'm remaking what I've lost, I'd just like to complement this with a TAB function (to easily switch between the user name and password fields).
This should be included as a menu response under the possible responses for the login and register menus:
PHP Code:
else if(response == "tab")
{
if(self.edittext == true)
{
self.edittext = false;
self setclientcvar("loginname", self.lname + "_");
self setclientcvar("loginpw", self.lpw);
continue;
}
else if(self.edittext == false)
{
self.edittext = true;
self setclientcvar("loginname", self.lname);
self setclientcvar("loginpw", self.lpw + "_");
continue;
}
}
And this should be added to both login.menu and register.menu:
Code:
execKeyInt 9 { play "mouse_click"; scriptMenuResponse "tab" }