0 of 0

File information

Last updated

Original upload

Created by

alegendv1

Uploaded by

yoyoma3010

Virus scan

Safe to use

About this mod

Close the Mod Configuration Menu via Papyrus. Enough said.

Requirements
Permissions and credits
Changelogs
Close the Mod Configuration Menu via Papyrus.

Install the swf file packaged.

Then call via Papyrus: 

    Function CloseMCM()
        UI.Load("PauseMenu", "root1.Menu_mc", "MCM_LegendExtension.swf")
    EndFunction




Under the hood:

This loads a custom swf into PauseMenu which attempts to find the MCM_Menu instance, and then tries to close it via onQuitPressed function.

If it somehow fails, the custom swf is unloaded. If it succeeds, its unloaded. It always unloads.

This is useless without the Mod Configuration Menu... if that wasn't obvious.

If you try to close MCM via UI.CloseMenu("PauseMenu") it breaks controls because the MCM relies on returning to the PauseMenu to run some code, and the UI.CloseMenu bypasses this, causing various issues.

You can now use this to close MCM first, and then close PauseMenu safely (after a short Utility.WaitMenuMode, minimum of 0.1 seconds needed).