Wintermute Engine Forum
Wintermute Engine => Technical forum => Topic started by: eborr on January 24, 2014, 03:34:43 PM
-
My desire is that when a window is inactive it changes colour, this I can achieve very simply by changing the window inactive image, however I also want all of the buttons to change colour too, so that I can emphasise the inactive state. I can do this programmatically by setting each button to it's disabled state, and then when the window is active by a reversal of the process. Is there any neater way to achieve the same state ?
-
It seems that the answer is - no. But the way you described is quite good, considering the fact that it takes (in theory) are just a few lines of code:
[code=script]method DisableControls()
{
for (var i=0; i<this.NumControls; i=i+1)
{
var
-
Thanks thought that was probably the case, neatly coded solution to.