Difference between revisions of "GUIButton"

From Virtual World Web Wiki
Jump to: navigation, search
(Documentation for the GUIButton class)
(Documentation for the GUIButton class)
 
(4 intermediate revisions by the same user not shown)
Line 7: Line 7:
  
 
===Properties===
 
===Properties===
 +
:{{CSharp|bool Enabled {get; set;} }}
 +
 
:{{CSharp|GUIImageBox Icon {get;} }}
 
:{{CSharp|GUIImageBox Icon {get;} }}
 
::
 
::
 
::Reference to the icon Imagebox on the button
 
::Reference to the icon Imagebox on the button
 +
 +
:{{CSharp|bool RaycastMask {get; set;} }}
 +
::
 +
::Whether this button should mask its hit area
  
 
===Events===
 
===Events===
:{{CSharp|OnClick()}}
+
:{{CSharp|Click()}}
 
::
 
::
 
::Event fired when the user clicks the button
 
::Event fired when the user clicks the button
 +
 +
:{{CSharp|RightClick()}}
  
 
__NOTOC____NOEDITSECTION__
 
__NOTOC____NOEDITSECTION__

Latest revision as of 17:18, 19 November 2018

A component representing a clickable button

Remarks [edit]

Properties

bool Enabled {get; set;}
GUIImageBox Icon {get;}
Reference to the icon Imagebox on the button
bool RaycastMask {get; set;}
Whether this button should mask its hit area

Events

Click()
Event fired when the user clicks the button
RightClick()