diff options
author | Martin Kiewitz | 2009-10-20 21:25:50 +0000 |
---|---|---|
committer | Martin Kiewitz | 2009-10-20 21:25:50 +0000 |
commit | 257d086aa1855ddf80066eeb3034e898f731bc5c (patch) | |
tree | 823a1cc971a844fcce8508063af8acae89629ef9 | |
parent | f2c69509836ae82b1eb377ffd6b5a71d0dbc5389 (diff) | |
download | scummvm-rg350-257d086aa1855ddf80066eeb3034e898f731bc5c.tar.gz scummvm-rg350-257d086aa1855ddf80066eeb3034e898f731bc5c.tar.bz2 scummvm-rg350-257d086aa1855ddf80066eeb3034e898f731bc5c.zip |
SCI/newgui: palVary logic as comments (work in progress)
svn-id: r45293
-rw-r--r-- | engines/sci/gui/gui_palette.cpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/engines/sci/gui/gui_palette.cpp b/engines/sci/gui/gui_palette.cpp index 8f9558f7e5..bba361bab7 100644 --- a/engines/sci/gui/gui_palette.cpp +++ b/engines/sci/gui/gui_palette.cpp @@ -322,4 +322,30 @@ void SciGuiPalette::animate(byte fromColor, byte toColor, int speed) { _schedules.push_back(newSchedule); } +// palVary +// init - only does, if palVaryOn == false +// target, start, new palette allocation +// palVaryOn = true +// palDirection = 1 +// palStop = 64 +// palTime = from caller +// copy resource palette to target +// init target palette (used = 1 on all colors, color 0 = RGB 0, 0, 0 color 255 = RGB 0xFF, 0xFF, 0xFF +// copy sysPalette to startPalette +// init new palette like target palette +// palPercent = 1 +// do various things +// return 1 +// deinit - unloads target palette, kills timer hook, disables palVaryOn +// pause - counts up or down, if counter != 0 -> signal wont get counted up by timer +// will only count down to 0 +// +// Restarting game +// palVary = false +// palPercent = 0 +// call palVary deinit +// +// Saving/restoring +// need to save start and target-palette, when palVaryOn = true + } // End of namespace Sci |