Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_BreadCrumbElementComponent.c
Go to the documentation of this file.
1
5
6//------------------------------------------------------------------------------------------------
8{
9 [Attribute("Icon")]
10 protected string m_sIcon;
11
12 [Attribute("Label")]
13 protected string m_sLabel;
14
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 //------------------------------------------------------------------------------------------------
30 {
31 if (m_wLabel)
32 m_wLabel.SetText("");
33
34 if (m_wIcon)
35 info.SetIconTo(m_wIcon);
36 }
37}
void SetBreadCrumb(SCR_UIInfo info)
Set used icon and label.
bool SetIconTo(ImageWidget imageWidget)
Definition SCR_UIInfo.c:102
SCR_FieldOfViewSettings Attribute