Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request MCM function SetCurrentPage() #67

Open
mlheur opened this issue Jan 18, 2016 · 0 comments
Open

Request MCM function SetCurrentPage() #67

mlheur opened this issue Jan 18, 2016 · 0 comments

Comments

@mlheur
Copy link

mlheur commented Jan 18, 2016

I'm writing a mod that will have a variable number of MCM pages. Right now I have to build "Pages = new string[some big enough value]". What I'm doing is initializing all pages to " " and then overwriting the pages that are actually used to proper values.

In OnPageReset I'm testing if Page == " ", and if so, I won't re-draw. What I want to do is set a script local flag to the last page that successfully made it through OnPageReset, and if Page == " ", then I want to SetCurrentPage( LastGoodPage ).

I don't mind digging through the SKI_ scripts and allowing this myself, but I imagine I'm not the only person wanting this functionality and you would know how to implement this faster than I would, or know if there's anything preventing it from even being possible.

At the same time, is there any way that I could set a given page name to some value that will prevent the page title from being highlighted?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant