Other user's assetsAll the assets in this file belong to the author, or are from free-to-use modder's resources
Upload permissionYou can upload this file to other sites but you must credit me as the creator of the file
Modification permissionYou are allowed to modify my files and release bug fixes or improve on the features without permission from or credit to me
Conversion permissionYou can convert this file to work with other games as long as you credit me as the creator of the file
Asset use permissionYou are allowed to use the assets in this file without permission or crediting me
Asset use permission in mods/files that are being soldYou are not allowed to use assets from this file in any mods/files that are being sold, for money, on Steam Workshop or other platforms
Asset use permission in mods/files that earn donation pointsYou are allowed to earn Donation Points for your mods if they use my assets
Console modding permissionThis mod will not be available on Bethesda.net for console users
Author notes
Free to use. I'd like credit, but its not required.
File credits
This author has not credited anyone else in this file
Donation Points system
Please log in to find out whether this mod is receiving Donation Points
Changelogs
Version 1.0
Initial release
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).