DM: Add F0354_INVENTORY_DrawStatusBoxPortrait

This commit is contained in:
Bendegúz Nagy 2016-06-20 18:12:22 +02:00
parent aa269b9f5e
commit d5e4448ec6
2 changed files with 14 additions and 1 deletions

View File

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

View File

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