Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_CoreMenuHeaderComponent.c
Go to the documentation of this file.
1/*
2Component for menu headers, assumes the layout includes a text widget named "Title".
3*/
4
5//------------------------------------------------------------------------------------------------
7{
8 [Attribute("Title", desc: "Title of the menu")]
9 protected string m_sTitle;
10
12
13 //------------------------------------------------------------------------------------------------
14 override void HandlerAttached(Widget w)
15 {
16 super.HandlerAttached(w);
17
18 m_wTitle = TextWidget.Cast(w.FindAnyWidget("Title"));
20 }
21
22 //------------------------------------------------------------------------------------------------
23 void SetTitle(string text)
24 {
25 if (m_wTitle)
26 m_wTitle.SetText(text);
27 }
28
29 //------------------------------------------------------------------------------------------------
30 void SetTitleVisible(bool visible)
31 {
32 if (m_wTitle)
33 m_wTitle.SetVisible(visible);
34 }
35
36 //------------------------------------------------------------------------------------------------
38 {
40
41 ScriptedWidgetEventHandler handler = SCR_WidgetTools.FindHandlerInChildren(root, SCR_CoreMenuHeaderComponent);
42 if (handler)
43 comp = SCR_CoreMenuHeaderComponent.Cast(handler);
44
45 return comp;
46 }
47
48 //------------------------------------------------------------------------------------------------
53}
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
static SCR_CoreMenuHeaderComponent FindComponentInHierarchy(notnull Widget root)
static SCR_CoreMenuHeaderComponent FindComponent(notnull Widget w)
SCR_FieldOfViewSettings Attribute