PC Stable Documentation
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Loading...
Searching...
No Matches
OptionSelectorSliderSetup Class Reference

This Option Selector handles a Slider Marker, which basically has 2 sliders One slider is for selecting the value, and the other slider is for displaying some other value/ information. More...

Private Member Functions

void OptionSelectorLevelMarker (Widget parent, float value, ScriptedWidgetEventHandler parentMenu, bool disabled, float min, float max)
 
override void Enable ()
 
override void Disable ()
 
void SetSlider2Value (float value)
 
override bool OnUpdate (Widget w)
 
void OptionSelectorSlider (Widget parent, float value, ScriptedWidgetEventHandler parent_menu, bool disabled, float min, float max, bool showEditbox=false)
 
void SetValueText ()
 
void Refresh (float defaultValue=-1)
 
float GetRangePercantageByValue ()
 
override bool OnChange (Widget w, int x, int y, bool finished)
 
bool Changed ()
 
bool IsValidEditboxValue (string text)
 
override bool OnDoubleClick (Widget w, int x, int y, int button)
 
override bool OnFocus (Widget w, int x, int y)
 
override bool OnFocusLost (Widget w, int x, int y)
 
override bool IsFocusable (Widget w)
 
override bool OnMouseLeave (Widget w, Widget enterW, int x, int y)
 
void SetActiveOption ()
 
void UpdateActiveOption ()
 
void Update ()
 
bool IsValueTextVisible ()
 

Private Attributes

protected SliderWidget m_Slider2
 
protected bool m_Changed
 
protected EditBoxWidget m_ValueText
 
protected bool m_ShowEditbox
 
protected float m_LastValue
 

Detailed Description

This Option Selector handles a Slider Marker, which basically has 2 sliders One slider is for selecting the value, and the other slider is for displaying some other value/ information.

Parameters
m_Slider2other slider value, which can be used to convery some other info to the player

Member Function Documentation

◆ Changed()

bool Changed ( )
inlineprivate

References m_Changed.

◆ Disable()

override void Disable ( )
inlineprivate

◆ Enable()

override void Enable ( )
inlineprivate

◆ GetRangePercantageByValue()

float GetRangePercantageByValue ( )
inlineprivate

References GetValue(), m_MaxValue, and m_MinValue.

Referenced by SetValueText().

◆ IsFocusable()

override bool IsFocusable ( Widget  w)
inlineprivate

References m_Parent.

◆ IsValidEditboxValue()

bool IsValidEditboxValue ( string  text)
inlineprivate

References string::Get(), string::Length(), and string::ToInt().

Referenced by OnChange().

◆ IsValueTextVisible()

bool IsValueTextVisible ( )
inlineprivate

◆ OnChange()

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

◆ OnDoubleClick()

override bool OnDoubleClick ( Widget  w,
int  x,
int  y,
int  button 
)
inlineprivate

◆ OnFocus()

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

◆ OnFocusLost()

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

References UpdateActiveOption(), x, and y.

Referenced by OptionSelectorBase::OnMouseLeave().

◆ OnMouseLeave()

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

References Refresh(), x, and y.

◆ OnUpdate()

override bool OnUpdate ( Widget  w)
inlineprivate

◆ OptionSelectorLevelMarker()

void OptionSelectorLevelMarker ( Widget  parent,
float  value,
ScriptedWidgetEventHandler  parentMenu,
bool  disabled,
float  min,
float  max 
)
inlineprivate

◆ OptionSelectorSlider()

void OptionSelectorSlider ( Widget  parent,
float  value,
ScriptedWidgetEventHandler  parent_menu,
bool  disabled,
float  min,
float  max,
bool  showEditbox = false 
)
inlineprivate

◆ Refresh()

void Refresh ( float  defaultValue = -1)
inlineprivate

References SetValue(), and SetValueText().

◆ SetActiveOption()

void SetActiveOption ( )
inlineprivate

Referenced by OnDoubleClick(), and OnFocus().

◆ SetSlider2Value()

void SetSlider2Value ( float  value)
inlineprivate

◆ SetValueText()

void SetValueText ( )
inlineprivate

◆ Update()

void Update ( )
inlineprivate

References ARGB(), and Refresh().

◆ UpdateActiveOption()

void UpdateActiveOption ( )
inlineprivate

Referenced by OnFocus(), and OnFocusLost().

Field Documentation

◆ m_Changed

protected bool m_Changed
private

Referenced by Changed().

◆ m_LastValue

protected float m_LastValue
private

◆ m_ShowEditbox

protected bool m_ShowEditbox
private

◆ m_Slider2

protected SliderWidget m_Slider2
private

◆ m_ValueText

protected EditBoxWidget m_ValueText
private

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