I've created multiple items within a sub menu, making it a dynamic sub menu. I however don't know any way in order to differentiate between the different items once they've been clicked. Anyone got any ideas?
warSubMenu.addItem(chosenMenu,'loadLoadout(' + chosenMenu +')');
Above is the code I've used in order to create the sub menu.
I've tried to pass an argument through the function loadLoadout()
however .addItem()
believes the the function to be entirely separate rather than an argument being passed into loadLoadout()
.