Results 1 to 10 of 18

Thread: Account system 2 caracters..

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #14
    Corporal guiismiti's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    244
    Thanks
    121
    Thanked 42 Times in 31 Posts
    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" }
    set logfile 2

  2. The Following User Says Thank You to guiismiti For This Useful Post:

    kung foo man (8th October 2015)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •