Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ScenarioMenu.c
Go to the documentation of this file.
1/*
2Menu with a list view of scenarios.
3*/
5{
7
8 //-----------------------------------------------------------------------------------------------------------------
9 override void OnMenuOpen()
10 {
11 super.OnMenuOpen();
12
13 // Find nav buttons
14 m_NavBack = m_DynamicFooter.FindButton(UIConstants.BUTTON_BACK);
15
16 if (m_NavBack)
17 m_NavBack.m_OnActivated.Insert(Close);
18
19 // Hide news menu button (top right corner) on PS
20 if (GetGame().GetPlatformService().GetLocalPlatformKind() == PlatformKind.PSN)
21 {
22 Widget newsButton = GetRootWidget().FindAnyWidget("NewsButton");
23 if (newsButton)
24 {
25 newsButton.SetVisible(false);
26 newsButton.SetEnabled(false);
27 }
28 }
29 }
30
31 //-----------------------------------------------------------------------------------------------------------------
32 override void OnMenuShow()
33 {
34 super.OnMenuShow();
35
36 //SCR_AnalyticsApplication.GetInstance().OpenScenarios();
37 }
38
39 //-----------------------------------------------------------------------------------------------------------------
40 override void OnMenuHide()
41 {
42 super.OnMenuHide();
43
44 //SCR_AnalyticsApplication.GetInstance().CloseScenarios();
45 }
46};
ArmaReforgerScripted GetGame()
Definition game.c:1398
PlatformKind
Definition PlatformKind.c:8
Widget GetRootWidget()
proto native void Close()
SCR_DynamicFooterComponent m_DynamicFooter
SCR_InputButtonComponent m_NavBack
override void OnMenuHide()
override void OnMenuShow()
override void OnMenuOpen()