Arma Reforger Explorer
1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Main Page
Modules
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Typedefs
c
f
l
m
o
p
r
s
t
Enumerations
a
b
c
d
e
f
g
i
k
l
m
p
r
s
u
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Macros
Examples
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
SCR_FactionGroupsTooltipDetail.c
Go to the documentation of this file.
1
[
BaseContainerProps
(),
BaseContainerCustomTitleField
(
"m_sDisplayName"
)]
2
class
SCR_FactionGroupsTooltipDetail
:
SCR_EntityTooltipDetail
3
{
4
protected
TextWidget m_Text;
5
protected
AIWorld m_AIWorld;
6
protected
SCR_BaseEditableEntityFilter
m_Filter;
7
8
//------------------------------------------------------------------------------------------------
9
override
void
UpdateDetail(
SCR_EditableEntityComponent
entity)
10
{
11
int
count = 0;
12
Faction
faction = entity.GetFaction();
13
14
set<SCR_EditableEntityComponent> entities =
new
set<SCR_EditableEntityComponent>();
15
m_Filter.GetEntities(entities);
16
foreach
(
SCR_EditableEntityComponent
ent: entities)
17
{
18
if
(ent.GetEntityType() ==
EEditableEntityType
.GROUP && ent.GetFaction() == faction)
19
count++;
20
}
21
22
m_Text.SetText(count.ToString());
23
}
24
25
//------------------------------------------------------------------------------------------------
26
override
bool
InitDetail(
SCR_EditableEntityComponent
entity, Widget widget)
27
{
28
m_Filter =
SCR_BaseEditableEntityFilter
.GetInstance(
EEditableEntityState
.VISIBLE,
true
);
29
if
(!m_Filter)
30
return
false
;
31
32
m_Text = TextWidget.Cast(widget);
33
return
m_Text !=
null
;
34
}
35
}
EEditableEntityState
EEditableEntityState
Definition:
EEditableEntityState.c:37
SCR_FactionGroupsTooltipDetail
Definition:
SCR_FactionGroupsTooltipDetail.c:2
BaseContainerCustomTitleField
class SCR_KeyBindingFilter BaseContainerCustomTitleField("m_sBindString")
Definition:
SCR_KeyBindingMenuConfig.c:113
EEditableEntityType
EEditableEntityType
Defines type of SCR_EditableEntityComponent. Assigned automatically based on IEntity inheritance.
Definition:
EEditableEntityType.c:5
SCR_BaseEditableEntityFilter
Definition:
SCR_BaseEditableEntityFilter.c:13
SCR_EntityTooltipDetail
Definition:
SCR_EntityTooltipDetail.c:2
SCR_EditableEntityComponent
Definition:
SCR_EditableEntityComponent.c:13
Faction
Definition:
Faction.c:12
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
Editor
UI
Components
Tooltips
Tooltips
Details
SCR_FactionGroupsTooltipDetail.c
Generated by
1.8.17