The “Enable” property of a button is great for, well, disabling a button. It looks all nice and grayed out so its clear the button cannot be used, it disables event scripts from running and all that good stuff.
HOWEVER, I’m finding it’s actually quite important to still show the STATE of the button as indicated by the “Indicator Value” property of the button. Unfortunately if the button is disabled, all the foreground and background formatting is overwritten.
Is there a clever way to avoid this?
I’ve made a custom property on the button called [color=#0000FF]“Enable”[/color] which I will bind my enable conditions to. I can use this in the component script to execute the script or not. But then I also need to bind this to the background color etc and it all gets a bit hard. Haven’t used styles much yet, is that perhaps a way to go? Thanks