DM: Add F0343_INVENTORY_DrawPanel_HorizontalBar

This commit is contained in:
Bendegúz Nagy 2016-06-20 22:10:55 +02:00
parent b068beb33f
commit 3385a3dd5c
2 changed files with 11 additions and 0 deletions

View File

@ -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);
}
}

View File

@ -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
};
}