DayZ 1.24
Loading...
Searching...
No Matches
OptionSelectorSlider.c
Go to the documentation of this file.
1class OptionSelectorSlider extends OptionSelectorSliderSetup
2{
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
21
23 Enable();
24
25 m_Parent.SetHandler(this);
26 }
27}
override void SetValue(int value, bool fire_event=true)
Widget m_Root
Definition SizeToChild.c:85
Widget m_Parent
Definition SizeToChild.c:86
float m_MaxValue
float m_MinValue
This Option Selector handles a Slider Marker, which basically has 2 sliders One slider is for selecti...
void OptionSelectorSlider(Widget parent, float value, ScriptedWidgetEventHandler parent_menu, bool disabled, float min, float max)
map: item x vector(index, width, height)
Definition EnWidgets.c:651
proto native CGame GetGame()