Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_ProfileSuperMenu.c
Go to the documentation of this file.
2 {
3  NEWS = 0,
5 }
6 
7 class SCR_ProfileSuperMenu : SCR_SuperMenuBase
8 {
9  //------------------------------------------------------------------------------------------------
10  override void OnMenuOpen()
11  {
12  super.OnMenuOpen();
13 
14  SCR_InputButtonComponent comp = m_DynamicFooter.FindButton("Back");
15  if (comp)
16  comp.m_OnActivated.Insert(Close);
17 
18  Widget logoWidget = GetRootWidget().FindAnyWidget("LogoButton");
19  if (logoWidget)
20  {
21  SCR_ModularButtonComponent logo = SCR_ModularButtonComponent.FindComponent(logoWidget);
22  if (logo)
23  logo.m_OnClicked.Insert(OnLogoClicked);
24  }
25  }
26 
27  //------------------------------------------------------------------------------------------------
28  protected void OnLogoClicked()
29  {
30  GetGame().GetMenuManager().OpenDialog(ChimeraMenuPreset.WelcomeDialog);
31  }
32 
33  //------------------------------------------------------------------------------------------------
35  {
36  m_SuperMenuComponent.GetTabView().ShowTab(page);
37  }
38 }
SetPage
void SetPage(SCR_EProfileSuperMenuTabId page)
Definition: SCR_ProfileSuperMenu.c:34
GetGame
ArmaReforgerScripted GetGame()
Definition: game.c:1424
NEWS
NEWS
Definition: SCR_ProfileSuperMenu.c:2
GetRootWidget
Widget GetRootWidget()
Definition: SCR_UITaskManagerComponent.c:160
OnLogoClicked
protected void OnLogoClicked()
Definition: SCR_ProfileSuperMenu.c:28
SCR_SuperMenuBase
Definition: SCR_SuperMenuBase.c:6
ChimeraMenuPreset
ChimeraMenuPreset
Menu presets.
Definition: ChimeraMenuBase.c:3
SCR_EProfileSuperMenuTabId
SCR_EProfileSuperMenuTabId
Definition: SCR_ProfileSuperMenu.c:1
COMMUNITY
COMMUNITY
Definition: SCR_ProfileSuperMenu.c:4
SCR_InputButtonComponent
Definition: SCR_InputButtonComponent.c:1
OnMenuOpen
enum SCR_EProfileSuperMenuTabId OnMenuOpen()
Definition: SCR_ProfileSuperMenu.c:10