|
void | OptionSelector (Widget parent, int current_index, ScriptedWidgetEventHandler parent_c, bool disabled) |
|
void | ~OptionSelector () |
|
override bool | OnMouseButtonUp (Widget w, int x, int y, int button) |
|
override bool | OnClick (Widget w, int x, int y, int button) |
|
override bool | OnMouseEnter (Widget w, int x, int y) |
|
override bool | OnMouseLeave (Widget w, Widget enterW, int x, int y) |
|
void | Reset () |
|
void | SetNextOption () |
|
void | SetPrevOption () |
|
array< string > | GetOptions () |
|
bool | IsSet () |
|
bool | IsEnabled () |
| Returns 'true' if current index == 1 (default 'enabled' value). Take care, as different selectors may follow different logic!
|
|
bool | IsSelectorEnabled () |
| Returns false for the selector in 'disabled' states.
|
|
string | GetStringValue () |
|
void | SetStringOption (string option, bool fire_event=true) |
|
void | ColorOption () |
|
override bool | IsFocusable (Widget w) |
|
override void | Enable () |
|
override void | Disable () |
|
override void | ColorNormalConsole (Widget w) |
|
override void | ColorDisabledConsole (Widget w) |
|
void | OptionSelectorEditbox (Widget parent, string value, ScriptedWidgetEventHandler parent_menu, bool disabled) |
|
void | ~OptionSelectorEditbox () |
|
override void | Enable () |
|
override void | Disable () |
|
override bool | OnMouseEnter (Widget w, int x, int y) |
|
override bool | OnMouseLeave (Widget w, Widget enterW, int x, int y) |
|
override bool | OnChange (Widget w, int x, int y, bool finished) |
|
override bool | IsFocusable (Widget w) |
|
override bool | OnFocus (Widget w, int x, int y) |
|
override bool | OnFocusLost (Widget w, int x, int y) |
|
void | SetValue (string value, bool update=true) |
|
string | GetValue () |
|
override void | ColorHighlight (Widget w) |
|
override void | ColorNormal (Widget w) |
|
void | ~OptionSelectorSliderSetup () |
|
override void | Enable () |
|
override void | Disable () |
|
override bool | OnMouseEnter (Widget w, int x, int y) |
|
override bool | OnMouseLeave (Widget w, Widget enterW, int x, int y) |
|
override bool | OnMouseButtonUp (Widget w, int x, int y, int button) |
|
override bool | OnChange (Widget w, int x, int y, bool finished) |
|
override bool | IsFocusable (Widget w) |
|
override bool | OnFocus (Widget w, int x, int y) |
|
override bool | OnFocusLost (Widget w, int x, int y) |
|
float | NormalizeInput (float value) |
|
void | SetStep (float step) |
|
void | SetValue (float value, bool update=true) |
|
float | GetValue () |
|
void | SetMax (float max) |
|
override void | ColorHighlight (Widget w) |
|
override void | ColorNormal (Widget w) |
|
◆ ~OptionSelector()
57 {
59 }
Widget m_Root
Definition SizeToChild.c:91
Перекрестные ссылки m_Root.
◆ ~OptionSelectorEditbox()
◆ ~OptionSelectorSliderSetup()
◆ ColorDisabledConsole()
249 {
250 super.ColorDisabledConsole(
w);
251
253 return;
254
256 {
258 }
259 }
TextWidget m_SelectedOption
Definition OptionSelector.c:5
int ARGB(int a, int r, int g, int b)
Definition proto.c:322
Перекрестные ссылки ARGB().
Используется в ScriptedWidgetEventHandler::Disable().
◆ ColorHighlight() [1/2]
◆ ColorHighlight() [2/2]
140 {
142 return;
143
145 {
148 }
149
151 }
SliderWidget m_Slider
Definition OptionSelectorSliderSetup.c:3
Перекрестные ссылки ARGB() и SetFocus().
◆ ColorNormal() [1/2]
◆ ColorNormal() [2/2]
154 {
156 return;
157
159 {
161 }
162
164 }
Перекрестные ссылки ARGB().
◆ ColorNormalConsole()
◆ ColorOption()
177 {
179 {
180 case 0:
181 {
183 break;
184 }
185 case 1:
186 {
188 break;
189 }
190 case 2:
191 {
193 break;
194 }
195 }
196 }
int m_SelectedOptionIndex
Definition OptionSelector.c:6
Перекрестные ссылки ARGB().
◆ Disable() [1/3]
222 {
224 #ifndef PLATFORM_CONSOLE
229 #else
232 #endif
233 }
Widget m_Parent
Definition SizeToChild.c:92
Widget m_PreviousOption
Definition OptionSelector.c:3
Widget m_NextOption
Definition OptionSelector.c:4
Перекрестные ссылки m_Parent.
◆ Disable() [2/3]
◆ Disable() [3/3]
◆ Enable() [1/3]
◆ Enable() [2/3]
◆ Enable() [3/3]
◆ GetOptions()
136 {
138 }
ref array< string > m_Options
Definition OptionSelector.c:7
◆ GetStringValue()
◆ GetValue() [1/2]
◆ GetValue() [2/2]
129 {
132 }
float m_MaxValue
Definition OptionSelectorSliderSetup.c:5
float m_MinValue
Definition OptionSelectorSliderSetup.c:4
Перекрестные ссылки m_MaxValue и m_MinValue.
◆ IsEnabled()
Returns 'true' if current index == 1 (default 'enabled' value). Take care, as different selectors may follow different logic!
◆ IsFocusable() [1/3]
◆ IsFocusable() [2/3]
104 {
106 {
108 }
109 return false;
110 }
Перекрестные ссылки m_Parent.
◆ IsFocusable() [3/3]
76 {
78 {
80 }
81 return false;
82 }
Перекрестные ссылки m_Parent.
◆ IsSelectorEnabled()
bool IsSelectorEnabled |
( |
| ) |
|
|
inlineprotected |
Returns false for the selector in 'disabled' states.
154 {
156 }
bool m_Enabled
Definition TrapTrigger.c:71
Перекрестные ссылки m_Enabled.
◆ IsSet()
◆ NormalizeInput()
◆ OnChange() [1/2]
94 {
96 {
98 return true;
99 }
100 return false;
101 }
string GetValue()
Definition OptionSelectorEditbox.c:140
Перекрестные ссылки GetValue().
◆ OnChange() [2/2]
66 {
68 {
70 return true;
71 }
72 return false;
73 }
Перекрестные ссылки GetValue().
◆ OnClick()
◆ OnFocus() [1/2]
◆ OnFocus() [2/2]
◆ OnFocusLost() [1/2]
124 {
126 {
129 }
130 return false;
131 }
Перекрестные ссылки m_Parent, x и y.
◆ OnFocusLost() [2/2]
101 {
103 {
106 }
107 return false;
108 }
Перекрестные ссылки m_Parent, x и y.
◆ OnMouseButtonUp() [1/2]
◆ OnMouseButtonUp() [2/2]
58 {
60 {
61 }
62 return false;
63 }
◆ OnMouseEnter() [1/3]
Перекрестные ссылки x и y.
◆ OnMouseEnter() [2/3]
46 {
48 return true;
49
50 if (m_ParentClass)
51 {
52 m_ParentClass.OnFocus(
m_Root.GetParent(), -1, m_SelectorType);
53 m_ParentClass.OnMouseEnter(
m_Root.GetParent().GetParent(),
x,
y);
54 }
55
57
58 if (
menu &&
menu.IsInherited(CharacterCreationMenu))
59 {
60 menu.OnFocus(
m_Root.GetParent(), -1, m_SelectorType);
62 }
63
65
66 return true;
67 }
override bool IsFocusable(Widget w)
Definition OptionSelector.c:198
override void ColorHighlight(Widget w)
Definition OptionSelectorEditbox.c:145
proto native CGame GetGame()
Перекрестные ссылки ColorHighlight(), GetGame(), IsFocusable(), m_Root, x и y.
◆ OnMouseEnter() [3/3]
27 {
28 if (m_ParentClass)
29 {
31 m_ParentClass.OnFocus(
m_Root.GetParent(), -1, m_SelectorType);
32 #ifdef PLATFORM_WINDOWS
33 m_ParentClass.OnMouseEnter(
m_Root.GetParent().GetParent(),
x,
y);
35 #endif
36 }
37
38 return true;
39 }
override bool OnFocus(Widget w, int x, int y)
Definition OptionSelectorEditbox.c:112
Перекрестные ссылки ColorHighlight(), m_Root, OnFocus(), x и y.
◆ OnMouseLeave() [1/3]
Перекрестные ссылки x и y.
◆ OnMouseLeave() [2/3]
70 {
72 return true;
73
74 if (m_ParentClass)
75 {
76 m_ParentClass.OnFocus(
null,
x,
y);
77 m_ParentClass.OnMouseLeave(
m_Root.GetParent().GetParent(),
enterW,
x,
y);
78 }
79
81
82 if (
menu &&
menu.IsInherited(CharacterCreationMenu))
83 {
86 }
87
89
90 return true;
91 }
override void ColorNormal(Widget w)
Definition OptionSelectorEditbox.c:159
Перекрестные ссылки ColorNormal(), GetGame(), IsFocusable(), m_Root, x и y.
◆ OnMouseLeave() [3/3]
42 {
43 if (m_ParentClass)
44 {
45 m_ParentClass.OnFocus(
null,
x,
y);
46 #ifdef PLATFORM_WINDOWS
47 m_ParentClass.OnMouseLeave(
m_Root.GetParent().GetParent(),
enterW,
x,
y);
49 #endif
52 }
53
54 return true;
55 }
override bool OnFocusLost(Widget w, int x, int y)
Definition OptionSelectorEditbox.c:123
Перекрестные ссылки ColorNormal(), m_Root, OnFocusLost(), SetFocus(), x и y.
◆ OptionSelector()
10 {
11 m_Options = {
"#server_browser_disabled",
"#server_browser_show",
"#server_browser_hide" };
13 m_SelectorType = 2;
15 {
17 }
18 else
19 {
21 }
22
23 m_Root =
GetGame().GetWorkspace().CreateWidgets(
"gui/layouts/new_ui/option_selector.layout", parent);
24 #ifdef PLATFORM_CONSOLE
25 m_Parent = parent.GetParent().GetParent();
26 #else
27 #ifdef PLATFORM_WINDOWS
29 #endif
30 #endif
31
35
36 #ifdef PLATFORM_CONSOLE
39 #endif
40
42
45 {
47 }
48 else
49 {
51 }
52
54 }
override void Disable()
Definition OptionSelector.c:221
override void Enable()
Definition OptionSelector.c:207
Definition EnWidgets.c:220
Перекрестные ссылки Enable(), GetGame(), m_Enabled, m_Parent и m_Root.
◆ OptionSelectorEditbox()
6 {
7 m_Root =
GetGame().GetWorkspace().CreateWidgets(
"gui/layouts/new_ui/option_editbox.layout", parent);
8 #ifdef PLATFORM_CONSOLE
9 m_Parent = parent.GetParent().GetParent();
10 #else
11 #ifdef PLATFORM_WINDOWS
13 #endif
14 #endif
15
16 m_SelectorType = 1;
19
22
24 }
void SetValue(string value, bool update=true)
Definition OptionSelectorEditbox.c:133
Перекрестные ссылки Enable(), GetGame(), m_Parent, m_Root и SetValue().
◆ Reset()
◆ SetMax()
◆ SetNextOption()
110 {
113 {
115 }
116
118
120 }
◆ SetPrevOption()
123 {
126 {
128 }
129
131
133 }
◆ SetStep()
◆ SetStringOption()
164 {
167 {
170
173 }
174 }
◆ SetValue() [1/2]
122 {
126 }
float NormalizeInput(float value)
Definition OptionSelectorSliderSetup.c:110
Перекрестные ссылки GetValue().
◆ SetValue() [2/2]
◆ m_EditBox
◆ m_MaxValue
◆ m_MinValue
◆ m_NextOption
◆ m_Options
◆ m_PreviousOption
◆ m_SelectedOption
◆ m_SelectedOptionIndex
int m_SelectedOptionIndex |
|
protected |
◆ m_Slider
Объявления и описания членов классов находятся в файлах: