PDA

View Full Version : Change gradient on a state change?



Akiva
15th June 2014, 16:35
Selecting entirely different gradients work for state changes.
but
Adjusting the properties of the current gradient through a function, and returning that gradient does not work unless it is going from a state with no gradient, to a state with a gradient. (Edit: okay I just realized how strange that last sentence was... What I mean, is that the gradient object I am using; the changes to it do not register unless the gradient property of my button is removed, and then reintroduced.)

There is some programming logic I am not considering... Any thoughts?

wysota
16th June 2014, 10:19
Eeemm... would you care to post some code explaining what you mean?