Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
optionselectorslider.c
Go to the documentation of this file.
1 class OptionSelectorSlider extends OptionSelectorSliderSetup
2 {
3  void OptionSelectorSlider(Widget parent, float value, ScriptedWidgetEventHandler parent_menu, bool disabled, float min, float max)
4  {
5  m_Root = GetGame().GetWorkspace().CreateWidgets("gui/layouts/new_ui/option_slider.layout", parent);
6  #ifdef PLATFORM_CONSOLE
7  m_Parent = parent.GetParent().GetParent();
8  #else
9  #ifdef PLATFORM_WINDOWS
10  m_Parent = parent.GetParent();
11  #endif
12  #endif
13 
14  m_SelectorType = 1;
15  m_ParentClass = parent_menu;
16  m_Slider = SliderWidget.Cast(m_Root.FindAnyWidget("option_value"));
17  m_Slider.SetCurrent(value);
18 
19  m_MinValue = min;
20  m_MaxValue = max;
21 
22  SetValue(value);
23  Enable();
24 
25  m_Parent.SetHandler(this);
26  }
27 }
GetGame
proto native CGame GetGame()
OptionSelectorSliderSetup
This Option Selector handles a Slider Marker, which basically has 2 sliders One slider is for selecti...
Definition: optionselectorlevelmarker.c:6
m_MinValue
float m_MinValue
Definition: staminahandler.c:139
m_Parent
protected Widget m_Parent
Definition: sizetochild.c:92
Enable
proto native void Enable(bool enable)
m_MaxValue
float m_MaxValue
Definition: staminahandler.c:139
Widget
Definition: enwidgets.c:189
m_Root
protected Widget m_Root
Definition: sizetochild.c:91
ScriptedWidgetEventHandler
map: item x vector(index, width, height)
Definition: enwidgets.c:650
SetValue
override void SetValue(int value, bool fire_event=true)
Definition: optionselectormultistate.c:226