GUIToggle

From Virtual World Web Wiki
Jump to: navigation, search

A component representing a control that can toggle between true and false states

Remarks [edit]

Properties

GUISprite Checkmark {get;}
Reference to the image that changes when the value updates
GUIImageBox CheckmarkImage {get;}
Reference to the imagebox that changes when the value updates
bool Enabled {get; set;}
int Group {get; set;}
Makes this toggle function like a radio button within this window.
string GroupName {get; set;}
bool HideBackgroundWhenActive {get; set;}
Should the background of the tab disappear when toggled on? Helpful for in/out arrow toggles
Type ImageType {get; set;}
bool PreserveAspect {get; set;}
bool RequireSelection {get; set;}
Does the Group of toggles always have a selection?
bool SpaceTogglesValue {get; set;}
Does pressing Space toggle the value?
bool Value {get; set;}
Current toggled state

Events

OnToggle()
Event fired when value changes