Search found 3 matches

by rickning
Wed Aug 01, 2007 03:23
Forum: Help
Topic: How to create a button via lua script?
Replies: 5
Views: 4979

Unfortunatly, it failed also.

So, I used another method:

Code: Select all

button:setProperty("UnifiedAreaRect", item[3])


It works, though it's inconvenient.

: D
by rickning
Tue Jul 31, 2007 05:24
Forum: Help
Topic: How to create a button via lua script?
Replies: 5
Views: 4979

Thank you, scriptkid.
I tried your code, but it still doesn't work. same error as mine :(


...
So be it, I use release build to avoid type checking.
by rickning
Mon Jul 30, 2007 11:27
Forum: Help
Topic: How to create a button via lua script?
Replies: 5
Views: 4979

How to create a button via lua script?

Here's my code: local button = winMgr:createWindow("TaharezLook/Button", btName) button:setText(item[1]) button:setSize( CEGUI.Size:new_local(0.5,0.1) ) button:setPosition(CEGUI.Point:new_local(0.1, 0.2)) MainBar:addChildWindow(button) when it runs, an exception dialog pops up. After I tra...

Go to advanced search