Hi guys, i’m trying to make a button visible on all pages by putting it in my main.lua but the issue i’m having is that on some scenes I want my button to be disabled but when a scene loads where I want the use of the button it becomes enabled. I’ve tried using some things like [lua]myButton:setEnabled(true)[/lua] but cannot find a method of changing it when the scene loads I thought maybe something to do with using myData.lua to tell each scene what to do. So each scene will tell a value to be true or false in myData.lua and my button in main.lua will be disable if the myData.lua is false and enabled if true. However, I don’t know of a way where I can make my button do this, I don’t know how to make the code for this. If anyone knows of a method I would really appreciate it thanks again.
Matt.