Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_SquadRoleComboBoxElement.c
Go to the documentation of this file.
2{
3 [Attribute("RankImage")]
4 protected string m_sRankImageWidgetName;
5
6 [Attribute("HalfEmptyGroupImage")]
8
11
12 //------------------------------------------------------------------------------------------------
13 void SetRankImage(string rankIconName)
14 {
15 m_wRankImage.LoadImageFromSet(0, SCR_XPInfoDisplay.GetRankIconImageSet(), rankIconName);
16 }
17
18 //------------------------------------------------------------------------------------------------
20 {
21 m_wRankImage.SetVisible(show);
22 }
23
24 //------------------------------------------------------------------------------------------------
26 {
27 m_wHalfEmptyGroupImage.SetVisible(show);
28 }
29
30 //------------------------------------------------------------------------------------------------
31 override void HandlerAttached(Widget w)
32 {
33 m_wRankImage = ImageWidget.Cast(w.FindAnyWidget(m_sRankImageWidgetName));
34 m_wRankImage.SetColor(UIColors.WARNING);
35
37 m_wHalfEmptyGroupImage.SetColor(UIColors.WARNING);
38 }
39}
static ResourceName GetRankIconImageSet()
SCR_FieldOfViewSettings Attribute