Skip to content

Commit

Permalink
DM: Add stub method f6_highlightScreenBox
Browse files Browse the repository at this point in the history
  • Loading branch information
Bendegúz Nagy committed Aug 26, 2016
1 parent fd775be commit 0f99958
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
3 changes: 2 additions & 1 deletion engines/dm/eventman.h
Expand Up @@ -164,7 +164,7 @@ class Command {
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


Expand Down Expand Up @@ -321,6 +321,7 @@ class EventManager {
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
};

}
Expand Down
26 changes: 13 additions & 13 deletions engines/dm/menus.cpp
Expand Up @@ -309,54 +309,54 @@ 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);
}
}
}
}
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;
}
Expand Down

0 comments on commit 0f99958

Please sign in to comment.