luaScript for MyGUI

mos

03-03-2011 09:46:10

I find there are someone ask for script modules for MyGUI. I'd like share some work on it. based on MyGUI_3.2.0_RC1.
the script module just a framework, not so much code, but can be easily expand.

--exe may you want to try before compile
bin/release/Demo_lua.exe

--before compile please download lua from lua.org
--and put lua into dependency/include/lua
--and compile lua lib as:
dependency/lib/debug/lua5.2_d.lib
dependency/lib/release/lua5.2.lib

--modules use export mygui to lua
common/script/luascript

--a demo for luascript
demos/demo_lua

--a tool generate lua code from .layout
--the cmd like:
-- luagen demo_lua(.layout) //attention, not input (.layout)
tools/luagen

--a public script modules wrap lua c function
media/common/demos/lua_widget.lua

--demo_lua.layout gui.lua
media/demos/demo_lua

--and there are a tools for convert all acii file to utf8
tools/a2u
forall_a2u.bat

ps: I'am working on windows and use vs2010,I also want to use CMake but ... finally give up. :(
if you have the different env, you may find there are a lot of work to do, and some msvc....dll miss!
I am sorry, and sorry for my English too. but I think you can solve it.