MADS: Implement two palette functions

This commit is contained in:
Strangerke 2014-05-19 07:04:26 +02:00
parent 7f82b0eafa
commit 46cedfc903
3 changed files with 16 additions and 2 deletions

View File

@ -3236,8 +3236,8 @@ void Scene319::step() {
break;
case 72:
warning("TODO: sub7CBD8(-1, 0, 0);");
warning("TODO: sub7CBE4(0, 0, 0);");
_vm->_palette->setColorFlags(0xFF, 0, 0);
_vm->_palette->setColorValues(0, 0, 0);
_vm->_palette->fadeOut(_vm->_palette->_mainPalette, 18, 228, 16, 1, 8, 248, 0, 0);
warning("TODO: shake_countdown = 1;");
_scene->_reloadSceneFlag = true;

View File

@ -714,6 +714,18 @@ void Palette::setLowRange() {
_vm->_palette->setPalette(_mainPalette, 0, 4);
}
void Palette::setColorFlags(byte r, byte g, byte b) {
_colorFlags[0] = r;
_colorFlags[1] = g;
_colorFlags[2] = b;
}
void Palette::setColorValues(byte r, byte g, byte b) {
_colorValues[0] = r;
_colorValues[1] = g;
_colorValues[2] = b;
}
void Palette::fadeOut(byte palette[PALETTE_SIZE], int start, int count, int v1, int v2, int v3, int v4, int v5, int v6) {
warning("TODO: Palette::fadeOut()");
}

View File

@ -308,6 +308,8 @@ public:
warning("TODO: Palette::close");
}
void setColorFlags(byte r, byte g, byte b);
void setColorValues(byte r, byte g, byte b);
void fadeOut(byte palette[PALETTE_SIZE], int start, int count, int v1, int v2, int v3, int v4, int v5, int v6);
void lock();