Skip to content

Commit

Permalink
DM: Add F0339_INVENTORY_DrawPanel_ArrowOrEye, G0033_s_Graphic562_Box_…
Browse files Browse the repository at this point in the history
…ArrowOrEye
  • Loading branch information
Bendegúz Nagy committed Aug 26, 2016
1 parent c40aca2 commit 792f488
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion engines/dm/TODOs/methodtree.txt
Expand Up @@ -57,7 +57,7 @@ F0280_CHAMPION_AddCandidateChampionToParty // done, so-so
F0335_INVENTORY_DrawPanel_ObjectDescriptionString // done
G0421_i_ObjectDescriptionTextX // done
G0422_i_ObjectDescriptionTextY // done
F0339_INVENTORY_DrawPanel_ArrowOrEye
F0339_INVENTORY_DrawPanel_ArrowOrEye // done
G0430_apc_DirectionNames
G0034_s_Graphic562_Box_ObjectDescriptionCircle
G0032_s_Graphic562_Box_Panel
Expand Down
4 changes: 3 additions & 1 deletion engines/dm/gfx.h
Expand Up @@ -76,7 +76,9 @@ enum GraphicIndice {
kMenuSpellAreLinesIndice = 11, // @ C011_GRAPHIC_MENU_SPELL_AREA_LINES
kMenuSpellAreaBackground = 9, // @ C009_GRAPHIC_MENU_SPELL_AREA_BACKGROUND
kPanelOpenScrollIndice = 23, // @ C023_GRAPHIC_PANEL_OPEN_SCROLL
kPanelOpenChestIndice = 25 // @ C025_GRAPHIC_PANEL_OPEN_CHEST
kPanelOpenChestIndice = 25, // @ C025_GRAPHIC_PANEL_OPEN_CHEST
kEyeForObjectDescriptionIndice = 19, // @ C019_GRAPHIC_EYE_FOR_OBJECT_DESCRIPTION
kArrowForChestContentIndice = 18 // @ C018_GRAPHIC_ARROW_FOR_CHEST_CONTENT
};

extern uint16 gPalSwoosh[16];
Expand Down
9 changes: 9 additions & 0 deletions engines/dm/inventory.cpp
Expand Up @@ -405,4 +405,13 @@ void InventoryMan::drawPanelObjectDescriptionString(char* descString) {
}
}
}

Box gBoxArrowOrEye = Box(83, 98, 57, 65); // @ G0033_s_Graphic562_Box_ArrowOrEye

void InventoryMan::drawPanelArrowOrEye(bool pressingEye) {
DisplayMan &dispMan = *_vm->_displayMan;
dispMan.blitToScreen(dispMan.getBitmap(pressingEye ? kEyeForObjectDescriptionIndice : kArrowForChestContentIndice),
16, 0, 0, gBoxArrowOrEye, kColorRed, gDungeonViewport);
}

}
1 change: 1 addition & 0 deletions engines/dm/inventory.h
Expand Up @@ -76,6 +76,7 @@ class InventoryMan {
void buildObjectAttributeString(int16 potentialAttribMask, int16 actualAttribMask, char ** attribStrings,
char *destString, char *prefixString, char *suffixString); // @ F0336_INVENTORY_DrawPanel_BuildObjectAttributesString
void drawPanelObjectDescriptionString(char *descString); // @ F0335_INVENTORY_DrawPanel_ObjectDescriptionString
void drawPanelArrowOrEye(bool pressingEye); // @ F0339_INVENTORY_DrawPanel_ArrowOrEye

};

Expand Down

0 comments on commit 792f488

Please sign in to comment.