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_TextsTaskManagerComponent.c
Go to the documentation of this file.
1
[
ComponentEditorProps
(
category
:
"GameScripted/Tasks"
, description:
""
)]
2
class
SCR_TextsTaskManagerComponentClass
:
ScriptComponentClass
3
{
4
[
Attribute
()]
5
protected
ref array<ref SCR_TextsTaskManagerEntry>
m_aEntries
;
6
7
//------------------------------------------------------------------------------------------------
11
int
GetTexts
(ETaskTextType
type
, out notnull array<ref SCR_UIDescription> outInfos)
12
{
13
foreach
(
SCR_TextsTaskManagerEntry
entry :
m_aEntries
)
14
{
15
if
(entry.m_TextType ==
type
)
16
{
17
int
count = entry.m_aTexts.Count();
18
for
(
int
i; i < count; i++)
19
{
20
outInfos.Insert(entry.m_aTexts[i]);
21
}
22
23
return
count;
24
}
25
}
26
return
0;
27
}
28
29
//------------------------------------------------------------------------------------------------
33
SCR_UIDescription
GetText
(ETaskTextType
type
,
int
index
)
34
{
35
foreach
(
SCR_TextsTaskManagerEntry
entry :
m_aEntries
)
36
{
37
if
(entry.m_TextType ==
type
)
38
return
entry.m_aTexts[
index
];
39
}
40
41
return
null;
42
}
43
}
44
45
class
SCR_TextsTaskManagerComponent
:
ScriptComponent
46
{
47
protected
static
SCR_TextsTaskManagerComponent
s_Instance;
48
49
static
const
string
TASK_AMOUNT_COMPLETED_TEXT =
"#AR-Tasks_AmountCompleted"
;
50
static
const
string
TASK_PROGRESS_TEXT =
"#AR-Tasks_StatusProgress-UC"
;
51
static
const
string
TASK_FINISHED_TEXT =
"#AR-Tasks_StatusFinished-UC"
;
52
static
const
string
TASK_AVAILABLE_TEXT =
"#AR-Tasks_StatusNew-UC"
;
53
static
const
string
TASK_HINT_TEXT =
"#AR-Tasks_Hint"
;
54
static
const
string
TASK_CANCELLED_TEXT =
"#AR-Tasks_StatusCancelled-UC"
;
55
static
const
string
TASK_COMPLETED_TEXT =
"#AR-Tasks_StatusCompleted-UC"
;
56
static
const
string
TASK_FAILED_TEXT =
"#AR-Tasks_StatusFailed-UC"
;
57
58
//------------------------------------------------------------------------------------------------
61
static
SCR_TextsTaskManagerComponent
GetInstance()
62
{
63
return
s_Instance;
64
}
65
66
//------------------------------------------------------------------------------------------------
71
int
GetTexts
(ETaskTextType
type
, out notnull array<ref SCR_UIDescription> outInfos)
72
{
73
SCR_TextsTaskManagerComponentClass
prefabData =
SCR_TextsTaskManagerComponentClass
.Cast(
GetComponentData
(
GetOwner
()));
74
if
(prefabData)
75
return
prefabData.
GetTexts
(
type
, outInfos);
76
else
77
return
0;
78
}
79
80
//------------------------------------------------------------------------------------------------
85
SCR_UIDescription
GetText
(ETaskTextType
type
,
int
index
)
86
{
87
SCR_TextsTaskManagerComponentClass
prefabData =
SCR_TextsTaskManagerComponentClass
.Cast(
GetComponentData
(
GetOwner
()));
88
if
(prefabData)
89
return
prefabData.
GetText
(
type
,
index
);
90
else
91
return
null;
92
}
93
94
//------------------------------------------------------------------------------------------------
95
void
SCR_TextsTaskManagerComponent
(
IEntityComponentSource
src,
IEntity
ent,
IEntity
parent)
96
{
97
if
(!s_Instance)
98
s_Instance =
this
;
99
}
100
101
//------------------------------------------------------------------------------------------------
102
void
~SCR_TextsTaskManagerComponent
()
103
{
104
s_Instance = null;
105
}
106
}
107
108
[
BaseContainerProps
(),
SCR_BaseContainerCustomTitleEnum
(ETaskTextType,
"m_TextType"
)]
109
class
SCR_TextsTaskManagerEntry
110
{
111
[
Attribute
(
SCR_Enum
.GetDefault(ETaskTextType.NONE),
UIWidgets
.ComboBox, enums: ParamEnumArray.FromEnum(ETaskTextType))]
112
ETaskTextType m_TextType;
113
114
[
Attribute
()]
115
ref array<ref SCR_UIDescription> m_aTexts;
116
}
117
118
enum
ETaskTextType
119
{
120
NONE
,
121
CUSTOM
,
122
MOVE
,
123
DEFEND
,
124
ATTACK
125
}
BaseContainerProps
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Definition
SCR_AIAnimationWaypoint.c:14
MOVE
@ MOVE
Definition
SCR_AICombatMoveRequest.c:3
ComponentEditorProps
enum EAIGroupCombatMode ComponentEditorProps(category:"GameScripted/AI", description:"Component for utility AI system for groups")
Definition
SCR_AIGroupUtilityComponent.c:12
ATTACK
@ ATTACK
Definition
SCR_AIMessage.c:18
DEFEND
@ DEFEND
Definition
SCR_AIMessage.c:33
GetText
string GetText()
Definition
SCR_BaseEditorAttribute.c:488
SCR_BaseContainerCustomTitleEnum
class SCR_CampaignHintStorage SCR_BaseContainerCustomTitleEnum(EHint, "m_eHintId")
Definition
SCR_CampaignHintStorage.c:22
GetComponentData
SCR_CharacterSoundComponentClass GetComponentData()
Definition
SCR_CharacterSoundComponent.c:132
type
EDamageType type
Definition
SCR_DestructibleTreeV2.c:32
index
SCR_DestructionSynchronizationComponentClass ScriptComponentClass int index
Definition
SCR_DestructionSynchronizationComponent.c:17
SCR_TextsTaskManagerComponent
void SCR_TextsTaskManagerComponent(IEntityComponentSource src, IEntity ent, IEntity parent)
Definition
SCR_TextsTaskManagerComponent.c:95
~SCR_TextsTaskManagerComponent
void ~SCR_TextsTaskManagerComponent()
Definition
SCR_TextsTaskManagerComponent.c:102
GetTexts
int GetTexts(ETaskTextType type, out notnull array< ref SCR_UIDescription > outInfos)
Definition
SCR_TextsTaskManagerComponent.c:71
category
params category
Definition
SCR_VehicleDamageManagerComponent.c:302
IEntityComponentSource
Definition
IEntityComponentSource.c:13
IEntity
Definition
IEntity.c:13
SCR_Enum
Definition
SCR_Enum.c:2
SCR_TextsTaskManagerComponentClass
Definition
SCR_TextsTaskManagerComponent.c:3
SCR_TextsTaskManagerComponentClass::GetText
SCR_UIDescription GetText(ETaskTextType type, int index)
Definition
SCR_TextsTaskManagerComponent.c:33
SCR_TextsTaskManagerComponentClass::GetTexts
int GetTexts(ETaskTextType type, out notnull array< ref SCR_UIDescription > outInfos)
Definition
SCR_TextsTaskManagerComponent.c:11
SCR_TextsTaskManagerComponentClass::m_aEntries
ref array< ref SCR_TextsTaskManagerEntry > m_aEntries
Definition
SCR_TextsTaskManagerComponent.c:5
SCR_TextsTaskManagerEntry
Definition
SCR_TextsTaskManagerComponent.c:110
SCR_UIDescription
Definition
SCR_UIDescription.c:6
ScriptComponentClass
Definition
ScriptComponentClass.c:8
ScriptComponent
Definition
ScriptComponent.c:24
UIWidgets
Definition
attributes.c:40
GetOwner
IEntity GetOwner()
Owner entity of the fuel tank.
Definition
SCR_FuelNode.c:128
NONE
@ NONE
When Shape is created and not initialized yet.
Definition
ShapeType.c:15
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
CUSTOM
@ CUSTOM
Mesh created through MeshObject::Create.
Definition
MeshObjectFlags.c:15
scripts
Game
Tasks
SCR_TextsTaskManagerComponent.c
Generated by
1.17.0