andrewgu / ModConfigMenu

XCOM 2 Mod Config Menu: a project to build a shared settings menu for Xcom 2 mods.
11 stars 13 forks source link

Call "ShowSettings" automatically. #15

Closed andrewgu closed 4 years ago

andrewgu commented 8 years ago

Currently, a mod has to call MCM_API_SettingsPage.ShowSettings() manually in order to tell the settings page to render controls. As BlueRaja suggests, we should be able to do this automatically, but first I need to know where to stick the code that would execute right after all of the UIScreenListener.OnInit() events have been triggered.

andrewgu commented 8 years ago

Plan is to deprecate ShowSettings() so that it's just a no-op for 1.1 release.

andrewgu commented 8 years ago

Moved to 2.0. Just realized that ShowSettings could theoretically be called at any point and not just right after MCM_OptionsScreen.OnInit.

andrewgu commented 4 years ago

This is now done behind the scenes and ShowSettings() is no longer required to be called. For code compatibility it will be kept as a no-op until a future API version.