Vicyntae Posted February 20, 2017 Posted February 20, 2017 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 AutoInt _ListIndex...String[] _ListArrayInt EnableFlag...Event OnConfigUpdate..._ListArray= Utility.CreateStringArray(4, "None")_ListArray[0] = "None"_ListArray[1] = "Option 1"_ListArray[2] = "Option 2"_ListArray[3] = "Option 3"...EndEventEvent OnPageReset(string page)...AddMenuOptionST("MenuOption1_ST", "Method", _ListArray[_ListIndex] as String, EnableFlag)...EndEventState MenuOption1_STEvent OnMenuOpenST()SetMenuDialogOptions(_ListArray)SetMenuDialogStartIndex(_ListIndex)SetMenuDialogDefaultIndex(0)EndEventEvent OnMenuAcceptST(int a_index)MyGlobal1.SetValue(a_index)_ListIndex= MyGlobal1.GetValue() as IntSetMenuOptionValueST(_ListArray[_ListIndex])EndEventEvent OnDefaultST()MyGlobal1.SetValue(0)_ListIndex= MyGlobal1.GetValue() as IntSetMenuOptionValueST(_ListArray[_ListIndex])EndEventEvent OnHighlightST()SetInfoText("Text Here")EndEventEndState I changed the variable names but the format is exactly the same
Vicyntae Posted February 28, 2017 Author Posted February 28, 2017 OK, nevermind, I figured it out. I didn't realize that "None" counted as a null string. If a moderator finds this, feel free to delete.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.