DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс OptionSelectorSliderSetup

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. Подробнее...

Защищенные члены

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)
 

Защищенные данные

SliderWidget m_Slider2
 

Закрытые члены

void OptionSelectorSlider (Widget parent, float value, ScriptedWidgetEventHandler parent_menu, bool disabled, float min, float max)
 

Подробное описание

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.

Аргументы
m_Slider2other slider value, which can be used to convery some other info to the player

Методы

◆ Disable()

override void Disable ( )
inlineprotected
43 {
44 super.Disable();
45 m_Slider2.SetFlags(WidgetFlags.IGNOREPOINTER);
46 }
SliderWidget m_Slider2
Definition OptionSelectorLevelMarker.c:8
Definition EntityAI.c:95
WidgetFlags
Definition EnWidgets.c:58

◆ Enable()

override void Enable ( )
inlineprotected
37 {
38 super.Enable();
39 m_Slider2.ClearFlags(WidgetFlags.IGNOREPOINTER);
40 }

Используется в OptionSelectorLevelMarker() и OptionSelectorSlider().

◆ OnUpdate()

override bool OnUpdate ( Widget w)
inlineprotected
54 {
55 return false;
56 }

◆ OptionSelectorLevelMarker()

void OptionSelectorLevelMarker ( Widget parent,
float value,
ScriptedWidgetEventHandler parentMenu,
bool disabled,
float min,
float max )
inlineprotected
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 }
override void SetValue(int value, bool fire_event=true)
Definition OptionSelectorMultistate.c:233
class PlayerStatBase m_MinValue
T m_MaxValue
Definition PlayerStatBase.c:35
Widget m_Root
Definition SizeToChild.c:91
Widget m_Parent
Definition SizeToChild.c:92
override void Enable()
Definition OptionSelectorLevelMarker.c:36
void SetSlider2Value(float value)
Definition OptionSelectorLevelMarker.c:48
proto native CGame GetGame()

Перекрестные ссылки Enable(), GetGame(), m_MaxValue, m_MinValue, m_Parent, m_Root, SetSlider2Value() и SetValue().

◆ OptionSelectorSlider()

void OptionSelectorSlider ( Widget parent,
float value,
ScriptedWidgetEventHandler parent_menu,
bool disabled,
float min,
float max )
inlineprivate
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 }

Перекрестные ссылки Enable(), GetGame(), m_MaxValue, m_MinValue, m_Parent, m_Root и SetValue().

◆ SetSlider2Value()

void SetSlider2Value ( float value)
inlineprotected
49 {
50 m_Slider2.SetCurrent(NormalizeInput(value));
51 }

Используется в OptionSelectorLevelMarker().

Поля

◆ m_Slider2

SliderWidget m_Slider2
protected

Объявления и описания членов классов находятся в файлах: