(Formerly part of GetButtonPic, which is now obsolete)
readonly int Button.Graphic;
Gets the current image on a GUI button. If a value less than 1 is returned,
then no image is currently displayed on the button.
This property is read-only; in order to set the image, you must use one of the
NormalGraphic,
MouseOverGraphic or
PushedGraphic properties.
Example:
Display("The button is currently using sprite %d.", btnPlay.Graphic);
will display btnPlay's current sprite number.
See Also: Button.ClipImage,
Button.MouseOverGraphic,
Button.NormalGraphic,
Button.PushedGraphic
|