ID:273152
 
For my purposes, i'm having a menu system that uses a window in the skin that makes buttons on run-time. I don't want to use the command protocol, how would I go about doing this?

Click() doesn't say it works for buttons in the documentation, so i'm clueless on how to do this.
You have to either use dynamically named verbs, or the Command() procedure
In response to Jeff8500
Yeah I figured out that using the command() procedure is the only way, so I put it in the project.

I just don't like the fact that it is possible for the player to be able to execute the button without clicking it by using the command bar alone
In response to Mista-mage123
Just hide the command. For example, name it something random, which you store in the code. That way no one but the most determined person will actually find it.
In response to Jeff8500
Jeff8500 wrote:
You have to either use dynamically named verbs, or the Command() procedure

Or you can use a byond:// URL for a command and use Topic() to retrieve it. You will want to set the command at runtime in order to pass a src parameter to it.