DM: Add stub method f6_highlightScreenBox

This commit is contained in:
Bendegúz Nagy 2016-08-09 08:47:59 +02:00
parent fd775be377
commit 0f9995851b
2 changed files with 15 additions and 14 deletions

View File

@ -164,7 +164,7 @@ public:
Common::Point _pos;
CommandType _type;
Command(Common::Point position, CommandType commandType): _pos(position), _type(commandType) {}
Command(Common::Point position, CommandType commandType) : _pos(position), _type(commandType) {}
}; // @ COMMAND
@ -321,6 +321,7 @@ public:
void f541_waitForMouseOrKeyActivity(); // @ F0541_INPUT_WaitForMouseOrKeyboardActivity
void f362_commandHighlightBoxEnable(int16 x1, int16 x2, int16 y1, int16 y2) { warning(false, "STUB METHOD: f362_commandHighlightBoxEnable"); }// @ F0362_COMMAND_HighlightBoxEnable
void f363_highlightBoxDisable() { warning(false, "STUB METHOD: f363_highlightBoxDisable"); } // @ F0363_COMMAND_HighlightBoxDisable
void f6_highlightScreenBox(int16 x1, int16 x2, int16 y1, int16 y2) { warning(false, "STUB METHOD: f6_highlightScreenBox"); } // @ F0006_MAIN_HighlightScreenBox
};
}

View File

@ -309,21 +309,21 @@ void MenuMan::f393_drawSpellAreaControls(ChampionIndex champIndex) {
int16 champCount = champMan._g305_partyChampionCount;
switch (champIndex) {
case k0_ChampionFirst:
warning(false, "MISSING CODE: F0006_MAIN_HighlightScreenBox");
_vm->_eventMan->f6_highlightScreenBox(233, 277, 42, 49);
textMan.f53_printToLogicalScreen(235, 48, k0_ColorBlack, k4_ColorCyan, champ._name);
if (champCount) {
if (champCurrHealth[1]) {
warning(false, "MISSING CODE: F0006_MAIN_HighlightScreenBox");
_vm->_eventMan->f6_highlightScreenBox(280, 291, 42, 48);;
}
labelChamp2:
if (champCount > 2) {
if (champCurrHealth[2]) {
warning(false, "MISSING CODE: F0006_MAIN_HighlightScreenBox");
_vm->_eventMan->f6_highlightScreenBox(294, 305, 42, 48);
}
labelChamp3:
if (champCount > 3) {
if (champCurrHealth[3]) {
warning(false, "MISSING CODE: F0006_MAIN_HighlightScreenBox");
_vm->_eventMan->f6_highlightScreenBox(308, 319, 42, 48);
}
}
}
@ -331,32 +331,32 @@ labelChamp3:
break;
case k1_ChampionSecond:
if (champCurrHealth[0]) {
warning(false, "MISSING CODE: F0006_MAIN_HighlightScreenBox");
_vm->_eventMan->f6_highlightScreenBox(233, 244, 42, 48);
}
warning(false, "MISSING CODE: F0006_MAIN_HighlightScreenBox");
_vm->_eventMan->f6_highlightScreenBox(247, 291, 42, 49);
textMan.f53_printToLogicalScreen(249, 48, k0_ColorBlack, k4_ColorCyan, champ._name);
goto labelChamp2;
case k2_ChampionThird:
if (champCurrHealth[0]) {
warning(false, "MISSING CODE: F0006_MAIN_HighlightScreenBox");
_vm->_eventMan->f6_highlightScreenBox(233, 244, 42, 48);
}
if (champCurrHealth[1]) {
warning(false, "MISSING CODE: F0006_MAIN_HighlightScreenBox");
_vm->_eventMan->f6_highlightScreenBox(247, 258, 42, 48);
}
warning(false, "MISSING CODE: F0006_MAIN_HighlightScreenBox");
_vm->_eventMan->f6_highlightScreenBox(261, 305, 42, 49);
textMan.f53_printToLogicalScreen(263, 48, k0_ColorBlack, k4_ColorCyan, champ._name);
goto labelChamp3;
case k3_ChampionFourth:
if (champCurrHealth[0]) {
warning(false, "MISSING CODE: F0006_MAIN_HighlightScreenBox");
_vm->_eventMan->f6_highlightScreenBox(233, 244, 42, 48);
}
if (champCurrHealth[1]) {
warning(false, "MISSING CODE: F0006_MAIN_HighlightScreenBox");
_vm->_eventMan->f6_highlightScreenBox(247, 258, 42, 48);
}
if (champCurrHealth[2]) {
warning(false, "MISSING CODE: F0006_MAIN_HighlightScreenBox");
_vm->_eventMan->f6_highlightScreenBox(261, 272, 42, 48);
}
warning(false, "MISSING CODE: F0006_MAIN_HighlightScreenBox");
_vm->_eventMan->f6_highlightScreenBox(275, 319, 42, 49);
textMan.f53_printToLogicalScreen(277, 48, k0_ColorBlack, k4_ColorCyan, champ._name);
break;
}