Private Member Functions | |
void | OptionSelector (Widget parent, int current_index, ScriptedWidgetEventHandler parent_c, bool disabled) |
void | ~OptionSelector () |
override bool | OnMouseButtonUp (Widget w, int x, int y, int button) |
override bool | OnClick (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) |
void | Reset () |
void | SetNextOption () |
void | SetPrevOption () |
array< string > | GetOptions () |
bool | IsSet () |
bool | IsEnabled () |
Returns 'true' if current index == 1 (default 'enabled' value). Take care, as different selectors may follow different logic! | |
bool | IsSelectorEnabled () |
Returns false for the selector in 'disabled' states. | |
string | GetStringValue () |
void | SetStringOption (string option, bool fire_event=true) |
void | ColorOption () |
override bool | IsFocusable (Widget w) |
override void | Enable () |
override void | Disable () |
override void | ColorNormalConsole (Widget w) |
override void | ColorDisabledConsole (Widget w) |
void | OptionSelectorEditbox (Widget parent, string value, ScriptedWidgetEventHandler parent_menu, bool disabled) |
void | ~OptionSelectorEditbox () |
override void | Enable () |
override void | Disable () |
override bool | OnMouseEnter (Widget w, int x, int y) |
override bool | OnMouseLeave (Widget w, Widget enterW, int x, int y) |
override bool | OnChange (Widget w, int x, int y, bool finished) |
override bool | IsFocusable (Widget w) |
override bool | OnFocus (Widget w, int x, int y) |
override bool | OnFocusLost (Widget w, int x, int y) |
void | SetValue (string value, bool update=true) |
string | GetValue () |
override void | ColorHighlight (Widget w) |
override void | ColorNormal (Widget w) |
void | ~OptionSelectorSliderSetup () |
override void | Enable () |
override void | Disable () |
override bool | OnMouseEnter (Widget w, int x, int y) |
override bool | OnMouseLeave (Widget w, Widget enterW, int x, int y) |
override bool | OnMouseButtonUp (Widget w, int x, int y, int button) |
override bool | OnChange (Widget w, int x, int y, bool finished) |
override bool | IsFocusable (Widget w) |
override bool | OnFocus (Widget w, int x, int y) |
override bool | OnFocusLost (Widget w, int x, int y) |
float | NormalizeInput (float value) |
void | SetStep (float step) |
void | SetValue (float value, bool update=true) |
float | GetValue () |
void | SetMax (float max) |
override void | ColorHighlight (Widget w) |
override void | ColorNormal (Widget w) |
Private Attributes | |
protected Widget | m_PreviousOption |
protected Widget | m_NextOption |
protected TextWidget | m_SelectedOption |
protected int | m_SelectedOptionIndex |
protected ref array< string > | m_Options |
protected EditBoxWidget | m_EditBox |
protected SliderWidget | m_Slider |
protected float | m_MinValue |
protected float | m_MaxValue |
|
inlineprivate |
References m_Root.
|
inlineprivate |
References m_Root.
|
inlineprivate |
References m_Root.
|
inlineprivate |
References ARGB().
Referenced by ScriptedWidgetEventHandler::Disable().
|
inlineprivate |
References ARGB(), and SetFocus().
Referenced by ScriptedWidgetEventHandler::OnMouseEnter(), and OnMouseEnter().
|
inlineprivate |
References ARGB(), and SetFocus().
|
inlineprivate |
References ARGB().
Referenced by ScriptedWidgetEventHandler::Enable(), ScriptedWidgetEventHandler::OnMouseLeave(), and OnMouseLeave().
|
inlineprivate |
References ARGB().
Referenced by ScriptedWidgetEventHandler::Enable(), ScriptedWidgetEventHandler::OnFocusLost(), and ScriptedWidgetEventHandler::OnMouseLeave().
|
inlineprivate |
References ARGB().
|
inlineprivate |
References m_Parent.
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
References m_Parent.
Referenced by OptionSelectorEditbox().
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
References string::Get().
|
inlineprivate |
Referenced by OnChange(), and SetValue().
|
inlineprivate |
References m_MaxValue, m_MinValue, and Math::Round().
|
inlineprivate |
Returns 'true' if current index == 1 (default 'enabled' value). Take care, as different selectors may follow different logic!
References m_Parent.
Referenced by ScriptedWidgetEventHandler::OnFocus(), ScriptedWidgetEventHandler::OnMouseEnter(), OnMouseEnter(), ScriptedWidgetEventHandler::OnMouseLeave(), and OnMouseLeave().
|
inlineprivate |
Returns false for the selector in 'disabled' states.
References m_Enabled.
|
inlineprivate |
References m_MaxValue, and m_MinValue.
References GetValue().
References GetValue().
References m_Parent, and OptionSelector::SetNextOption().
References GetFocus(), m_Parent, SetFocus(), x, and y.
References GetFocus(), m_Parent, SetFocus(), x, and y.
References OptionSelector::SetNextOption(), and OptionSelector::SetPrevOption().
References ColorHighlight(), m_Root, OptionSelectorSliderSetup::OnFocus(), x, and y.
References ColorNormal(), m_Root, OptionSelectorSliderSetup::OnFocusLost(), SetFocus(), x, and y.
|
inlineprivate |
References WorkspaceWidget::CreateWidgets(), Enable(), GetGame(), CGame::GetWorkspace(), m_Enabled, m_Parent, and m_Root.
|
inlineprivate |
References WorkspaceWidget::CreateWidgets(), Enable(), GetGame(), CGame::GetWorkspace(), m_Parent, m_Root, and SetValue().
|
inlineprivate |
|
inlineprivate |
References m_MaxValue.
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
References GetValue(), and Math::Round().
References GetValue().
Referenced by OptionSelectorEditbox().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |