Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_SuppliesBaseTooltipDetail.c
Go to the documentation of this file.
3{
4 protected TextWidget m_Value;
7
8 //------------------------------------------------------------------------------------------------
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_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
void SCR_CampaignSuppliesComponent(IEntityComponentSource src, IEntity ent, IEntity parent)
class SCR_KeyBindingFilter BaseContainerCustomTitleField("m_sBindString")
SCR_CampaignSuppliesComponent m_SuppliesComponent
override bool InitDetail(SCR_EditableEntityComponent entity, Widget widget)
override void UpdateDetail(SCR_EditableEntityComponent entity)
Minimalist progress bar.