Arma Reforger Explorer
1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
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