You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Designed specifically as a replacement of NativeUI for vMenu with improved performance (somewhat), more features, less bugs, and easier to use functions (somewhat).
6
8
7
9
Full safezone scaling supported, both left and right aligned menus supported.
MenuSliderItemslider3=newMenuSliderItem("Slider + Bar + Icons","The icons are currently male/female because that's probably the most common use. But any icon can be used!",0,10,5,true)
45
+
MenuSliderItemslider3=newMenuSliderItem(
46
+
"Slider + Bar + Icons",
47
+
"The icons are currently male/female because that's probably the most common use. But any icon can be used!",
// Creating 3 checkboxs, 2 different styles and one has a locked icon and it's 'not enabled' (not enabled meaning you can't toggle it).
58
-
MenuCheckboxItembox=newMenuCheckboxItem("Checkbox - Style 1 (click me!)","This checkbox can toggle the menu position! Try it out.",!menu.LeftAligned)
67
+
MenuCheckboxItembox=newMenuCheckboxItem(
68
+
"Checkbox - Style 1 (click me!)",
69
+
"This checkbox can toggle the menu position! Try it out.",
70
+
!menu.LeftAligned
71
+
)
59
72
{
60
73
Style=MenuCheckboxItem.CheckboxStyle.Cross
61
74
};
62
75
#endif
63
-
MenuCheckboxItembox2=newMenuCheckboxItem("Checkbox - Style 2","This checkbox does nothing right now.",true)
76
+
MenuCheckboxItembox2=newMenuCheckboxItem(
77
+
"Checkbox - Style 2",
78
+
"This checkbox does nothing right now.",
79
+
true
80
+
)
64
81
{
65
82
Style=MenuCheckboxItem.CheckboxStyle.Tick
66
83
};
67
84
68
-
MenuCheckboxItembox3=newMenuCheckboxItem("Checkbox (unchecked + locked)","Make this menu right aligned. If you set this to false, then the menu will move to the left.",false)
85
+
MenuCheckboxItembox3=newMenuCheckboxItem(
86
+
"Checkbox (unchecked + locked)",
87
+
"Make this menu right aligned. If you set this to false, then the menu will move to the left.",
MenuDynamicListItemdynList=newMenuDynamicListItem("Dynamic list item.","0",newMenuDynamicListItem.ChangeItemCallback(ChangeCallback),"Description for this dynamic item. Pressing left will make the value smaller, pressing right will make the value bigger.");
MenuListItemnormalListItem=newMenuListItem("Normal List Item",normalList,0,"And another simple description for yet another simple (list) item. Nothing special about this one.");
162
+
MenuListItemnormalListItem=newMenuListItem(
163
+
"Normal List Item",
164
+
normalList,
165
+
0,
166
+
"And another simple description for yet another simple (list) item. Nothing special about this one."
vartmpItem=newMenuItem($"Icon.{Enum.GetName(typeof(MenuItem.Icon),((MenuItem.Icon)i))}","This menu item has a left and right sprite. Press ~r~HOME~s~ to toggle the 'enabled' state on these items.")
//var tmpItem2 = new MenuItem($"Icon.{Enum.GetName(typeof(MenuItem.Icon), ((MenuItem.Icon)i))}", "This menu item has a left and right sprite, and it's ~h~disabled~h~.");
Menu menu3 =new Menu(null,"Only a subtitle, no banner.");
188
226
189
227
// you can use AddSubmenu or AddMenu, both will work but if you want to link this menu from another menu,
190
228
// you should use AddSubmenu.
191
229
MenuController.AddSubmenu(menu,menu3);
192
-
MenuItemthirdSubmenuBtn=newMenuItem("Another submenu","This is just a submenu without a banner. No big deal. This also has a very long description to test multiple lines and see if they work properly. Let's find out if it works as intended.")
230
+
MenuItem thirdSubmenuBtn =new MenuItem(
231
+
"Another submenu",
232
+
"This is just a submenu without a banner. No big deal. This also has a very long description to test multiple "+
233
+
"lines and see if they work properly. Let's find out if it works as intended."
0 commit comments