Let's School

Let's School

Build your own school!
Create and upload your own characters and icons for Let's School!
Learn More
codebase 23 Sep, 2024 @ 6:05am
M_IUIContext ShowMessageBox()
So, does the M_IUIContext.ShowMessageBox() method just not work?

I've tried creating a simple M_MessageBoxConfig with only a "Test" string for both the Title and the Context, then used it to call M_IUIContext.ShowMessageBox() in onStart(), onLoad(), and onCreate(). It doesn't show up in any of those cases. (I've also tried toggling the ShowCloseButton flag and it does nothing.)

The M_IUIContext.ShowTips() call works, and I've even placed it before the call to M_IUIContext.ShowMessageBox() just to check if anything was getting called in onStart(), onLoad(), and onCreate(). In all three cases M_IUIContext.ShowTips() will work, but the call to M_IUIContext.ShowMessageBox() right after fails. (So I know it's getting to that point and can draw to the GUI.)

I'm not really sure what else to try here. It would be nice if it did work. It seemingly supports adding additional buttons to it with customizable onClick actions. Which although crude would allow for creating a basic settings window. As there doesn't seem to be any built in way for the user to alter the settings given to IModSettings out of the box.