DayZ 1.24
Loading...
Searching...
No Matches
OptionSelectorLevelMarker.c
Go to the documentation of this file.
1
6class OptionSelectorLevelMarker extends OptionSelectorSliderSetup
7{
9
11 {
12 m_Root = GetGame().GetWorkspace().CreateWidgets("gui/layouts/new_ui/option_level_marker.layout", parent);
13#ifdef PLATFORM_CONSOLE
14 m_Parent = parent.GetParent().GetParent();
15#else
16#ifdef PLATFORM_WINDOWS
17 m_Parent = parent.GetParent();
18#endif
19#endif
20
21 m_SelectorType = 1;
22 m_ParentClass = parentMenu;
23 m_Slider = SliderWidget.Cast(m_Root.FindAnyWidget("marker_value"));
24 m_Slider2 = SliderWidget.Cast(m_Root.FindAnyWidget("other_slider_value"));
25
28
29 SetValue(value, false);
31 Enable();
32
33 m_Parent.SetHandler(this);
34 }
35
36 override void Enable()
37 {
38 super.Enable();
39 m_Slider2.ClearFlags(WidgetFlags.IGNOREPOINTER);
40 }
41
42 override void Disable()
43 {
44 super.Disable();
45 m_Slider2.SetFlags(WidgetFlags.IGNOREPOINTER);
46 }
47
49 {
50 m_Slider2.SetCurrent(NormalizeInput(value));
51 }
52
53 override bool OnUpdate(Widget w)
54 {
55 return false;
56 }
57}
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 OptionSelectorLevelMarker(Widget parent, float value, ScriptedWidgetEventHandler parentMenu, bool disabled, float min, float max)
map: item x vector(index, width, height)
Definition EnWidgets.c:651
proto native CGame GetGame()
WidgetFlags
Definition EnWidgets.c:58