• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

TFS 1.X+ TFS 1.4.2 - How to save a reference to a modal button when adding it to a modal window?

shez32

New Member
Joined
Apr 16, 2024
Messages
1
Reaction score
0
Hello, I've just started tinkering around with the OTClient and TFS and I was wondering If there is a way to manipulate buttons at runtime, i.e to change thier location, text, size, etc.

I've followed a tutorial to create a modal window, but I'm having trouble saving the reference to the modal button as shown below:

Capture.JPG

I'm getting the following error:

Captur2e.JPG

I have a hunch that the window:addButton doesnt return a button. If that is the case; is there any equiavlent function to store a reference to the button. Apologies if this is a very basic mistake, but I'd really appreciate it if someone could guide me.
 
Back
Top