Thread: MAIN_MENU gone?
View Single Post
10/06/15, 08:32 PM   #5
Lodur
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 108
Originally Posted by sirinsidiator View Post
MAIN_MENU = MAIN_MENU_KEYBOARD
problem solved?
close I think... But a whole new UI if I want to support gamepad mode...


Since MailLooter exists in the main menu structure.

- I changed MAIN_MENU to MAIN_MENU_KEYBOARD.
- For hot key to open the window:

Code:
  if not SCENE_MANAGER:IsShowing("mailLooter") then
  
    if IsInGamepadPreferredMode() then
      -- Nothing for now...
      UI.queuedCommand = nil
    else
      MAIN_MENU_KEYBOARD:ShowScene("mailLooter")
    end

  else
    ...

Potentially a lot of checking the game pad mode in the future.

Last edited by Lodur : 10/06/15 at 08:37 PM. Reason: add more...
  Reply With Quote