diff options
-rw-r--r-- | engines/dm/inventory.cpp | 14 | ||||
-rw-r--r-- | engines/dm/inventory.h | 1 |
2 files changed, 14 insertions, 1 deletions
diff --git a/engines/dm/inventory.cpp b/engines/dm/inventory.cpp index 5c448c0175..c62bf15905 100644 --- a/engines/dm/inventory.cpp +++ b/engines/dm/inventory.cpp @@ -2,6 +2,7 @@ #include "dungeonman.h" #include "eventman.h" #include "menus.h" +#include "gfx.h" @@ -81,5 +82,16 @@ void InventoryMan::toggleInventory(ChampionIndex championIndex) { warning("MISSING CODE: F0357_COMMAND_DiscardAllInput"); } +#define kChampionStatusBoxSpacing 69 // @ C69_CHAMPION_STATUS_BOX_SPACING +void InventoryMan::drawStatusBoxPortrait(ChampionIndex championIndex) { + DisplayMan &dispMan = *_vm->_displayMan; + dispMan._useByteBoxCoordinates = false; + Box box; + box._y1 = 0; + box._y2 = 28 + 1; + box._x1 = championIndex * kChampionStatusBoxSpacing + 7; + box._x2 = box._x1 + 31 + 1; + dispMan.blitToScreen(_vm->_championMan->_champions[championIndex]._portrait, 32, 0, 0, box, kColorNoTransparency); +} -}
\ No newline at end of file +} diff --git a/engines/dm/inventory.h b/engines/dm/inventory.h index 6579708293..90565f57ce 100644 --- a/engines/dm/inventory.h +++ b/engines/dm/inventory.h @@ -12,6 +12,7 @@ public: int16 _inventoryChampionOrdinal; // @ G0423_i_InventoryChampionOrdinal InventoryMan(DMEngine *vm); void toggleInventory(ChampionIndex championIndex); // @ F0355_INVENTORY_Toggle_CPSE + void drawStatusBoxPortrait(ChampionIndex championIndex); // @ F0354_INVENTORY_DrawStatusBoxPortrait }; }
\ No newline at end of file |