Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_MenuNavigationItemComponent.c
Go to the documentation of this file.
2{
3 protected const string TEXT_WIDGET_NAME = "SizeLayout.Overlay.Text";
4
5 [Attribute("0")]
6 protected bool m_bIsSelected;
7
8 [Attribute("-1", UIWidgets.SearchComboBox, enumType: ChimeraMenuPreset)]
10
11 //------------------------------------------------------------------------------------------------
12 void Init(ChimeraMenuPreset menuId, string title, bool isSelected = false)
13 {
14 m_eMenuPreset = menuId;
15 m_bIsSelected = isSelected;
16
17 TextWidget text = TextWidget.Cast(m_wRoot.FindWidget(TEXT_WIDGET_NAME));
18 text.SetText(title);
19
20 if (m_bIsSelected)
21 {
22 m_wRoot.SetFlags(WidgetFlags.NOFOCUS);
23 text.SetColor(UIColors.CONTRAST_CLICKED);
24
25 SCR_ModularButtonComponent comp = SCR_ModularButtonComponent.Cast(m_wRoot.FindHandler(SCR_ModularButtonComponent));
26 comp.SetAllEffectsEnabled(false);
27 }
28 }
29
30 //------------------------------------------------------------------------------------------------
35}
ChimeraMenuPreset
Menu presets.
void Init(ChimeraMenuPreset menuId, string title, bool isSelected=false)
SCR_FieldOfViewSettings Attribute
WidgetFlags
Widget flags. See enf::Widget::SetFlags().
Definition WidgetFlags.c:14