aboutsummaryrefslogtreecommitdiff
path: root/engines/supernova/state.cpp
diff options
context:
space:
mode:
authorJoseph-Eugene Winzer2017-08-26 07:34:06 +0200
committerThierry Crozat2018-01-23 01:47:02 +0000
commite15f281113d5b22e48ecef037f4737718ddd1c63 (patch)
treed2e8d7ef4699f2dcb504d768c0b0c31f3be2acb2 /engines/supernova/state.cpp
parentd6d485dbae355e29c6119615c3f796fc7020cd60 (diff)
downloadscummvm-rg350-e15f281113d5b22e48ecef037f4737718ddd1c63.tar.gz
scummvm-rg350-e15f281113d5b22e48ecef037f4737718ddd1c63.tar.bz2
scummvm-rg350-e15f281113d5b22e48ecef037f4737718ddd1c63.zip
SUPERNOVA: Removes color macros
Diffstat (limited to 'engines/supernova/state.cpp')
-rw-r--r--engines/supernova/state.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/engines/supernova/state.cpp b/engines/supernova/state.cpp
index 521f90b53d..6453f39fb1 100644
--- a/engines/supernova/state.cpp
+++ b/engines/supernova/state.cpp
@@ -749,8 +749,8 @@ void GameManager::drawInventory() {
_guiInventory[i]._textColor);
}
- _vm->renderBox(272, 161, 7, 19, HGR_INV);
- _vm->renderBox(272, 181, 7, 19, HGR_INV);
+ _vm->renderBox(272, 161, 7, 19, kColorWhite25);
+ _vm->renderBox(272, 181, 7, 19, kColorWhite25);
}
uint16 GameManager::getKeyInput(bool blockForPrintChar) {
@@ -885,15 +885,15 @@ void GameManager::shock() {
void GameManager::showMenu() {
_vm->renderBox(0, 138, 320, 62, 0);
- _vm->renderBox(0, 140, 320, 9, HGR_BEF_ANZ);
+ _vm->renderBox(0, 140, 320, 9, kColorWhite25);
drawCommandBox();
- _vm->renderBox(281, 161, 39, 39, HGR_AUSG);
+ _vm->renderBox(281, 161, 39, 39, kColorWhite25);
drawInventory();
}
void GameManager::drawMapExits() {
// TODO: Preload _exitList on room entry instead on every call
- _vm->renderBox(281, 161, 39, 39, HGR_AUSG);
+ _vm->renderBox(281, 161, 39, 39, kColorWhite25);
for (int i = 0; i < 25; i++)
_exitList[i] = -1;
@@ -903,7 +903,7 @@ void GameManager::drawMapExits() {
_exitList[r] = i;
int x = 284 + 7 * (r % 5);
int y = 164 + 7 * (r / 5);
- _vm->renderBox(x, y, 5, 5, COL_AUSG);
+ _vm->renderBox(x, y, 5, 5, kColorDarkRed);
}
}
}
@@ -926,22 +926,22 @@ void GameManager::edit(Common::String &input, int x, int y, uint length) {
while (isEditing) {
_vm->_textCursorX = x;
_vm->_textCursorY = y;
- _vm->_textColor = COL_EDIT;
- _vm->renderBox(x, y - 1, overdrawWidth, 9, HGR_EDIT);
+ _vm->_textColor = kColorWhite99;
+ _vm->renderBox(x, y - 1, overdrawWidth, 9, kColorDarkBlue);
for (uint i = 0; i < input.size(); ++i) {
// Draw char highlight depending on cursor position
if (i == cursorIndex) {
- _vm->renderBox(_vm->_textCursorX, y - 1, _vm->textWidth(input[i]), 9, COL_EDIT);
- _vm->_textColor = HGR_EDIT;
+ _vm->renderBox(_vm->_textCursorX, y - 1, _vm->textWidth(input[i]), 9, kColorWhite99);
+ _vm->_textColor = kColorDarkBlue;
_vm->renderText(input[i]);
- _vm->_textColor = COL_EDIT;
+ _vm->_textColor = kColorWhite99;
} else {
_vm->renderText(input[i]);
}
}
if (cursorIndex == input.size()) {
- _vm->renderBox(_vm->_textCursorX + 1, y - 1, 6, 9, HGR_EDIT);
- _vm->renderBox(_vm->_textCursorX , y - 1, 1, 9, COL_EDIT);
+ _vm->renderBox(_vm->_textCursorX + 1, y - 1, 6, 9, kColorDarkBlue);
+ _vm->renderBox(_vm->_textCursorX , y - 1, 1, 9, kColorWhite99);
}
getKeyInput(true);