Hi all. I’d like to make a right-click menu that drops down a series of icons. Because different icons would show up depending on what game play mode you are in, they have to be dynamic. There would also be sub-menus Also, because I’d like to reuse this on future projects, Ideally I’d like the script in the inspector to be laid out as follows:
menu 1
---- Button 1
---------- Icon
---------- Icon color
---------- Label
---------- Send Message (do something)
---- Button 2
---------- Icon
---------- Icon color
---------- Label
---------- Send Message (roll out menu 2)
menu 2
---- Button 1
---------- Icon
---------- Icon color
---------- Label
---------- Send Message (do something)
NGUI gets me kind of there in terms of generating buttons with a background (which would be the icon in my case) background color (again, would be icon color) and label, but I’d like to take it a step further and assign them via inspector. Does this make sense? I hope so…
I just need a general idea of where to start with this. I’m definitely an artist first so a lot that comes to mind might be the exact wrong way to do it. Thoughts?