Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_CreditsLicenses.c
Go to the documentation of this file.
2 {
3 
4  //------------------------------------------------------------------------------------------------
5  override void OnMenuOpen()
6  {
7  protected Widget m_wFooter;
8 
9  m_wFooter = GetRootWidget().FindAnyWidget("Footer");
10 
11  super.OnMenuOpen();
12  // Subscribe to buttons
13  SCR_InputButtonComponent back = SCR_InputButtonComponent.GetInputButtonComponent("Back", m_wFooter);
14  if (back)
15  back.m_OnActivated.Insert(EndCredits);
16  }
17 
18  //------------------------------------------------------------------------------------------------
19  void EndCredits()
20  {
21 
22  GetGame().GetMenuManager().CloseMenuByPreset(ChimeraMenuPreset.CreditsLicensesMenu)
23 
24  }
25 };
ChimeraMenuBase
Constant variables used in various menus.
Definition: ChimeraMenuBase.c:70
GetGame
ArmaReforgerScripted GetGame()
Definition: game.c:1424
GetRootWidget
Widget GetRootWidget()
Definition: SCR_UITaskManagerComponent.c:160
SCR_CreditsLicenses
Definition: SCR_CreditsLicenses.c:1
ChimeraMenuPreset
ChimeraMenuPreset
Menu presets.
Definition: ChimeraMenuBase.c:3
SCR_InputButtonComponent
Definition: SCR_InputButtonComponent.c:1