How to make this line a submenu:
-
public void AddMenuAnotherMenu(UIMenu menu)
how can i make this a submenu inside my player options
-
Create the menu like this:
var submenu = menuPool.AddSubMenu(playerOptionsMenu, "Another Menu");https://github.com/Guad/NativeUI/blob/master/MenuExample/MenuExample.cs#L73
-
This post is deleted!
-
i got it to show up but the if statement wont work.
when i use
menu.OnItemSelect += (sender, item, index) =>it wont work but if i use
submenu.OnItemSelect += (sender, item, index) =>
it does but all my other if statements wont work
-
@ShadoFax You need to bind that event for each menu.
menu.OnItemSelect += ... submenu.OnItemSelect += ... vehSpawnMenu.OnItemSelect += ...Each one should only contain the if statements relevant to it. For example, put the if statements regarding vehicle spawning in
vehSpawnMenu.OnItemSelect += ...