ID:156398
![]() Oct 19 2010, 8:38 pm
|
|
Im not sure how to do this since i just started messing with interface skins but I was wondering how to call a proc in a command line of a button like a user clicks the login button on the title screen and it logs them in
|
![]() Oct 19 2010, 9:49 pm
|
|
The command property of a button is the command that a client will execute (exactly as if they typed it into the command line) when they click that button.
|
The Login() proc is called in response to a very specific event (a client taking control of a mob). Making a verb call it would be an incredibly poor design choice.
|
What i would do, is set up the current login() proc, to only get you to that screen, and to prompt for any choices, if needed, then go to login screen, then make a proc, for the actual login, in this this case, and have the button call that proc.
|
Just for clarity, buttons may not call procs. Buttons may only call verbs and call client-side commands.
|