I want create a popup menu like when i click right mouse in Windows .
But i know CELayoutEditor can't do it . CELayoutEditor can only make a menu bar !
help me !
[/img]
Can CEGUI create a popup menu ?
Moderators: CEGUI MVP, CEGUI Team
- scriptkid
- Home away from home
- Posts: 1178
- Joined: Wed Jan 12, 2005 12:06
- Location: The Hague, The Netherlands
- Contact:
Hi there,
indeed, the editor does not allow direct creation of popup menus. I can't remember why that was decided. Maybe a popup menu requires a parent bar. It's been a while since i used menus. Maybe this page can help you:
http://www.cegui.org.uk/wiki/index.php/MenuAndPopup
It demonstrates how to pick a popup menu form a menu and do stuff with it. You can try to create a menu (including bar) from the editor, and update your layout to only keep the popup menu and edit its dimensions.
Good luck!
indeed, the editor does not allow direct creation of popup menus. I can't remember why that was decided. Maybe a popup menu requires a parent bar. It's been a while since i used menus. Maybe this page can help you:
http://www.cegui.org.uk/wiki/index.php/MenuAndPopup
It demonstrates how to pick a popup menu form a menu and do stuff with it. You can try to create a menu (including bar) from the editor, and update your layout to only keep the popup menu and edit its dimensions.
Good luck!
Check out my released snake game using Cegui!
Return to “Offtopic Discussion”
Who is online
Users browsing this forum: No registered users and 3 guests