Jump to content

Menus not ontop of MCM


Recommended Posts

As far as I know, there's not a way to open the container or inventory menu on top of the MCM. But you can force close the MCM, then open inventory after:

        Int I = 0
        While I < 5 && UI.IsMenuOpen("Journal Menu")
            Input.TapKey(1) ;esc key
            I += 1
            Utility.WaitMenuMode(0.2)
        EndWhile

        SomeReference.OpenInventory()
Link to comment
Share on other sites

If I read that right that gives 5 presses of the escape key( I =0,1,2,3,4), shouldn't that be 3 presses, I ask because if it's not the same for everyone then any odd mumber of extra presses have the initial problem?

 

Thanks for the idea, I'm assuming that there is no programmatic way to open a particular MCM menu?

 

diziet

Link to comment
Share on other sites

Open a particular MCM menu? Not off the top of my head. But since the list of mod menus are entries in an array, it could theoretically be possible to see if the array could be accessed and processed until a particular entry is found and then do something to make its menu show. But that would require digging into the code of SkyUI's MCM in a way that is beyond what the MCM API is capable of doing. (i.e. the actual source scripts for SkyUI would need to be obtained and examined rather than using the MCM API variants.)

Link to comment
Share on other sites

Yes, opening the menu again would be difficult, but using IsharaMeradinâs advice it may be possible. I put 5 clicks and the condition IsMenuOpen(âJournal Menuâ) because as you said everyoneâs setup is different. It will tap the key 5 times maximum but stop once the menu is closed. I use that same code in my latest mod Skyrim Currency System.

 

You can also put a check after the while loop.

 

If UI.IsMenuOpen(âJournal Menuâ)

Debug.messagebox(âclose the menu to continueâ)

Endif

 

In case tapping the escape key didnât work for closing the menu.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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