Arma Reforger Explorer
1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_GroupSizeTooltipDetail.c
Go to the documentation of this file.
1
[
BaseContainerProps
(),
BaseContainerCustomTitleField
(
"m_sDisplayName"
)]
2
class
SCR_GroupSizeTooltipDetail
:
SCR_EntityTooltipDetail
3
{
4
protected
TextWidget m_Text;
5
protected
ProgressBarWidget m_Bar;
6
7
//------------------------------------------------------------------------------------------------
8
override
bool
NeedUpdate()
9
{
10
return
m_Text !=
null
;
11
}
12
13
//------------------------------------------------------------------------------------------------
14
override
void
UpdateDetail(
SCR_EditableEntityComponent
entity)
15
{
16
SCR_EditableGroupComponent
group =
SCR_EditableGroupComponent
.Cast(entity);
17
if
(!group)
18
return
;
19
20
if
(m_Text)
21
m_Text.SetText(group.GetSize().ToString());
22
}
23
24
//------------------------------------------------------------------------------------------------
25
override
bool
InitDetail(
SCR_EditableEntityComponent
entity, Widget widget)
26
{
27
m_Text = TextWidget.Cast(widget);
28
return
m_Text !=
null
;
29
30
//--- ToDo: Progress bar to show status compared to initial group size
31
//m_Value = TextWidget.Cast(m_Widget.FindAnyWidget("Value"));
32
//m_Bar = ProgressBarWidget.Cast(m_Widget.FindAnyWidget("Bar"));
33
//return m_Value || m_Bar;
34
}
35
}
SCR_EditableGroupComponent
void SCR_EditableGroupComponent(IEntityComponentSource src, IEntity ent, IEntity parent)
Definition:
SCR_EditableGroupComponent.c:703
BaseContainerCustomTitleField
class SCR_KeyBindingFilter BaseContainerCustomTitleField("m_sBindString")
Definition:
SCR_KeyBindingMenuConfig.c:113
SCR_GroupSizeTooltipDetail
Definition:
SCR_GroupSizeTooltipDetail.c:2
SCR_EntityTooltipDetail
Definition:
SCR_EntityTooltipDetail.c:2
SCR_EditableEntityComponent
Definition:
SCR_EditableEntityComponent.c:13
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_GroupSizeTooltipDetail.c
Generated by
1.8.17