how to using Lua UIInterface?

Initiate Mage
Joined
Oct 22, 2024
Messages
2
Reaction score
0
Hey everyone, has anyone here used the Lua UI interface in the client before?

I've added a test UI panel that displays correctly, but I can't get events to trigger. Based on the client's source code,
I wrote a Lua script like this:


1-235904 - how to using Lua UIInterface? - RaGEZONE Forums


I defined a button in the XML file named Btn_test, but the function isn't being triggered.
The source code in LuaDlgApi.cpp registers a bunch of functions
should I call them like shown in the screenshot? Using DlgApi:method ?
 
Back