Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_MenuMainTileComponent.c
Go to the documentation of this file.
2{
3 protected static string NEWS_FEED_WIDGET = "NewsToast";
4
6
7 //------------------------------------------------------------------------------------------------
8 override void HandlerAttached(Widget w)
9 {
10 super.HandlerAttached(w);
11
12 if (m_wDescription && m_sDescription.IsEmpty())
13 m_wDescription.SetVisible(false);
14
15 Widget newsFeedWidget = w.FindAnyWidget(NEWS_FEED_WIDGET);
16
17 m_NewsFeed = SCR_MainMenuNewsToast.Cast(newsFeedWidget.FindHandler(SCR_MainMenuNewsToast));
18 }
19
20 //------------------------------------------------------------------------------------------------
21 override bool OnClick(Widget w, int x, int y, int button)
22 {
23 if (button == MouseState.RIGHT)
24 return true;
25
26 if (m_NewsFeed && m_NewsFeed.IsHovered())
27 return false;
28
29 m_OnClicked.Invoke(this);
30 return false;
31 }
32}
override void HandlerAttached(Widget w)
ref SCR_MainMenuNewsToast m_NewsFeed
override bool OnClick(Widget w, int x, int y, int button)
ref ScriptInvoker m_OnClicked
MouseState
Definition MouseState.c:13