Page 1 of 1
Lua and the Menu system
Posted: Sun Jul 03, 2005 04:12
by Acrion
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
Re: Lua and the Menu system
Posted: Sun Jul 03, 2005 09:57
by CrazyEddie
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.
Re: Lua and the Menu system
Posted: Mon Jul 04, 2005 14:32
by lindquist
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.
Re: Lua and the Menu system
Posted: Tue Jul 05, 2005 11:31
by Acrion
Awesome, thanks. It was mostly a case of not understanding the menu system. I was assuming that I needed to access the lists directly.