Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_BreadCrumbElementComponent.c
Go to the documentation of this file.
1 
6 //------------------------------------------------------------------------------------------------
8 {
9  [Attribute("Icon")]
10  protected string m_sIcon;
11 
12  [Attribute("Label")]
13  protected string m_sLabel;
14 
15  protected ImageWidget m_wIcon;
16  protected TextWidget m_wLabel;
17 
18  //------------------------------------------------------------------------------------------------
19  override void HandlerAttached(Widget w)
20  {
21  super.HandlerAttached(w);
22 
23  m_wIcon = ImageWidget.Cast(w.FindAnyWidget(m_sIcon));
24  m_wLabel = TextWidget.Cast(w.FindAnyWidget(m_sLabel));
25  }
26 
27  //------------------------------------------------------------------------------------------------
29  void SetBreadCrumb(SCR_UIInfo info)
30  {
31  if (m_wLabel)
32  m_wLabel.SetText("");
33 
34  if (m_wIcon)
35  info.SetIconTo(m_wIcon);
36  }
37 }
m_wIcon
protected ImageWidget m_wIcon
Definition: SCR_InventoryHitZonePointUI.c:374
Attribute
typedef Attribute
Post-process effect of scripted camera.
SCR_UIInfo
Definition: SCR_UIInfo.c:7
SCR_ScriptedWidgetComponent
Definition: SCR_ScriptedWidgetComponent.c:7
SCR_BreadCrumbsElementComponent
Definition: SCR_BreadCrumbElementComponent.c:7
m_sIcon
protected string m_sIcon
Definition: SCR_InventoryHitZonePointUI.c:373