bool GUIControl.Clickable
Gets/sets whether the GUI control is clickable.
This property determines whether the player can click the mouse on the control. If it is set to false,
then any mouse clicks will go straight through the control onto whatever is behind it. Unlike the Enabled
property though, setting Clickable to false does not alter the appearance of the control.
Note that disabling the control by setting Enabled to false overrides this setting -- that is, if Enabled
is false then the control will not be clickable, regardless of the Clickable setting.
Also, bear in mind that if you set Clickable to false then any mouse clicks will go through the control
onto whatever is behind. On the other hand, if Enabled is set to false then the control "absorbs"
the mouse click but does not do anything with it.
Applies To
Inherited by the Button, InvWindow, Label, ListBox, Slider and TextBox.
Example:
btnSaveGame.Clickable = false;
will make the btnSaveGame button non-clickable.
See Also: GUIControl.Enabled
|