Wintermute Engine Forum

Wintermute Engine => Technical forum => Topic started by: eborr on January 24, 2014, 03:34:43 PM

Title: Window is inactive and the buttons appear to be active
Post 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 ?
Title: Re: Window is inactive and the buttons appear to be active
Post by: 2.0 on January 24, 2014, 10:37:26 PM
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
Title: Re: Window is inactive and the buttons appear to be active
Post by: eborr on January 25, 2014, 12:51:45 AM
Thanks thought that was probably the case, neatly coded solution to.