Jump to content

Detecting main menu.


TommInfinite

Recommended Posts

begin MenuMode 1013
    if (GetGameRestarted) ;returns true only once per session, so this must be the main menu
        ;do stuff
    endif
end

As for exiting to main menu, I'm not sure why, but I've heard that doing this is a really bad idea. Doesn't sound like something you should actively support.

 

If you really want to though, you could check for visibility of the logo.

GetUIFloat "StartMenu/NOGLOW_BRANCH/main_title/visible"

No idea how reliable this is.

Edited by Ladez
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...