Page 1 of 1

Button Names

Posted: Sun Jul 04, 2010 12:35 pm
by rolly
Hi everyone, This is my first post to this forum. I am looking for a way to store and update the value of a variable to a button name. I've looked all over and can't seem to find it anywhere. This was quite easy in Zmud and Cmud. For instance in a limb counter the damage done to a limb is shown on the button and pushing the button attacks the limb. Then I simply made a man-shape out of buttons and triggers to update the damage variables.

Re: Button Names

Posted: Sun Jul 04, 2010 4:07 pm
by demonnic
I don't believe you can do this with actual buttons, but you can using labels, which can be used somewhat like buttons.
See the createLabel(), and the setLabelClickCallback() functions


ETA: Also, labels can take css, making them quite flexible in the formatting arena.