Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
OptionSelectorBase Class Reference

Protected Member Functions

void ~OptionSelector ()
void ~OptionSelectorEditbox ()
void ~OptionSelectorSliderSetup ()
override void ColorDisabledConsole (Widget w)
override void ColorHighlight (Widget w)
override void ColorHighlight (Widget w)
override void ColorNormal (Widget w)
override void ColorNormal (Widget w)
override void ColorNormalConsole (Widget w)
void ColorOption ()
override void Disable ()
override void Disable ()
override void Disable ()
override void Enable ()
override void Enable ()
override void Enable ()
array< stringGetOptions ()
string GetStringValue ()
string GetValue ()
float GetValue ()
bool IsEnabled ()
 Returns 'true' if current index == 1 (default 'enabled' value). Take care, as different selectors may follow different logic!
override bool IsFocusable (Widget w)
override bool IsFocusable (Widget w)
override bool IsFocusable (Widget w)
bool IsSelectorEnabled ()
 Returns false for the selector in 'disabled' states.
bool IsSet ()
float NormalizeInput (float value)
override bool OnChange (Widget w, int x, int y, bool finished)
override bool OnChange (Widget w, int x, int y, bool finished)
override bool OnClick (Widget w, int x, int y, int button)
override bool OnFocus (Widget w, int x, int y)
override bool OnFocus (Widget w, int x, int y)
override bool OnFocusLost (Widget w, int x, int y)
override bool OnFocusLost (Widget w, int x, int y)
override bool OnMouseButtonUp (Widget w, int x, int y, int button)
override bool OnMouseButtonUp (Widget w, int x, int y, int button)
override bool OnMouseEnter (Widget w, int x, int y)
override bool OnMouseEnter (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)
override bool OnMouseLeave (Widget w, Widget enterW, int x, int y)
override bool OnMouseLeave (Widget w, Widget enterW, int x, int y)
void OptionSelector (Widget parent, int current_index, ScriptedWidgetEventHandler parent_c, bool disabled)
void OptionSelectorEditbox (Widget parent, string value, ScriptedWidgetEventHandler parent_menu, bool disabled)
void Reset ()
void SetMax (float max)
void SetNextOption ()
void SetPrevOption ()
void SetStep (float step)
void SetStringOption (string option, bool fire_event=true)
void SetValue (float value, bool update=true)
void SetValue (string value, bool update=true)
void ShowNavigationButtons (bool show)

Protected Attributes

EditBoxWidget m_EditBox
float m_MaxValue
float m_MinValue
Widget m_NextOption
ref array< stringm_Options
Widget m_PreviousOption
TextWidget m_SelectedOption
int m_SelectedOptionIndex
SliderWidget m_Slider

Detailed Description

Definition at line 1 of file optionselector.c.

Constructor & Destructor Documentation

◆ ~OptionSelector()

void ~OptionSelector ( )
inlineprotected

Definition at line 56 of file optionselector.c.

References m_Root.

◆ ~OptionSelectorEditbox()

void ~OptionSelectorEditbox ( )
inlineprotected

Definition at line 26 of file optionselectoreditbox.c.

References m_Root.

◆ ~OptionSelectorSliderSetup()

void ~OptionSelectorSliderSetup ( )
inlineprotected

Definition at line 7 of file optionselectorslidersetup.c.

References m_Root.

Member Function Documentation

◆ ColorDisabledConsole()

override void ColorDisabledConsole ( Widget w)
inlineprotected

Definition at line 254 of file optionselector.c.

References ARGB(), and m_SelectedOption.

Referenced by ScriptedWidgetEventHandler::Disable().

◆ ColorHighlight() [1/2]

override void ColorHighlight ( Widget w)
inlineprotected

Definition at line 145 of file optionselectoreditbox.c.

References ARGB(), m_EditBox, and SetFocus().

Referenced by OnMouseEnter(), and ScriptedWidgetEventHandler::OnMouseEnter().

◆ ColorHighlight() [2/2]

override void ColorHighlight ( Widget w)
inlineprotected

Definition at line 144 of file optionselectorslidersetup.c.

References ARGB(), m_Slider, and SetFocus().

◆ ColorNormal() [1/2]

override void ColorNormal ( Widget w)
inlineprotected

◆ ColorNormal() [2/2]

override void ColorNormal ( Widget w)
inlineprotected

Definition at line 158 of file optionselectorslidersetup.c.

References ARGB(), and m_Slider.

◆ ColorNormalConsole()

override void ColorNormalConsole ( Widget w)
inlineprotected

◆ ColorOption()

void ColorOption ( )
inlineprotected

Definition at line 176 of file optionselector.c.

References ARGB(), m_SelectedOption, and m_SelectedOptionIndex.

◆ Disable() [1/3]

override void Disable ( )
inlineprotected

Definition at line 227 of file optionselector.c.

References m_NextOption, m_Parent, and m_PreviousOption.

Referenced by OptionSelector().

◆ Disable() [2/3]

override void Disable ( )
inlineprotected

Definition at line 38 of file optionselectoreditbox.c.

References m_EditBox.

◆ Disable() [3/3]

override void Disable ( )
inlineprotected

Definition at line 19 of file optionselectorslidersetup.c.

References m_Slider.

◆ Enable() [1/3]

override void Enable ( )
inlineprotected

Definition at line 213 of file optionselector.c.

References m_NextOption, m_Parent, and m_PreviousOption.

Referenced by OptionSelectorEditbox().

◆ Enable() [2/3]

override void Enable ( )
inlineprotected

Definition at line 31 of file optionselectoreditbox.c.

References m_EditBox.

◆ Enable() [3/3]

override void Enable ( )
inlineprotected

Definition at line 12 of file optionselectorslidersetup.c.

References m_Slider.

◆ GetOptions()

array< string > GetOptions ( )
inlineprotected

Definition at line 135 of file optionselector.c.

References m_Options.

◆ GetStringValue()

string GetStringValue ( )
inlineprotected

Definition at line 158 of file optionselector.c.

References m_Options, and m_SelectedOptionIndex.

◆ GetValue() [1/2]

string GetValue ( )
inlineprotected

Definition at line 140 of file optionselectoreditbox.c.

References m_EditBox.

Referenced by OnChange(), and SetValue().

◆ GetValue() [2/2]

float GetValue ( )
inlineprotected

Definition at line 132 of file optionselectorslidersetup.c.

References m_MaxValue, m_MinValue, and m_Slider.

◆ IsEnabled()

bool IsEnabled ( )
inlineprotected

Returns 'true' if current index == 1 (default 'enabled' value). Take care, as different selectors may follow different logic!

Definition at line 147 of file optionselector.c.

References m_SelectedOptionIndex.

◆ IsFocusable() [1/3]

◆ IsFocusable() [2/3]

override bool IsFocusable ( Widget w)
inlineprotected

Definition at line 103 of file optionselectoreditbox.c.

References m_EditBox, and m_Parent.

◆ IsFocusable() [3/3]

override bool IsFocusable ( Widget w)
inlineprotected

Definition at line 75 of file optionselectorslidersetup.c.

References m_Parent, and m_Slider.

◆ IsSelectorEnabled()

bool IsSelectorEnabled ( )
inlineprotected

Returns false for the selector in 'disabled' states.

Definition at line 153 of file optionselector.c.

References m_Enabled.

◆ IsSet()

bool IsSet ( )
inlineprotected

Definition at line 141 of file optionselector.c.

References m_SelectedOptionIndex.

◆ NormalizeInput()

float NormalizeInput ( float value)
inlineprotected

Definition at line 110 of file optionselectorslidersetup.c.

References m_MaxValue, and m_MinValue.

Referenced by SetValue().

◆ OnChange() [1/2]

override bool OnChange ( Widget w,
int x,
int y,
bool finished )
inlineprotected

Definition at line 93 of file optionselectoreditbox.c.

References GetValue(), m_EditBox, x, and y.

◆ OnChange() [2/2]

override bool OnChange ( Widget w,
int x,
int y,
bool finished )
inlineprotected

Definition at line 65 of file optionselectorslidersetup.c.

References GetValue(), m_Slider, x, and y.

◆ OnClick()

override bool OnClick ( Widget w,
int x,
int y,
int button )
inlineprotected

Definition at line 79 of file optionselector.c.

References m_Parent, OptionSelector::SetNextOption(), x, and y.

◆ OnFocus() [1/2]

override bool OnFocus ( Widget w,
int x,
int y )
inlineprotected

Definition at line 112 of file optionselectoreditbox.c.

References GetFocus(), m_EditBox, m_Parent, SetFocus(), x, and y.

◆ OnFocus() [2/2]

override bool OnFocus ( Widget w,
int x,
int y )
inlineprotected

Definition at line 84 of file optionselectorslidersetup.c.

References GetFocus(), m_Parent, m_Slider, SetFocus(), x, and y.

◆ OnFocusLost() [1/2]

override bool OnFocusLost ( Widget w,
int x,
int y )
inlineprotected

Definition at line 123 of file optionselectoreditbox.c.

References m_EditBox, m_Parent, x, and y.

◆ OnFocusLost() [2/2]

override bool OnFocusLost ( Widget w,
int x,
int y )
inlineprotected

Definition at line 100 of file optionselectorslidersetup.c.

References m_Parent, m_Slider, x, and y.

◆ OnMouseButtonUp() [1/2]

override bool OnMouseButtonUp ( Widget w,
int x,
int y,
int button )
inlineprotected

◆ OnMouseButtonUp() [2/2]

override bool OnMouseButtonUp ( Widget w,
int x,
int y,
int button )
inlineprotected

Definition at line 57 of file optionselectorslidersetup.c.

References m_Slider, x, and y.

◆ OnMouseEnter() [1/3]

override bool OnMouseEnter ( Widget w,
int x,
int y )
inlineprotected

Definition at line 90 of file optionselector.c.

References x, and y.

◆ OnMouseEnter() [2/3]

override bool OnMouseEnter ( Widget w,
int x,
int y )
inlineprotected

◆ OnMouseEnter() [3/3]

override bool OnMouseEnter ( Widget w,
int x,
int y )
inlineprotected

◆ OnMouseLeave() [1/3]

override bool OnMouseLeave ( Widget w,
Widget enterW,
int x,
int y )
inlineprotected

Definition at line 95 of file optionselector.c.

References x, and y.

◆ OnMouseLeave() [2/3]

override bool OnMouseLeave ( Widget w,
Widget enterW,
int x,
int y )
inlineprotected

◆ OnMouseLeave() [3/3]

override bool OnMouseLeave ( Widget w,
Widget enterW,
int x,
int y )
inlineprotected

◆ OptionSelector()

void OptionSelector ( Widget parent,
int current_index,
ScriptedWidgetEventHandler parent_c,
bool disabled )
inlineprotected

◆ OptionSelectorEditbox()

void OptionSelectorEditbox ( Widget parent,
string value,
ScriptedWidgetEventHandler parent_menu,
bool disabled )
inlineprotected

Definition at line 5 of file optionselectoreditbox.c.

References Enable(), g_Game, m_EditBox, m_Parent, m_Root, and SetValue().

◆ Reset()

void Reset ( )
inlineprotected

Definition at line 100 of file optionselector.c.

References m_Options, m_SelectedOption, and m_SelectedOptionIndex.

◆ SetMax()

void SetMax ( float max)
inlineprotected

Definition at line 139 of file optionselectorslidersetup.c.

References m_MaxValue.

◆ SetNextOption()

void SetNextOption ( )
inlineprotected

Definition at line 109 of file optionselector.c.

References m_Options, m_SelectedOption, and m_SelectedOptionIndex.

◆ SetPrevOption()

void SetPrevOption ( )
inlineprotected

Definition at line 122 of file optionselector.c.

References m_Options, m_SelectedOption, and m_SelectedOptionIndex.

◆ SetStep()

void SetStep ( float step)
inlineprotected

Definition at line 116 of file optionselectorslidersetup.c.

References m_Slider.

◆ SetStringOption()

void SetStringOption ( string option,
bool fire_event = true )
inlineprotected

Definition at line 163 of file optionselector.c.

References m_Options, m_SelectedOption, and m_SelectedOptionIndex.

◆ SetValue() [1/2]

void SetValue ( float value,
bool update = true )
inlineprotected

Definition at line 121 of file optionselectorslidersetup.c.

References GetValue(), m_Slider, NormalizeInput(), and Math::Round().

◆ SetValue() [2/2]

void SetValue ( string value,
bool update = true )
inlineprotected

Definition at line 133 of file optionselectoreditbox.c.

References GetValue(), and m_EditBox.

Referenced by OptionSelectorEditbox().

◆ ShowNavigationButtons()

void ShowNavigationButtons ( bool show)
inlineprotected

Definition at line 198 of file optionselector.c.

References m_NextOption, and m_PreviousOption.

Field Documentation

◆ m_EditBox

◆ m_MaxValue

float m_MaxValue
protected

Definition at line 5 of file optionselectorslidersetup.c.

Referenced by GetValue(), NormalizeInput(), and SetMax().

◆ m_MinValue

float m_MinValue
protected

Definition at line 4 of file optionselectorslidersetup.c.

Referenced by GetValue(), and NormalizeInput().

◆ m_NextOption

Widget m_NextOption
protected

◆ m_Options

ref array<string> m_Options
protected

◆ m_PreviousOption

Widget m_PreviousOption
protected

◆ m_SelectedOption

◆ m_SelectedOptionIndex

int m_SelectedOptionIndex
protected

◆ m_Slider


The documentation for this class was generated from the following files: