self addMenu(MenuTitle, Menu Verification Status, Previous Menu, Options);
m = "Test Menu"; <--- these 2 are required before starting a new menu, but is only defined once, before creating options
options[m] = [];
options[m][options[m].size] = AddOption(m, "Sub Menu 1", ::callMenu, "Sub Menu 1");
options[m][options[m].size] = AddOption(m, "Sub Menu 2", ::callMenu, "Sub Menu 2");
options[m][options[m].size] = AddOption(m, "Sub Menu 3", ::callMenu, "Sub Menu 3");
m = "Sub Menu 1";
options[m] = [];
options[m][options[m].size] = AddOption(m, "Test Opt", ::test);
m = "Sub Menu 2";
options[m] = [];
options[m][options[m].size] = AddOption(m, "Test Opt", ::test);
m = "Sub Menu 3";
options[m] = [];
options[m][options[m].size] = AddOption(m, "Test Opt", ::test);
//AddOption parameters = (menuparent, text, func, input1, input2,, input3);
self addMenu(MenuTitle, Menu Verification Status, Previous Menu, Options);
num = 0; <--- these 2 are required before starting a new menu, but is only defined once, before the start of the menu
m = "Test Menu"; <--- these 2 are required before starting a new menu, but is only defined once, before the start of the
options[m][num]["parent"] = m; <-- will always be the name of the menu
options[m][num]["text"] = "Test Option 1"; <--the menu text, you can put booleans in here and make Enabled/Disabled toggle text
options[m][num]["func"] = ::test; <-- the function we're calling
options[m][num]["input1"] = "test"; <-- the input, supports up to 3
num++;
options[m][num]["parent"] = m; <-- will always be the name of the menu
options[m][num]["text"] = "Test Option 2"; <--the menu text, you can put booleans in here and make Enabled/Disabled toggle text
options[m][num]["func"] = ::test; <-- the function we're calling
options[m][num]["input1"] = "test"; <-- the input, supports up to 3
num++;
Copyright © 2024, NextGenUpdate.
All Rights Reserved.