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:
I'm getting the following error:
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.
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:
I'm getting the following error:
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.