Arma Reforger Explorer
1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_SuppliesBaseTooltipDetail.c
Go to the documentation of this file.
1
[
BaseContainerProps
(),
BaseContainerCustomTitleField
(
"m_sDisplayName"
)]
2
class
SCR_SuppliesBaseTooltipDetail
:
SCR_EntityTooltipDetail
3
{
4
protected
TextWidget m_Value;
5
protected
SCR_WLibProgressBarComponent
m_Bar;
6
protected
SCR_CampaignSuppliesComponent
m_SuppliesComponent;
7
8
//------------------------------------------------------------------------------------------------
9
override
void
UpdateDetail(
SCR_EditableEntityComponent
entity)
10
{
11
// if (!m_SuppliesComponent)
12
// return;
13
//
14
// if (m_Bar)
15
// m_Bar.SetValue(m_SuppliesComponent.GetSupplies() / m_SuppliesComponent.GetSuppliesMax());
16
//
17
// if (m_Value)
18
// m_Value.SetText(m_SuppliesComponent.GetSupplies().ToString());
19
}
20
21
//------------------------------------------------------------------------------------------------
22
override
bool
InitDetail(
SCR_EditableEntityComponent
entity, Widget widget)
23
{
24
// m_SuppliesComponent = SCR_CampaignSuppliesComponent.GetSuppliesComponent(entity.GetOwner());
25
// if (!m_SuppliesComponent)
26
// return false;
27
//
28
// if (m_SuppliesComponent.GetSuppliesMax() <= 0)
29
// return false;
30
//
31
// m_Value = TextWidget.Cast(m_Widget.FindAnyWidget("Value"));
32
//
33
// Widget barWidget = m_Widget.FindAnyWidget("ProgressBar");
34
// if (barWidget)
35
// m_Bar = SCR_WLibProgressBarComponent.Cast(barWidget.FindHandler(SCR_WLibProgressBarComponent));
36
//
37
// return (m_Value || m_Bar);
38
39
return
false
;
40
}
41
}
SCR_SuppliesBaseTooltipDetail
Definition:
SCR_SuppliesBaseTooltipDetail.c:2
BaseContainerCustomTitleField
class SCR_KeyBindingFilter BaseContainerCustomTitleField("m_sBindString")
Definition:
SCR_KeyBindingMenuConfig.c:113
SCR_CampaignSuppliesComponent
void SCR_CampaignSuppliesComponent(IEntityComponentSource src, IEntity ent, IEntity parent)
Definition:
SCR_CampaignSuppliesComponent.c:327
SCR_EntityTooltipDetail
Definition:
SCR_EntityTooltipDetail.c:2
SCR_EditableEntityComponent
Definition:
SCR_EditableEntityComponent.c:13
SCR_WLibProgressBarComponent
Minimalist progress bar.
Definition:
SCR_WLibProgressBar.c:3
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_SuppliesBaseTooltipDetail.c
Generated by
1.8.17