Arma Reforger Explorer
1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_SelectionMenuCategory.c
Go to the documentation of this file.
1
//------------------------------------------------------------------------------------------------
5
[
BaseContainerProps
(configRoot:
true
),
SCR_BaseContainerCustomTitleUIInfo
(
"Name"
)]
6
class
SCR_SelectionMenuCategoryEntry
:
SCR_SelectionMenuEntry
7
{
8
[
Attribute
(
"-1"
,
desc
:
"Entry with this index will be used as deafult action"
)]
9
protected
int
m_iDefaultEntry;
10
11
[
Attribute
()]
12
protected
ref array<ref SCR_SelectionMenuEntry> m_aEntries;
13
14
//------------------------------------------------------------------------------------------------
15
// Override
16
//------------------------------------------------------------------------------------------------
17
18
//------------------------------------------------------------------------------------------------
19
override
protected
void
OnPerform()
20
{
21
22
}
23
24
//------------------------------------------------------------------------------------------------
25
// Custom
26
//------------------------------------------------------------------------------------------------
27
28
//------------------------------------------------------------------------------------------------
29
void
PerformDefaultEntry()
30
{
31
if
(
m_aEntries
.IsIndexValid(m_iDefaultEntry))
32
m_aEntries
[m_iDefaultEntry].Perform();
33
}
34
35
//------------------------------------------------------------------------------------------------
36
void
AddEntry(
SCR_SelectionMenuEntry
entry =
null
)
37
{
38
if
(!
m_aEntries
)
39
m_aEntries
=
new
array<ref SCR_SelectionMenuEntry>();
40
41
if
(!entry)
42
SCR_SelectionMenuEntry
newEntry =
new
SCR_SelectionMenuEntry
();
43
44
m_aEntries
.Insert(entry);
45
}
46
47
//------------------------------------------------------------------------------------------------
48
void
RemoveEntry(notnull
SCR_SelectionMenuEntry
entry)
49
{
50
m_aEntries
.RemoveItem(entry);
51
}
52
53
//------------------------------------------------------------------------------------------------
54
// Get set
55
//------------------------------------------------------------------------------------------------
56
57
//------------------------------------------------------------------------------------------------
58
int
GetDefaultAction()
59
{
60
return
m_iDefaultEntry;
61
}
62
63
//------------------------------------------------------------------------------------------------
64
array<ref SCR_SelectionMenuEntry> GetEntries()
65
{
66
if
(!
m_aEntries
)
67
m_aEntries
=
new
array<ref SCR_SelectionMenuEntry>();
68
69
array<ref SCR_SelectionMenuEntry> entries = {};
70
71
for
(
int
i = 0, count =
m_aEntries
.Count(); i < count; i++)
72
{
73
entries.Insert(
m_aEntries
[i]);
74
}
75
76
return
entries;
77
}
78
}
SCR_SelectionMenuCategoryEntry
Definition:
SCR_SelectionMenuCategory.c:6
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition:
SCR_RespawnBriefingComponent.c:17
m_aEntries
protected ref array< ref SCR_TextsTaskManagerEntry > m_aEntries
Definition:
SCR_TextsTaskManagerComponent.c:3
Attribute
typedef Attribute
Post-process effect of scripted camera.
SCR_SelectionMenuEntry
Definition:
SCR_SelectionMenuEntry.c:7
SCR_BaseContainerCustomTitleUIInfo
void SCR_BaseContainerCustomTitleUIInfo(string propertyName, string format="%1")
Definition:
Attributes.c:788
BaseContainerProps
SCR_AIGoalReaction_Follow BaseContainerProps
Handles insects that are supposed to be spawned around selected prefabs defined in prefab names array...
Definition:
SCR_AIGoalReaction.c:468
scripts_Arma_Reforger_v1.1.0.42
scripts
Game
UI
HUD
SelectionMenu
SCR_SelectionMenuCategory.c
Generated by
1.8.17