diff options
-rw-r--r-- | engines/dm/inventory.cpp | 10 | ||||
-rw-r--r-- | engines/dm/inventory.h | 1 |
2 files changed, 11 insertions, 0 deletions
diff --git a/engines/dm/inventory.cpp b/engines/dm/inventory.cpp index 2e7f2544f4..ea643dac4d 100644 --- a/engines/dm/inventory.cpp +++ b/engines/dm/inventory.cpp @@ -97,4 +97,14 @@ void InventoryMan::drawStatusBoxPortrait(ChampionIndex championIndex) { dispMan.blitToScreen(_vm->_championMan->_champions[championIndex]._portrait, 32, 0, 0, box, kColorNoTransparency); } +void InventoryMan::drawPanelHorizontalBar(int16 x, int16 y, int16 pixelWidth, Color color) { + Box box; + box._x1 = x; + box._x2 = box._x1 + pixelWidth; + box._y1 = y; + box._y2 = box._y1 + 6; + _vm->_displayMan->_useByteBoxCoordinates = false; + _vm->_displayMan->clearScreenBox(color, box); +} + } diff --git a/engines/dm/inventory.h b/engines/dm/inventory.h index eb4b458b82..192b68964a 100644 --- a/engines/dm/inventory.h +++ b/engines/dm/inventory.h @@ -15,6 +15,7 @@ public: InventoryMan(DMEngine *vm); void toggleInventory(ChampionIndex championIndex); // @ F0355_INVENTORY_Toggle_CPSE void drawStatusBoxPortrait(ChampionIndex championIndex); // @ F0354_INVENTORY_DrawStatusBoxPortrait + void drawPanelHorizontalBar(int16 x, int16 y, int16 pixelWidth, Color color); // @ F0343_INVENTORY_DrawPanel_HorizontalBar }; }
\ No newline at end of file |