ID:156398
 
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
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.
In response to Garthor
ok so how would I go about getting it to call the login proc
In response to Wrath69
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.
In response to Garthor
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.
In response to Wolfnova
Just for clarity, buttons may not call procs. Buttons may only call verbs and call client-side commands.
In response to Spunky_Girl
So i would have to make the proc a verb, in order for it to be called by the button?
In response to Wolfnova
Yes
In response to Spunky_Girl
ahh cool thanx for the help
In response to Wolfnova
I don't particularly care to piece out what you are attempting to say there. Regardless: don't use Login() for it. Define your own proc, don't pervert a built-in one.