diff options
author | Bendegúz Nagy | 2016-06-20 22:10:55 +0200 |
---|---|---|
committer | Bendegúz Nagy | 2016-08-26 23:02:22 +0200 |
commit | 3385a3dd5cc21a3e8b05ad065dd46fc38e39ba33 (patch) | |
tree | 28fe84d9dc19663125b63f11002d0545992947bd /engines | |
parent | b068beb33f38c2f3a4cb8c5ea0b26ad53b3e35b0 (diff) | |
download | scummvm-rg350-3385a3dd5cc21a3e8b05ad065dd46fc38e39ba33.tar.gz scummvm-rg350-3385a3dd5cc21a3e8b05ad065dd46fc38e39ba33.tar.bz2 scummvm-rg350-3385a3dd5cc21a3e8b05ad065dd46fc38e39ba33.zip |
DM: Add F0343_INVENTORY_DrawPanel_HorizontalBar
Diffstat (limited to 'engines')
-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 |