Difference between revisions of "GUIButton"

From Virtual World Web Wiki
Jump to: navigation, search
(Documentation for the GUIButton class)
(Documentation for the GUIButton class)
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
* '''Inherits class: [[GUISelectableComponent]]'''
+
A component representing a clickable button
 +
 
 +
*'''Inherits class: [[GUISelectableComponent]]'''
 
* This is a JavaScript visible object
 
* This is a JavaScript visible object
 
===Remarks <nowiki>[</nowiki>[{{fullurl:GUIButton Remarks|action=edit}} edit]<nowiki>]</nowiki>===
 
===Remarks <nowiki>[</nowiki>[{{fullurl:GUIButton Remarks|action=edit}} edit]<nowiki>]</nowiki>===
{{:GUIButton Remarks}}
+
{{#ifexist:GUIButton Remarks|{{:GUIButton Remarks}}|}}
  
 
===Properties===
 
===Properties===
 +
:{{CSharp|bool Enabled {get; set;} }}
 +
 
:{{CSharp|GUIImageBox Icon {get;} }}
 
:{{CSharp|GUIImageBox Icon {get;} }}
 +
::
 +
::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(EventHandler<FlexibleEventArgs>)}}
+
:{{CSharp|Click()}}
 +
::
 +
::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()