Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
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...

Inheritance diagram for OptionSelectorSliderSetup:
ScriptConsoleSelector

Protected Member Functions

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

Protected Attributes

bool m_Changed
float m_LastValue
bool m_ShowEditbox
SliderWidget m_Slider2
EditBoxWidget m_ValueText

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

Definition at line 6 of file optionselectorlevelmarker.c.

Member Function Documentation

◆ Changed()

bool Changed ( )
inlineprotected

Definition at line 113 of file optionselectorslider.c.

References m_Changed.

◆ Disable()

override void Disable ( )
inlineprotected

Definition at line 42 of file optionselectorlevelmarker.c.

References m_Slider2.

◆ Enable()

override void Enable ( )
inlineprotected

◆ GetRangePercantageByValue()

float GetRangePercantageByValue ( )
inlineprotected

Definition at line 73 of file optionselectorslider.c.

References GetValue(), m_MaxValue, and m_MinValue.

Referenced by SetValueText().

◆ IsFocusable()

override bool IsFocusable ( Widget w)
inlineprotected

Definition at line 187 of file optionselectorslider.c.

References m_Parent, m_ShowEditbox, and m_ValueText.

◆ IsValidEditboxValue()

bool IsValidEditboxValue ( string text)
inlineprotected

Definition at line 118 of file optionselectorslider.c.

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

Referenced by OnChange().

◆ IsValueTextVisible()

bool IsValueTextVisible ( )
inlineprotected

Definition at line 242 of file optionselectorslider.c.

References m_ShowEditbox.

◆ OnChange()

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

◆ OnDoubleClick()

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

◆ OnFocus()

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

◆ OnFocusLost()

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

Definition at line 176 of file optionselectorslider.c.

References m_ShowEditbox, m_ValueText, UpdateActiveOption(), x, and y.

Referenced by OptionSelectorBase::OnMouseLeave().

◆ OnMouseLeave()

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

Definition at line 196 of file optionselectorslider.c.

References m_LastValue, m_ShowEditbox, m_ValueText, Refresh(), x, and y.

◆ OnUpdate()

override bool OnUpdate ( Widget w)
inlineprotected

Definition at line 53 of file optionselectorlevelmarker.c.

◆ OptionSelectorLevelMarker()

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

◆ OptionSelectorSlider()

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

◆ Refresh()

void Refresh ( float defaultValue = -1)
inlineprotected

Definition at line 59 of file optionselectorslider.c.

References m_Changed, m_ShowEditbox, m_ValueText, SetValue(), and SetValueText().

◆ SetActiveOption()

void SetActiveOption ( )
inlineprotected

Definition at line 213 of file optionselectorslider.c.

Referenced by OnDoubleClick(), and OnFocus().

◆ SetSlider2Value()

void SetSlider2Value ( float value)
inlineprotected

Definition at line 48 of file optionselectorlevelmarker.c.

References m_Slider2.

Referenced by OptionSelectorLevelMarker().

◆ SetValueText()

void SetValueText ( )
inlineprotected

◆ Update()

void Update ( )
inlineprotected

Definition at line 235 of file optionselectorslider.c.

References ARGB(), m_LastValue, m_ValueText, and Refresh().

◆ UpdateActiveOption()

void UpdateActiveOption ( )
inlineprotected

Definition at line 222 of file optionselectorslider.c.

References OptionSelectorSlider().

Referenced by OnFocus(), and OnFocusLost().

Field Documentation

◆ m_Changed

bool m_Changed
protected

Definition at line 3 of file optionselectorslider.c.

Referenced by Changed(), and Refresh().

◆ m_LastValue

float m_LastValue
protected

◆ m_ShowEditbox

◆ m_Slider2

SliderWidget m_Slider2
protected

◆ m_ValueText


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