Lua and the Menu system

Discussion regarding the development of CEGUI itself - as opposed to questions about CEGUI usage that should be in the help forums.

Moderators: CEGUI MVP, CEGUI Team

User avatar
Acrion
Just popping in
Just popping in
Posts: 18
Joined: Tue Jun 28, 2005 18:45
Location: Maine, USA
Contact:

Lua and the Menu system

Postby Acrion » Sun Jul 03, 2005 04:12

CEGUI 0.3.0 was released with the new menu system but it isn't implemented in LuaScriptModule (ItemListBase?). I'm not up to par with tolua++ and the menus system. I don't know where to begin to do it on my own at this point.

Has anyone added this to the lua scripting yet or gotten a menu created in Lua?

Also, does anyone have a brief snippet of using the menu system?

Thanks
[font=Verdana][size=xx-small]"It's not hard to stand out when the general level of competence is so low" -EMH[/size][/font]
namik@flashmail.com

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: Lua and the Menu system

Postby CrazyEddie » Sun Jul 03, 2005 09:57

Lindquist, who is in charge of the Lua module, has some enhancements ready to be committed to CVS, these probably contain what you're looking for.

We considered having them in for 0.3.0, but decided to play it safe instead.

Lindquist is away at the moment, but when he gets back I'm sure he can fill you in on the full facts.

User avatar
lindquist
CEGUI Team (Retired)
Posts: 770
Joined: Mon Jan 24, 2005 21:20
Location: Copenhagen, Denmark

Re: Lua and the Menu system

Postby lindquist » Mon Jul 04, 2005 14:32

You can use the menusystem without Lua knowing anything about the spcific widgets.
Take a look here http://www.cegui.org.uk/wiki/index.php/ ... UI_scripts - I have added a simple example of creating a menu.

User avatar
Acrion
Just popping in
Just popping in
Posts: 18
Joined: Tue Jun 28, 2005 18:45
Location: Maine, USA
Contact:

Re: Lua and the Menu system

Postby Acrion » Tue Jul 05, 2005 11:31

Awesome, thanks. It was mostly a case of not understanding the menu system. I was assuming that I needed to access the lists directly.
[font=Verdana][size=xx-small]"It's not hard to stand out when the general level of competence is so low" -EMH[/size][/font]

namik@flashmail.com


Return to “CEGUI Library Development Discussion”

Who is online

Users browsing this forum: No registered users and 10 guests