Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
SCR_CustomDropdownEditorUIComponent.c
Go to the documentation of this file.
1
class
SCR_CustomDropdownEditorUIComponent
:
ScriptedWidgetComponent
2
{
3
//TODO: Check how to close the drop down if anything else is clicked (How does the combobox work?)
4
[
Attribute
(
"ItemHolder"
)]
5
protected
string
m_sItemHolderName
;
6
7
[
Attribute
(
"ModeSelection_List0"
)]
8
protected
string
m_sListWidgetName
;
9
10
[
Attribute
(
"Stripe"
)]
11
protected
string
m_sListWidgetStripeName
;
12
13
[
Attribute
(
"ModeSelection_Mode0"
)]
14
protected
string
m_sDropdownButtonName
;
15
16
[
Attribute
(
"Content"
)]
17
protected
string
m_DropdownTextName
;
18
19
[
Attribute
(
"PcArrow"
)]
20
protected
string
m_sArrowWidgetName
;
21
22
[
Attribute
(
"GamepadHint"
)]
23
protected
string
m_sGamepadHintWidgetName
;
24
25
[
Attribute
()]
26
protected
ResourceName
m_sItemPrefab
;
27
28
[
Attribute
(
"0.025"
,
"Fade delay in seconds. For every new button that is added the delay increases slightly"
)]
29
protected
float
m_fFadeDelayNextButton
;
30
31
[
Attribute
(
"4"
,
"How fast each button appears"
)]
32
protected
float
m_fButtonFadeSpeed
;
33
34
[
Attribute
(
"-1"
,
desc
:
"How much will the list of controls hints be offset vertically.\nKeep -1 to leave it unaffected."
)]
35
protected
int
m_iAvailableActionsOffsetY
;
36
37
//Refs
38
protected
Widget
m_Root
;
39
protected
Widget
m_ItemHolder
;
40
protected
Widget
m_ListWidget
;
41
protected
SCR_FadeUIComponent
m_ListWidgetStripeFadeComponent
;
42
protected
TextWidget
m_DropdownText
;
43
protected
ImageWidget
m_ArrowWidget
;
44
protected
SCR_ButtonImageComponent
m_DropdownButton
;
45
protected
ref array<SCR_ButtonImageComponent>
m_aItemButtons
= {};
46
protected
ref array<SCR_EditorModeUIInfo>
m_aModeUIInfo
= {};
47
48
//States
49
protected
bool
m_bIsOpened
;
50
protected
int
m_iSelectedItem
;
51
protected
bool
m_bHovered
;
52
53
protected
ref
ScriptInvoker
Event_OnDropdownOpened
;
54
protected
ref
ScriptInvoker
Event_OnDropdownClosed
;
55
protected
ref
ScriptInvoker
Event_OnChanged
;
56
57
protected
int
m_iCloseOnIndex
;
58
protected
bool
m_bIsEnabled
=
true
;
59
60
//------------------------------------------------------------------------------------------------
63
void
SetDropdownEnable
(
bool
enable)
64
{
65
m_bIsEnabled
= enable;
66
67
if
(
m_bIsOpened
)
68
CloseDropdown
();
69
70
m_Root
.SetEnabled(enable);
71
72
if
(enable)
73
{
74
OnInputDeviceIsGamepad
(!
GetGame
().
GetInputManager
().IsUsingMouseAndKeyboard());
75
}
76
else
77
{
78
m_ArrowWidget
.SetVisible(
false
);
79
80
Widget
gamePadhintWidget =
m_Root
.FindAnyWidget(
m_sGamepadHintWidgetName
);
81
if
(gamePadhintWidget)
82
gamePadhintWidget.SetVisible(
false
);
83
}
84
85
}
86
87
//------------------------------------------------------------------------------------------------
88
protected
void
OnDropDownClicked
(
SCR_ButtonImageComponent
button)
89
{
90
if
(
m_bIsOpened
)
91
CloseDropdown
();
92
else
93
OpenDropdown
();
94
}
95
96
//------------------------------------------------------------------------------------------------
97
protected
void
OnItemClicked
(
SCR_ButtonImageComponent
button)
98
{
99
int
index
=
m_aItemButtons
.Find(button);
100
101
if
(
index
< 0)
102
return
;
103
104
SetCurrentItem
(
index
,
true
);
105
}
106
107
//------------------------------------------------------------------------------------------------
108
protected
void
OnDropDownFocus
()
109
{
110
if
(!
m_bIsOpened
)
111
OpenDropdown
();
112
113
GetGame
().GetWorkspace().SetFocusedWidget(
m_aItemButtons
[0].
GetRootWidget
());
114
}
115
116
//------------------------------------------------------------------------------------------------
117
protected
void
OnMenuActionLeft
()
118
{
119
CloseDropdown
();
120
}
121
122
//------------------------------------------------------------------------------------------------
126
void
AddItem
(
SCR_EditorModeUIInfo
uiInfo,
Color
color)
127
{
128
if
(!
m_ItemHolder
)
129
return
;
130
131
Widget
itemWidget =
GetGame
().GetWorkspace().CreateWidgets(
m_sItemPrefab
,
m_ItemHolder
);
132
if
(!itemWidget)
133
return
;
134
135
SCR_ButtonImageComponent
newItem =
SCR_ButtonImageComponent
.Cast(itemWidget.FindHandler(
SCR_ButtonImageComponent
));
136
137
if
(newItem)
138
{
139
newItem.m_OnClicked.Insert(
OnItemClicked
);
140
m_aItemButtons
.Insert(newItem);
141
m_aModeUIInfo
.Insert(uiInfo);
142
143
uiInfo.SetIconTo(newItem.GetImageWidget());
144
newItem.GetImageWidget().SetVisible(
true
);
145
146
TextWidget
textWidget =
TextWidget
.Cast(newItem.GetRootWidget().FindAnyWidget(
"Text"
));
147
if
(textWidget)
148
uiInfo.SetNameTo(textWidget);
149
150
Widget
sideBar = newItem.GetRootWidget().FindAnyWidget(
"SideBar"
);
151
152
if
(sideBar)
153
sideBar.SetColor(uiInfo.
GetModeColor
());
154
155
SCR_LinkTooltipTargetEditorUIComponent
tooltip =
SCR_LinkTooltipTargetEditorUIComponent
.Cast(itemWidget.FindHandler(
SCR_LinkTooltipTargetEditorUIComponent
));
156
if
(tooltip)
157
tooltip.
SetInfo
(uiInfo);
158
}
159
else
160
{
161
itemWidget.RemoveFromHierarchy();
162
}
163
}
164
165
//------------------------------------------------------------------------------------------------
169
bool
IsOpened
()
170
{
171
return
m_bIsOpened
;
172
}
173
174
//---- REFACTOR NOTE START: 90 and 270 rotation is understandable but it might be hard to find in case of tweaking
175
176
//------------------------------------------------------------------------------------------------
179
void
OpenDropdown
(
int
focusIndex =-1)
180
{
181
float
fadeDelay = 0;
182
SCR_FadeUIComponent
fadeComponent
183
foreach
(
SCR_ButtonImageComponent
button:
m_aItemButtons
)
184
{
185
if
(!button.GetRootWidget().IsVisible())
186
continue
;
187
188
fadeComponent =
SCR_FadeUIComponent
.Cast(button.GetRootWidget().FindHandler(
SCR_FadeUIComponent
));
189
if
(fadeComponent)
190
{
191
fadeComponent.SetFadeInSpeed(
m_fButtonFadeSpeed
);
192
fadeComponent.DelayedFadeIn(fadeDelay * 1000);
193
fadeDelay +=
m_fFadeDelayNextButton
;
194
}
195
}
196
197
if
(
m_ListWidgetStripeFadeComponent
)
198
m_ListWidgetStripeFadeComponent
.DelayedFadeIn(fadeDelay * 1000);
199
200
m_ListWidget
.SetVisible(
true
);
201
202
// Set arrow image angle
203
if
(
m_ArrowWidget
)
204
m_ArrowWidget
.SetRotation(90);
205
206
if
(
m_iAvailableActionsOffsetY
!= -1)
207
{
208
SCR_AvailableActionsDisplay availableActionsDisplay = SCR_AvailableActionsDisplay.Cast(
GetGame
().
GetHUDManager
().FindInfoDisplay(SCR_AvailableActionsDisplay));
209
if
(availableActionsDisplay)
210
availableActionsDisplay.SetAdditionalOffsetY(
m_iAvailableActionsOffsetY
);
211
}
212
213
//Rotate arrow
214
215
m_bIsOpened
=
true
;
216
if
(
Event_OnDropdownOpened
)
217
Event_OnDropdownOpened
.Invoke(
this
);
218
219
if
(focusIndex > -1)
220
{
221
WorkspaceWidget
workspace =
GetGame
().GetWorkspace();
222
if
(!workspace)
223
return
;
224
225
workspace.SetFocusedWidget(
m_aItemButtons
[focusIndex].
GetRootWidget
());
226
}
227
228
// Setup action listeners
229
GetGame
().GetInputManager().AddActionListener(
UIConstants
.MENU_ACTION_LEFT,
EActionTrigger
.DOWN,
OnMenuActionLeft
);
230
}
231
232
//------------------------------------------------------------------------------------------------
234
void
CloseDropdown
()
235
{
236
m_ListWidget
.SetVisible(
false
);
237
238
// Set arrow image angle
239
if
(
m_ArrowWidget
)
240
m_ArrowWidget
.SetRotation(270);
241
242
if
(
m_iAvailableActionsOffsetY
!= -1)
243
{
244
SCR_AvailableActionsDisplay availableActionsDisplay = SCR_AvailableActionsDisplay.Cast(
GetGame
().
GetHUDManager
().FindInfoDisplay(SCR_AvailableActionsDisplay));
245
if
(availableActionsDisplay)
246
availableActionsDisplay.SetAdditionalOffsetY(0);
247
}
248
249
m_bIsOpened
=
false
;
250
if
(
Event_OnDropdownClosed
)
251
Event_OnDropdownClosed
.Invoke(
this
);
252
253
SCR_FadeUIComponent
fadeComponent;
254
foreach
(
SCR_ButtonImageComponent
button:
m_aItemButtons
)
255
{
256
fadeComponent =
SCR_FadeUIComponent
.Cast(button.GetRootWidget().FindHandler(
SCR_FadeUIComponent
));
257
if
(fadeComponent)
258
fadeComponent.
CancelFade
(
false
);
259
}
260
261
if
(
m_ListWidgetStripeFadeComponent
)
262
m_ListWidgetStripeFadeComponent
.CancelFade(
false
);
263
264
// Remove action listeners
265
GetGame
().GetInputManager().RemoveActionListener(
UIConstants
.MENU_ACTION_LEFT,
EActionTrigger
.DOWN,
OnMenuActionLeft
);
266
}
267
268
//---- REFACTOR NOTE END ----
269
270
protected
void
OnLMB
()
271
{
272
if
(
m_bIsOpened
&& !
m_bHovered
)
273
CloseDropdown
();
274
}
275
276
//------------------------------------------------------------------------------------------------
280
void
SetCurrentItem
(
int
index
,
bool
callOnChanged)
281
{
282
m_iSelectedItem
=
index
;
283
284
if
(callOnChanged &&
Event_OnChanged
)
285
Event_OnChanged
.Invoke(
this
,
index
);
286
287
if
(!
m_aModeUIInfo
.IsIndexValid(
index
))
288
return
;
289
290
SCR_EditorModeUIInfo
uiInfo =
m_aModeUIInfo
[
index
];
291
292
if
(
m_DropdownText
)
293
uiInfo.SetNameTo(
m_DropdownText
);
294
295
if
(
m_DropdownButton
)
296
uiInfo.SetIconTo(
m_DropdownButton
.GetImageWidget());
297
}
298
299
//------------------------------------------------------------------------------------------------
302
int
GetSelectedIndex
()
303
{
304
return
m_iSelectedItem
;
305
}
306
307
// //------------------------------------------------------------------------------------------------
308
// //! Clear all elements
309
// void ClearAll()
310
// {
311
// }
312
313
//------------------------------------------------------------------------------------------------
315
Widget
GetRootWidget
()
316
{
317
return
m_Root
;
318
}
319
320
//------------------------------------------------------------------------------------------------
324
void
SetItemEnabled
(
int
index
,
bool
enabled)
325
{
326
if
(
index < 0 || index >
=
m_aItemButtons
.Count())
327
return
;
328
329
m_aItemButtons
[
index
].GetRootWidget().SetEnabled(enabled);
330
}
331
332
//------------------------------------------------------------------------------------------------
337
void
SetItemVisible
(
int
index
,
bool
visible)
338
{
339
if
(
index < 0 || index >
=
m_aItemButtons
.Count())
340
return
;
341
342
m_aItemButtons
[
index
].GetRootWidget().SetVisible(visible);
343
}
344
346
347
//------------------------------------------------------------------------------------------------
349
ScriptInvoker
GetOnChanged
()
350
{
351
if
(!
Event_OnChanged
)
352
Event_OnChanged
=
new
ScriptInvoker
();
353
354
return
Event_OnChanged
;
355
}
356
357
//------------------------------------------------------------------------------------------------
359
ScriptInvoker
GetOnOpened
()
360
{
361
if
(!
Event_OnDropdownOpened
)
362
Event_OnDropdownOpened
=
new
ScriptInvoker
();
363
364
return
Event_OnDropdownOpened
;
365
}
366
367
//------------------------------------------------------------------------------------------------
369
ScriptInvoker
GetOnClosed
()
370
{
371
if
(!
Event_OnDropdownClosed
)
372
Event_OnDropdownClosed
=
new
ScriptInvoker
();
373
374
return
Event_OnDropdownClosed
;
375
}
376
377
//------------------------------------------------------------------------------------------------
378
protected
void
OnInputDeviceIsGamepad
(
bool
isGamepad)
379
{
380
if
(!
m_bIsEnabled
)
381
return
;
382
383
m_ArrowWidget
.SetVisible(!isGamepad);
384
385
Widget
gamePadhintWidget =
m_Root
.FindAnyWidget(
m_sGamepadHintWidgetName
);
386
if
(gamePadhintWidget)
387
gamePadhintWidget.SetVisible(isGamepad);
388
}
389
390
//------------------------------------------------------------------------------------------------
391
override
bool
OnMouseEnter
(
Widget
w,
int
x,
int
y)
392
{
393
m_bHovered
=
true
;
394
return
false
;
395
}
396
397
//------------------------------------------------------------------------------------------------
398
override
bool
OnMouseLeave
(
Widget
w,
Widget
enterW,
int
x,
int
y)
399
{
400
m_bHovered
=
false
;
401
return
false
;
402
}
403
404
//------------------------------------------------------------------------------------------------
405
override
void
HandlerAttached
(
Widget
w)
406
{
407
if
(
SCR_Global
.
IsEditMode
())
408
return
;
409
410
GetGame
().GetInputManager().AddActionListener(
"MouseLeft"
,
EActionTrigger
.DOWN,
OnLMB
);
411
m_Root
= w;
412
m_ItemHolder
= w.FindAnyWidget(
m_sItemHolderName
);
413
m_ListWidget
= w.FindAnyWidget(
m_sListWidgetName
);
414
m_ArrowWidget
=
ImageWidget
.Cast(w.FindAnyWidget(
m_sArrowWidgetName
));
415
416
if
(
m_ListWidget
)
417
{
418
Widget
listWidgetStripe =
m_ListWidget
.FindAnyWidget(
m_sListWidgetStripeName
);
419
420
if
(listWidgetStripe)
421
{
422
m_ListWidgetStripeFadeComponent
=
SCR_FadeUIComponent
.Cast(listWidgetStripe.FindHandler(
SCR_FadeUIComponent
));
423
424
if
(
m_ListWidgetStripeFadeComponent
)
425
m_ListWidgetStripeFadeComponent
.SetFadeInSpeed(
m_fButtonFadeSpeed
);
426
}
427
}
428
429
430
Widget
dropDownWidget = w.FindAnyWidget(
m_sDropdownButtonName
);
431
if
(!dropDownWidget)
432
return
;
433
434
m_DropdownText
=
TextWidget
.Cast(w.FindAnyWidget(
m_DropdownTextName
));
435
if
(!
m_DropdownText
)
436
return
;
437
438
m_DropdownButton
=
SCR_ButtonImageComponent
.Cast(dropDownWidget.FindHandler(
SCR_ButtonImageComponent
));
439
m_DropdownButton
.m_OnClicked.Insert(
OnDropDownClicked
);
440
m_DropdownButton
.m_OnFocus.Insert(
OnDropDownFocus
);
441
442
ScriptInvoker
invoker =
GetGame
().OnInputDeviceIsGamepadInvoker();
443
if
(invoker)
444
invoker.Insert(
OnInputDeviceIsGamepad
);
445
446
OnInputDeviceIsGamepad
(!
GetGame
().
GetInputManager
().IsUsingMouseAndKeyboard());
447
}
448
449
//------------------------------------------------------------------------------------------------
450
override
void
HandlerDeattached
(
Widget
w)
451
{
452
ScriptInvoker
invoker =
GetGame
().OnInputDeviceIsGamepadInvoker();
453
if
(invoker)
454
invoker.Remove(
OnInputDeviceIsGamepad
);
455
456
GetGame
().GetInputManager().RemoveActionListener(
"MouseLeft"
,
EActionTrigger
.DOWN,
OnLMB
);
457
}
458
}
GetGame
ArmaReforgerScripted GetGame()
Definition
game.c:1398
GetHUDManager
SCR_HUDManagerComponent GetHUDManager()
Definition
game.c:1151
GetInputManager
InputManager GetInputManager()
Definition
SCR_BaseManualCameraComponent.c:205
index
SCR_DestructionSynchronizationComponentClass ScriptComponentClass int index
Definition
SCR_DestructionSynchronizationComponent.c:17
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition
SCR_RespawnBriefingComponent.c:17
Color
Definition
Color.c:13
ImageWidget
Definition
ImageWidget.c:13
ResourceName
Definition
ResourceName.c:13
SCR_ButtonImageComponent
Definition
SCR_ButtonImageComponent.c:3
SCR_CustomDropdownEditorUIComponent
Definition
SCR_CustomDropdownEditorUIComponent.c:2
SCR_CustomDropdownEditorUIComponent::OnMouseLeave
override bool OnMouseLeave(Widget w, Widget enterW, int x, int y)
Definition
SCR_CustomDropdownEditorUIComponent.c:398
SCR_CustomDropdownEditorUIComponent::m_aModeUIInfo
ref array< SCR_EditorModeUIInfo > m_aModeUIInfo
Definition
SCR_CustomDropdownEditorUIComponent.c:46
SCR_CustomDropdownEditorUIComponent::m_sGamepadHintWidgetName
string m_sGamepadHintWidgetName
Definition
SCR_CustomDropdownEditorUIComponent.c:23
SCR_CustomDropdownEditorUIComponent::m_ListWidgetStripeFadeComponent
SCR_FadeUIComponent m_ListWidgetStripeFadeComponent
Definition
SCR_CustomDropdownEditorUIComponent.c:41
SCR_CustomDropdownEditorUIComponent::SetItemEnabled
void SetItemEnabled(int index, bool enabled)
Definition
SCR_CustomDropdownEditorUIComponent.c:324
SCR_CustomDropdownEditorUIComponent::SetItemVisible
void SetItemVisible(int index, bool visible)
Definition
SCR_CustomDropdownEditorUIComponent.c:337
SCR_CustomDropdownEditorUIComponent::Event_OnDropdownClosed
ref ScriptInvoker Event_OnDropdownClosed
Definition
SCR_CustomDropdownEditorUIComponent.c:54
SCR_CustomDropdownEditorUIComponent::m_bIsEnabled
bool m_bIsEnabled
Definition
SCR_CustomDropdownEditorUIComponent.c:58
SCR_CustomDropdownEditorUIComponent::OnDropDownFocus
void OnDropDownFocus()
Definition
SCR_CustomDropdownEditorUIComponent.c:108
SCR_CustomDropdownEditorUIComponent::m_bHovered
bool m_bHovered
Definition
SCR_CustomDropdownEditorUIComponent.c:51
SCR_CustomDropdownEditorUIComponent::Event_OnChanged
ref ScriptInvoker Event_OnChanged
Definition
SCR_CustomDropdownEditorUIComponent.c:55
SCR_CustomDropdownEditorUIComponent::m_DropdownText
TextWidget m_DropdownText
Definition
SCR_CustomDropdownEditorUIComponent.c:42
SCR_CustomDropdownEditorUIComponent::GetOnClosed
ScriptInvoker GetOnClosed()
Definition
SCR_CustomDropdownEditorUIComponent.c:369
SCR_CustomDropdownEditorUIComponent::m_sItemHolderName
string m_sItemHolderName
Definition
SCR_CustomDropdownEditorUIComponent.c:5
SCR_CustomDropdownEditorUIComponent::GetSelectedIndex
int GetSelectedIndex()
Definition
SCR_CustomDropdownEditorUIComponent.c:302
SCR_CustomDropdownEditorUIComponent::OnInputDeviceIsGamepad
void OnInputDeviceIsGamepad(bool isGamepad)
Definition
SCR_CustomDropdownEditorUIComponent.c:378
SCR_CustomDropdownEditorUIComponent::m_sDropdownButtonName
string m_sDropdownButtonName
Definition
SCR_CustomDropdownEditorUIComponent.c:14
SCR_CustomDropdownEditorUIComponent::m_fFadeDelayNextButton
float m_fFadeDelayNextButton
Definition
SCR_CustomDropdownEditorUIComponent.c:29
SCR_CustomDropdownEditorUIComponent::GetOnChanged
ScriptInvoker GetOnChanged()
Definition
SCR_CustomDropdownEditorUIComponent.c:349
SCR_CustomDropdownEditorUIComponent::m_ItemHolder
Widget m_ItemHolder
Definition
SCR_CustomDropdownEditorUIComponent.c:39
SCR_CustomDropdownEditorUIComponent::SetDropdownEnable
void SetDropdownEnable(bool enable)
Definition
SCR_CustomDropdownEditorUIComponent.c:63
SCR_CustomDropdownEditorUIComponent::OnDropDownClicked
void OnDropDownClicked(SCR_ButtonImageComponent button)
Definition
SCR_CustomDropdownEditorUIComponent.c:88
SCR_CustomDropdownEditorUIComponent::m_Root
Widget m_Root
Definition
SCR_CustomDropdownEditorUIComponent.c:38
SCR_CustomDropdownEditorUIComponent::m_iCloseOnIndex
int m_iCloseOnIndex
Definition
SCR_CustomDropdownEditorUIComponent.c:57
SCR_CustomDropdownEditorUIComponent::m_ListWidget
Widget m_ListWidget
Definition
SCR_CustomDropdownEditorUIComponent.c:40
SCR_CustomDropdownEditorUIComponent::m_sArrowWidgetName
string m_sArrowWidgetName
Definition
SCR_CustomDropdownEditorUIComponent.c:20
SCR_CustomDropdownEditorUIComponent::SetCurrentItem
void SetCurrentItem(int index, bool callOnChanged)
Definition
SCR_CustomDropdownEditorUIComponent.c:280
SCR_CustomDropdownEditorUIComponent::m_fButtonFadeSpeed
float m_fButtonFadeSpeed
Definition
SCR_CustomDropdownEditorUIComponent.c:32
SCR_CustomDropdownEditorUIComponent::GetOnOpened
ScriptInvoker GetOnOpened()
Definition
SCR_CustomDropdownEditorUIComponent.c:359
SCR_CustomDropdownEditorUIComponent::m_aItemButtons
ref array< SCR_ButtonImageComponent > m_aItemButtons
Definition
SCR_CustomDropdownEditorUIComponent.c:45
SCR_CustomDropdownEditorUIComponent::m_DropdownButton
SCR_ButtonImageComponent m_DropdownButton
Definition
SCR_CustomDropdownEditorUIComponent.c:44
SCR_CustomDropdownEditorUIComponent::m_DropdownTextName
string m_DropdownTextName
Definition
SCR_CustomDropdownEditorUIComponent.c:17
SCR_CustomDropdownEditorUIComponent::OnLMB
void OnLMB()
Definition
SCR_CustomDropdownEditorUIComponent.c:270
SCR_CustomDropdownEditorUIComponent::OnMouseEnter
override bool OnMouseEnter(Widget w, int x, int y)
Definition
SCR_CustomDropdownEditorUIComponent.c:391
SCR_CustomDropdownEditorUIComponent::CloseDropdown
void CloseDropdown()
Close the dropdown.
Definition
SCR_CustomDropdownEditorUIComponent.c:234
SCR_CustomDropdownEditorUIComponent::m_iAvailableActionsOffsetY
int m_iAvailableActionsOffsetY
Definition
SCR_CustomDropdownEditorUIComponent.c:35
SCR_CustomDropdownEditorUIComponent::m_sListWidgetName
string m_sListWidgetName
Definition
SCR_CustomDropdownEditorUIComponent.c:8
SCR_CustomDropdownEditorUIComponent::m_ArrowWidget
ImageWidget m_ArrowWidget
Definition
SCR_CustomDropdownEditorUIComponent.c:43
SCR_CustomDropdownEditorUIComponent::m_bIsOpened
bool m_bIsOpened
Definition
SCR_CustomDropdownEditorUIComponent.c:49
SCR_CustomDropdownEditorUIComponent::OnItemClicked
void OnItemClicked(SCR_ButtonImageComponent button)
Definition
SCR_CustomDropdownEditorUIComponent.c:97
SCR_CustomDropdownEditorUIComponent::OnMenuActionLeft
void OnMenuActionLeft()
Definition
SCR_CustomDropdownEditorUIComponent.c:117
SCR_CustomDropdownEditorUIComponent::m_sListWidgetStripeName
string m_sListWidgetStripeName
Definition
SCR_CustomDropdownEditorUIComponent.c:11
SCR_CustomDropdownEditorUIComponent::m_iSelectedItem
int m_iSelectedItem
Definition
SCR_CustomDropdownEditorUIComponent.c:50
SCR_CustomDropdownEditorUIComponent::HandlerAttached
override void HandlerAttached(Widget w)
Definition
SCR_CustomDropdownEditorUIComponent.c:405
SCR_CustomDropdownEditorUIComponent::AddItem
void AddItem(SCR_EditorModeUIInfo uiInfo, Color color)
Definition
SCR_CustomDropdownEditorUIComponent.c:126
SCR_CustomDropdownEditorUIComponent::GetRootWidget
Widget GetRootWidget()
Definition
SCR_CustomDropdownEditorUIComponent.c:315
SCR_CustomDropdownEditorUIComponent::IsOpened
bool IsOpened()
Definition
SCR_CustomDropdownEditorUIComponent.c:169
SCR_CustomDropdownEditorUIComponent::OpenDropdown
void OpenDropdown(int focusIndex=-1)
Definition
SCR_CustomDropdownEditorUIComponent.c:179
SCR_CustomDropdownEditorUIComponent::Event_OnDropdownOpened
ref ScriptInvoker Event_OnDropdownOpened
Definition
SCR_CustomDropdownEditorUIComponent.c:53
SCR_CustomDropdownEditorUIComponent::m_sItemPrefab
ResourceName m_sItemPrefab
Definition
SCR_CustomDropdownEditorUIComponent.c:26
SCR_CustomDropdownEditorUIComponent::HandlerDeattached
override void HandlerDeattached(Widget w)
Definition
SCR_CustomDropdownEditorUIComponent.c:450
SCR_EditorModeUIInfo
Definition
SCR_EditorModeUIInfo.c:3
SCR_EditorModeUIInfo::GetModeColor
Color GetModeColor()
Definition
SCR_EditorModeUIInfo.c:11
SCR_FadeUIComponent
Definition
SCR_FadeUIComponent.c:2
SCR_FadeUIComponent::CancelFade
void CancelFade(bool callFadeDone)
Definition
SCR_FadeUIComponent.c:132
SCR_Global
Definition
Functions.c:7
SCR_Global::IsEditMode
static bool IsEditMode()
Definition
Functions.c:1566
SCR_LinkTooltipTargetEditorUIComponent
Definition
SCR_LinkTooltipTargetEditorUIComponent.c:4
SCR_LinkTooltipTargetEditorUIComponent::SetInfo
void SetInfo(SCR_UIInfo info, Managed target=null)
Definition
SCR_LinkTooltipTargetEditorUIComponent.c:11
ScriptedWidgetComponent
Definition
ScriptedWidgetComponent.c:13
TextWidget
Definition
TextWidget.c:16
UIConstants
Definition
Constants.c:151
Widget
Definition
Widget.c:13
WorkspaceWidget
Definition
WorkspaceWidget.c:16
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
EActionTrigger
EActionTrigger
Definition
EActionTrigger.c:13
ScriptInvoker
ScriptInvokerBase< func > ScriptInvoker
Definition
tools.c:134
scripts
Game
Editor
UI
Components
Common
SCR_CustomDropdownEditorUIComponent.c
Generated by
1.17.0