5 protected const string GAMEPAD_ANY_BUTTON_ACTION =
"GamepadAnyButton";
10 protected Widget m_wBackground;
13 override void OnMenuOpen()
25 GetGame().GetInputManager().AddActionListener(GAMEPAD_ANY_BUTTON_ACTION, EActionTrigger.PRESSED, Close);
27 if (m_OnGamepadRemovalDialogOpen)
28 m_OnGamepadRemovalDialogOpen.Invoke(
this);
32 override void OnMenuClose()
36 GetGame().GetInputManager().RemoveActionListener(GAMEPAD_ANY_BUTTON_ACTION, EActionTrigger.PRESSED, Close);
38 if (m_OnGamepadRemovalDialogClose)
39 m_OnGamepadRemovalDialogClose.Invoke(
this);
46 MenuManager menuManager;
47 ArmaReforgerScripted game =
GetGame();
49 menuManager = game.GetMenuManager();
51 if (menuManager && game.IsPlatformGameConsole())
52 dialog = menuManager.OpenDialog(
ChimeraMenuPreset.GamepadRemovalDialog, DialogPriority.CRITICAL, 0,
true);
62 if (!m_OnGamepadRemovalDialogOpen)
65 return m_OnGamepadRemovalDialogOpen;
71 if (!m_OnGamepadRemovalDialogClose)
74 return m_OnGamepadRemovalDialogClose;