Trenloe
March 1st, 2014, 18:41
Does anyone know of how to trigger icon changes when using <buttoncontrol>.setIcons?
It seems to be that if the button has already been displayed, any icon that has already been used will not change with <buttoncontrol>.setIcons. It only works if none of the states (normal or pressed) have not been displayed before.
I need to change the icons of a button via LUA, but some time after the button has been displayed - so the original "normal" icon has already been displayed and so I can't get the change to appear.
Does anyone have any ideas or help on how to get the icon to change?
It seems to be that if the button has already been displayed, any icon that has already been used will not change with <buttoncontrol>.setIcons. It only works if none of the states (normal or pressed) have not been displayed before.
I need to change the icons of a button via LUA, but some time after the button has been displayed - so the original "normal" icon has already been displayed and so I can't get the change to appear.
Does anyone have any ideas or help on how to get the icon to change?