|
void | SetSortOrder (ESortOrder order) |
|
ESortOrder | GetSortOrder () |
|
ESortOrder | GetDefaultSortOrder () |
|
string | GetName () |
|
void | SetEnabled (bool enabled) |
|
bool | GetEnabled () |
|
void | SetToggled (bool toggled, bool invokeOnToggled=true, bool instant=false) |
|
bool | GetToggled () |
|
bool | GetFocused () |
|
bool | GetMouseOver () |
|
void | SetToggleable (bool toggleable) |
|
void | SetTogglableOnlyThroughApi (bool newValue) |
|
void | SetData (Managed data) |
|
Managed | GetData () |
|
Widget | GetRootWidget () |
|
bool | SetVisible (bool visible) |
|
SCR_ButtonEffectBase | FindEffect (string tag) |
| Returns first effect with given tag.
|
|
array< SCR_ButtonEffectBase > | FindAllEffects (string tag) |
|
array< SCR_ButtonEffectBase > | GetAllEffects () |
|
void | SetEffectsEnabled (string tag, bool enable) |
| Enables or disables all effects with given tag.
|
|
void | SetEffectsWithAnyTagEnabled (notnull array< string > tags) |
| Effects with at least one tag are enabled.
|
|
void | SetAllEffectsEnabled (bool enable) |
| Enables ar disables all effects.
|
|
void | InvokeAllEnabledEffects (bool instant) |
| Applies all enabled effects.
|
|
void | Internal_OnMasterButtonEvent (EModularButtonEventFlag eventFlag, bool instant) |
| Used for passing events from master button / slave button This is called on a slave button by SCR_ButtonEffectSlaveButton.
|
|
void | Internal_OnEffectEnabled (SCR_ButtonEffectBase effect) |
| Must only be called by the effect class.
|
|
override void | HandlerAttached (Widget w) |
|
override bool | OnClick (Widget w, int x, int y, int button) |
|
override bool | OnDoubleClick (Widget w, int x, int y, int button) |
|
override bool | OnMouseEnter (Widget w, int x, int y) |
|
override bool | OnMouseLeave (Widget w, Widget enterW, int x, int y) |
|
override bool | OnFocus (Widget w, int x, int y) |
|
override bool | OnFocusLost (Widget w, int x, int y) |
|
void | _print (string s) |
|
bool | GetIsFocusOnMouseEnter () |
|
void | SetIsFocusOnMouseEnter (bool focus) |
|
string | GetCurrentStateName () |
|
|
override void | HandlerAttached (Widget w) |
|
override void | Internal_SetToggled (bool newToggled, bool invokeOnToggled=true, bool instant=false) |
|
override bool | OnClick (Widget w, int x, int y, int button) |
|
void | SelectNewSortOrder (bool reset) |
| Selects new sort order, either default or flips prev. sort order.
|
|
void | UpdateSortEffects () |
| Enables effects according to new sort order and toggled state: When not toggled, only effects with TAG_ALL are enabled.
|
|
void | UpdateCurrentState () |
| Checks current state, invokes state change effects if state has changed.
|
|
EModularButtonState | GetCurrentState () |
|
void | InvokeEffectsEvent (EModularButtonEventFlag eventFlag, bool instant=false) |
| Calls _OnEvent of all enabled effects.
|
|
void | Internal_SetToggled (bool newToggled, bool invokeOnToggled=true, bool instant=false) |
|
Sort element must be placed on a widget inside a sort header.
The sort element visualizes sort order by using effects with different tags:
- Effects with "all" tag are always active;
- Effects with "sort_desc" and "sort_asc" are active only when sorting in specific direction;
- Effects with "sort_none" are active when not sorting in any direciton.
!!! When any sorting is selected, button is in "toggled on" state. When no sorting, button is in "toggled off" state. Therefore effects must be configured accordingly, and proper states must be used in effect configuration.