Show whole topic Oct 14, 2016 6:20 pm
mdooligan Offline
Approved Member
Registered since: Dec 07, 2008
Location: Vancouver BC


Subject: Re: 0.2.9 commentary
When the game is playing and you open files window to save, it's nice to see the game in background, also you can see which turn so you can put it in the save game title. When the game is over, however, it's nice to have black.
DownloadSource code (Text):
  1. --- ../maxr-0.2.9.orig/src/ui/graphical/window.h        2016-10-08 22:49:18.537230979 -0700
  2. +++ src/ui/graphical/window.h   2016-10-10 19:17:30.519632566 -0700
  3. @@ -67,7 +67,9 @@ public:
  4.          *                size of this image. If it is null, the window will have an size of (0,0).
  5.          * @param backgroundType Background type to apply when drawing the window.
  6.          */
  7. -       explicit cWindow (AutoSurface surface, eWindowBackgrounds backgroundType = eWindowBackgrounds::Black);
  8. +        // we need to pass a flag to tell it Black/Alpha/Transparent for various purposes
  9. +        // while playing the game, we want Alpha, but after closing game we want black.
  10. +       explicit cWindow (AutoSurface surface, eWindowBackgrounds backgroundType = eWindowBackgrounds::Alpha);
  11.  
  12.         /**
  13.          * Returns whether the window wants to be closed.

Miven Dooligan
Peace and cheer