Jump to content

MCM Menu Options Help


Vicyntae

Recommended Posts

I'm trying to make a basic menu option for my mod configuration menu, but every time I load up the game, nothing appears. I have it set up exactly as it shows in the SkyUI wiki and I can see that the string array is filled through notifications. I've been working on this for days but with no results. Everything compiles fine, but nothing shows up.

 

 


GlobalVariable Property MyGlobal1 Auto

Int _ListIndex

...

String[] _ListArray

Int EnableFlag

...

Event OnConfigUpdate

...

_ListArray

= Utility.CreateStringArray(4, "None")
_ListArray[0] = "None"
_ListArray[1] = "Option 1"
_ListArray[2] = "Option 2"
_ListArray[3] = "Option 3"



...

EndEvent


Event OnPageReset(string page)

...

AddMenuOptionST("MenuOption1_ST", "Method", _ListArray[_ListIndex] as String, EnableFlag)

...

EndEvent


State MenuOption1_ST
Event OnMenuOpenST()
SetMenuDialogOptions(_ListArray)
SetMenuDialogStartIndex(_ListIndex)
SetMenuDialogDefaultIndex(0)
EndEvent

Event OnMenuAcceptST(int a_index)
MyGlobal1.SetValue(a_index)
_ListIndex= MyGlobal1.GetValue() as Int
SetMenuOptionValueST(_ListArray[_ListIndex])
EndEvent

Event OnDefaultST()
MyGlobal1.SetValue(0)
_ListIndex= MyGlobal1.GetValue() as Int
SetMenuOptionValueST(_ListArray[_ListIndex])
EndEvent

Event OnHighlightST()
SetInfoText("Text Here")
EndEvent
EndState

 

I changed the variable names but the format is exactly the same

Link to comment

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more information, see our Privacy Policy & Terms of Use