Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
OptionSelectorBase Class Reference

Protected 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< stringGetOptions ()
 
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 ()
 
void ShowNavigationButtons (bool show)
 
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)
 

Protected Attributes

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

Detailed Description

Definition at line 1 of file optionselector.c.

Constructor & Destructor Documentation

◆ ~OptionSelector()

void OptionSelectorBase::~OptionSelector ( )
protected

Definition at line 56 of file optionselector.c.

◆ ~OptionSelectorEditbox()

void OptionSelectorBase::~OptionSelectorEditbox ( )
protected

Definition at line 26 of file optionselectoreditbox.c.

◆ ~OptionSelectorSliderSetup()

void OptionSelectorBase::~OptionSelectorSliderSetup ( )
protected

Definition at line 7 of file optionselectorslidersetup.c.

Member Function Documentation

◆ ColorDisabledConsole()

override void OptionSelectorBase::ColorDisabledConsole ( Widget w)
protected

Definition at line 254 of file optionselector.c.

◆ ColorHighlight() [1/2]

override void OptionSelectorBase::ColorHighlight ( Widget w)
protected

Definition at line 145 of file optionselectoreditbox.c.

◆ ColorHighlight() [2/2]

override void OptionSelectorBase::ColorHighlight ( Widget w)
protected

Definition at line 141 of file optionselectorslidersetup.c.

◆ ColorNormal() [1/2]

override void OptionSelectorBase::ColorNormal ( Widget w)
protected

Definition at line 159 of file optionselectoreditbox.c.

◆ ColorNormal() [2/2]

override void OptionSelectorBase::ColorNormal ( Widget w)
protected

Definition at line 155 of file optionselectorslidersetup.c.

◆ ColorNormalConsole()

override void OptionSelectorBase::ColorNormalConsole ( Widget w)
protected

Definition at line 241 of file optionselector.c.

◆ ColorOption()

void OptionSelectorBase::ColorOption ( )
protected

Definition at line 176 of file optionselector.c.

◆ Disable() [1/3]

override void OptionSelectorBase::Disable ( )
protected

Definition at line 227 of file optionselector.c.

◆ Disable() [2/3]

override void OptionSelectorBase::Disable ( )
protected

Definition at line 38 of file optionselectoreditbox.c.

◆ Disable() [3/3]

override void OptionSelectorBase::Disable ( )
protected

Definition at line 19 of file optionselectorslidersetup.c.

◆ Enable() [1/3]

override void OptionSelectorBase::Enable ( )
protected

Definition at line 213 of file optionselector.c.

◆ Enable() [2/3]

override void OptionSelectorBase::Enable ( )
protected

Definition at line 31 of file optionselectoreditbox.c.

◆ Enable() [3/3]

override void OptionSelectorBase::Enable ( )
protected

Definition at line 12 of file optionselectorslidersetup.c.

◆ GetOptions()

array< string > OptionSelectorBase::GetOptions ( )
protected

Definition at line 135 of file optionselector.c.

◆ GetStringValue()

string OptionSelectorBase::GetStringValue ( )
protected

Definition at line 158 of file optionselector.c.

◆ GetValue() [1/2]

string OptionSelectorBase::GetValue ( )
protected

Definition at line 140 of file optionselectoreditbox.c.

◆ GetValue() [2/2]

float OptionSelectorBase::GetValue ( )
protected

Definition at line 129 of file optionselectorslidersetup.c.

◆ IsEnabled()

bool OptionSelectorBase::IsEnabled ( )
protected

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.

◆ IsFocusable() [1/3]

override bool OptionSelectorBase::IsFocusable ( Widget w)
protected

Definition at line 204 of file optionselector.c.

◆ IsFocusable() [2/3]

override bool OptionSelectorBase::IsFocusable ( Widget w)
protected

Definition at line 103 of file optionselectoreditbox.c.

◆ IsFocusable() [3/3]

override bool OptionSelectorBase::IsFocusable ( Widget w)
protected

Definition at line 75 of file optionselectorslidersetup.c.

◆ IsSelectorEnabled()

bool OptionSelectorBase::IsSelectorEnabled ( )
protected

Returns false for the selector in 'disabled' states.

Definition at line 153 of file optionselector.c.

◆ IsSet()

bool OptionSelectorBase::IsSet ( )
protected

Definition at line 141 of file optionselector.c.

◆ NormalizeInput()

float OptionSelectorBase::NormalizeInput ( float value)
protected

Definition at line 110 of file optionselectorslidersetup.c.

◆ OnChange() [1/2]

override bool OptionSelectorBase::OnChange ( Widget w,
int x,
int y,
bool finished )
protected

Definition at line 93 of file optionselectoreditbox.c.

◆ OnChange() [2/2]

override bool OptionSelectorBase::OnChange ( Widget w,
int x,
int y,
bool finished )
protected

Definition at line 65 of file optionselectorslidersetup.c.

◆ OnClick()

override bool OptionSelectorBase::OnClick ( Widget w,
int x,
int y,
int button )
protected

Definition at line 79 of file optionselector.c.

◆ OnFocus() [1/2]

override bool OptionSelectorBase::OnFocus ( Widget w,
int x,
int y )
protected

Definition at line 112 of file optionselectoreditbox.c.

◆ OnFocus() [2/2]

override bool OptionSelectorBase::OnFocus ( Widget w,
int x,
int y )
protected

Definition at line 84 of file optionselectorslidersetup.c.

◆ OnFocusLost() [1/2]

override bool OptionSelectorBase::OnFocusLost ( Widget w,
int x,
int y )
protected

Definition at line 123 of file optionselectoreditbox.c.

◆ OnFocusLost() [2/2]

override bool OptionSelectorBase::OnFocusLost ( Widget w,
int x,
int y )
protected

Definition at line 100 of file optionselectorslidersetup.c.

◆ OnMouseButtonUp() [1/2]

override bool OptionSelectorBase::OnMouseButtonUp ( Widget w,
int x,
int y,
int button )
protected

Definition at line 61 of file optionselector.c.

◆ OnMouseButtonUp() [2/2]

override bool OptionSelectorBase::OnMouseButtonUp ( Widget w,
int x,
int y,
int button )
protected

Definition at line 57 of file optionselectorslidersetup.c.

◆ OnMouseEnter() [1/3]

override bool OptionSelectorBase::OnMouseEnter ( Widget w,
int x,
int y )
protected

Definition at line 90 of file optionselector.c.

◆ OnMouseEnter() [2/3]

override bool OptionSelectorBase::OnMouseEnter ( Widget w,
int x,
int y )
protected

Definition at line 45 of file optionselectoreditbox.c.

◆ OnMouseEnter() [3/3]

override bool OptionSelectorBase::OnMouseEnter ( Widget w,
int x,
int y )
protected

Definition at line 26 of file optionselectorslidersetup.c.

◆ OnMouseLeave() [1/3]

override bool OptionSelectorBase::OnMouseLeave ( Widget w,
Widget enterW,
int x,
int y )
protected

Definition at line 95 of file optionselector.c.

◆ OnMouseLeave() [2/3]

override bool OptionSelectorBase::OnMouseLeave ( Widget w,
Widget enterW,
int x,
int y )
protected

Definition at line 69 of file optionselectoreditbox.c.

◆ OnMouseLeave() [3/3]

override bool OptionSelectorBase::OnMouseLeave ( Widget w,
Widget enterW,
int x,
int y )
protected

Definition at line 41 of file optionselectorslidersetup.c.

◆ OptionSelector()

void OptionSelectorBase::OptionSelector ( Widget parent,
int current_index,
ScriptedWidgetEventHandler parent_c,
bool disabled )
protected

Definition at line 9 of file optionselector.c.

◆ OptionSelectorEditbox()

void OptionSelectorBase::OptionSelectorEditbox ( Widget parent,
string value,
ScriptedWidgetEventHandler parent_menu,
bool disabled )
protected

Definition at line 5 of file optionselectoreditbox.c.

◆ Reset()

void OptionSelectorBase::Reset ( )
protected

Definition at line 100 of file optionselector.c.

◆ SetMax()

void OptionSelectorBase::SetMax ( float max)
protected

Definition at line 136 of file optionselectorslidersetup.c.

◆ SetNextOption()

void OptionSelectorBase::SetNextOption ( )
protected

Definition at line 109 of file optionselector.c.

◆ SetPrevOption()

void OptionSelectorBase::SetPrevOption ( )
protected

Definition at line 122 of file optionselector.c.

◆ SetStep()

void OptionSelectorBase::SetStep ( float step)
protected

Definition at line 116 of file optionselectorslidersetup.c.

◆ SetStringOption()

void OptionSelectorBase::SetStringOption ( string option,
bool fire_event = true )
protected

Definition at line 163 of file optionselector.c.

◆ SetValue() [1/2]

void OptionSelectorBase::SetValue ( float value,
bool update = true )
protected

Definition at line 121 of file optionselectorslidersetup.c.

◆ SetValue() [2/2]

void OptionSelectorBase::SetValue ( string value,
bool update = true )
protected

Definition at line 133 of file optionselectoreditbox.c.

◆ ShowNavigationButtons()

void OptionSelectorBase::ShowNavigationButtons ( bool show)
protected

Definition at line 198 of file optionselector.c.

Member Data Documentation

◆ m_EditBox

EditBoxWidget OptionSelectorBase::m_EditBox
protected

Definition at line 3 of file optionselectoreditbox.c.

◆ m_MaxValue

float OptionSelectorBase::m_MaxValue
protected

Definition at line 5 of file optionselectorslidersetup.c.

◆ m_MinValue

float OptionSelectorBase::m_MinValue
protected

Definition at line 4 of file optionselectorslidersetup.c.

◆ m_NextOption

Widget OptionSelectorBase::m_NextOption
protected

Definition at line 4 of file optionselector.c.

◆ m_Options

ref array<string> OptionSelectorBase::m_Options
protected

Definition at line 7 of file optionselector.c.

◆ m_PreviousOption

Widget OptionSelectorBase::m_PreviousOption
protected

Definition at line 3 of file optionselector.c.

◆ m_SelectedOption

TextWidget OptionSelectorBase::m_SelectedOption
protected

Definition at line 5 of file optionselector.c.

◆ m_SelectedOptionIndex

int OptionSelectorBase::m_SelectedOptionIndex
protected

Definition at line 6 of file optionselector.c.

◆ m_Slider

SliderWidget OptionSelectorBase::m_Slider
protected

Definition at line 3 of file optionselectorslidersetup.c.


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