Implementing a drop down menu

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.
Post Reply
Guest

Implementing a drop down menu

Post by Guest »

Hey

What I am going to create is a button that when clicked loads a drop down menu. If you don't know what I mean look at IE, click the arrow next to the back button.

I already have a quick and dirty way of doing it, basically drawing an image where I want the menu, then making a rectangle around the menu. If the menu is open then a click outside the rectangle closes it.

The way I am doing it currently is pretty much all over the place and I'd like to add it to the actual engine, if possible without rebuilding the engine. Unfortunatly my knowledge of C++ falls flat on it's arse right there so I was wondering if anyone had simular plans to create this and how they are planning to do it.

If not I'll just do it the long winded way, I simply don't have the skill to do it on my own. I can but hope :D
deps
Posts: 115
Joined: Sat Jan 10, 2004 5:22 pm
Location: Tranås, Sweden

Post by deps »

Irrlicht 0.5 got just the stuff for your!
it's called IGUIContextMenu
You can read all about it in the API documentation >here<
Tyn
Posts: 932
Joined: Thu Nov 20, 2003 7:53 pm
Location: England
Contact:

Post by Tyn »

Cool! Didn't spot that one, cheers m8 :)
Post Reply