Code: Select all
function luabtn_clicked(e)
local winMgr = CEGUI.WindowManager:getSingleton()
local temp = ceguiLua_toPushButton(winMgr:getWindow("LuaButton"))
temp:setText("test")
end
I have a button that is named as "LuaButton" and this script should change it's text into "test". But it doesn't do anything.
If the script is correct, then I guess I have some problems with lauching/handling the script...