Jump to content

[LE] How to remove the MCM menu?


tist02

Recommended Posts

Hello, I am producing a mode that supports MCM.

MCM options can be added through mode update, so I'd like to remove the MCM menu that was already running and apply the new MCM menu.


I have used functions such as stop(), reset() for the quest to add MCM, but MCM has not been stopped.


If there is a good way, please give me your opinion. Thank you.

Link to comment
Share on other sites

If you have an existing MCM menu, you can just add the new options. They should appear. At least they usually do for me. I some times have problems with it updating the translation text, but the options have always shown up.

 

I use a version check and make it re-run the OnConfigInit event so that the new options will get set up with their starting values correctly.

 

 

Int function GetVersion()
return 2 ; Default version
endFunction
 
Event OnVersionUpdate(int version)
If version > 1
OnConfigInit()
EndIf
EndEvent

 

If you have already made a new MCM and need to get rid of the old MCM, the quest for the old MCM needs to be stopped. The game then needs to be save and reloaded, possibly even exited between saving and reloading.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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