This is refactored checkbox preserving its own class and API for compatability purposes.
More...
|
bool | IsChecked () |
|
void | SetChecked (bool value, bool animate=true, bool playSound=true) |
|
override void | OnElementChanged (SCR_ButtonBaseComponent comp, bool state) |
|
override void | HandlerAttached (Widget w) |
|
override bool | OnFocus (Widget w, int x, int y) |
|
override bool | OnFocusLost (Widget w, int x, int y) |
|
void | OnElementClicked (SCR_ButtonBaseComponent comp) |
|
void | OnElementChanged (SCR_ButtonBaseComponent comp, bool state) |
|
override bool | SetCurrentItem (int i, bool playSound=false, bool animate=false) |
|
override bool | OnMouseEnter (Widget w, int x, int y) |
|
int | GetItems (notnull array< SCR_ButtonBaseComponent > elements) |
|
SCR_ButtonBaseComponent | GetItem (int index) |
|
override int | AddItem (string item, bool last=false, Managed data=null) |
|
override void | ClearAll () |
|
override void | RemoveItem (int item, bool last=false) |
|
bool | IsItemSelected (int index) |
|
void | SetItemSelected (int index, bool select, bool animate=true) |
|
void | SetFocusedItem (int index, bool animate=true) |
|
void | SetFocusedItem (SCR_ButtonBaseComponent element, bool animate=true) |
|
int | GetFocusedItem () |
|
int | AddItem (string item, bool last=false, Managed data=null) |
|
void | ClearAll () |
|
void | RemoveItem (int item, bool last=false) |
|
int | GetCurrentIndex () |
|
string | GetCurrentItem () |
|
Managed | GetCurrentItemData () |
|
string | GetItemName (int item) |
|
Managed | GetItemData (int item) |
|
int | GetNumItems () |
|
bool | SetCurrentItem (int i, bool playSound=false, bool animate=false) |
|
override void | HandlerAttached (Widget w) |
|
override bool | OnFocus (Widget w, int x, int y) |
|
override bool | OnFocusLost (Widget w, int x, int y) |
|
override bool | OnMouseEnter (Widget w, int x, int y) |
|
override bool | OnMouseLeave (Widget w, Widget enterW, int x, int y) |
|
TextWidget | GetLabel () |
|
void | SetLabel (string label) |
|
void | UseLabel (bool use) |
|
bool | IsUsingLabel () |
|
Widget | GetLabelWidget () |
| If label is not used, label widget might not exist at all!
|
|
void | SetSizeWithLabel (float size) |
|
void | SetSizeWithoutLabel (float size) |
|
override void | HandlerAttached (Widget w) |
|
override bool | OnClick (Widget w, int x, int y, int button) |
|
override bool | OnMouseEnter (Widget w, int x, int y) |
|
override bool | OnFocus (Widget w, int x, int y) |
|
void | SetHoverSound (string soundHover) |
|
void | SetClickedSound (string soundClicked) |
|
string | GetHoverSound () |
|
string | GetClickedSound () |
|
void | SetEnabled (bool enabled, bool animate=true) |
|
void | SetVisible (bool visible, bool animate=true) |
|
bool | IsEnabled () |
|
void | SetMouseOverToFocus (bool mouseOverToFocus) |
|
void | SetDisabledOpacity (float newDisabledOpacity) |
|
override void | HandlerAttached (Widget w) |
|
override bool | OnClick (Widget w, int x, int y, int button) |
|
Widget | GetRootWidget () |
|
bool | IsVisible () |
|
|
static SCR_CheckboxComponent | GetCheckboxComponent (string name, Widget parent, bool searchAllChildren=true) |
|
static SCR_ToolboxComponent | GetToolboxComponent (string name, Widget parent, bool searchAllChildren=true) |
| Static method to easily find component by providing name and parent.
|
|
static SCR_SelectionWidgetComponent | GetSelectionComponent (string name, Widget parent, bool searchAllChildren=true) |
|
static bool | SetTexture (ImageWidget widget, ResourceName texture, string image="") |
|
static SCR_ScriptedWidgetComponent | GetComponent (TypeName componentType, string name, Widget parent, bool searchAllChildren=true) |
| Base method for component lookup through the widget library.
|
|
This is refactored checkbox preserving its own class and API for compatability purposes.