DM: Add F0354_INVENTORY_DrawStatusBoxPortrait
This commit is contained in:
parent
aa269b9f5e
commit
d5e4448ec6
2 changed files with 14 additions and 1 deletions
|
@ -2,6 +2,7 @@
|
||||||
#include "dungeonman.h"
|
#include "dungeonman.h"
|
||||||
#include "eventman.h"
|
#include "eventman.h"
|
||||||
#include "menus.h"
|
#include "menus.h"
|
||||||
|
#include "gfx.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -81,5 +82,16 @@ void InventoryMan::toggleInventory(ChampionIndex championIndex) {
|
||||||
warning("MISSING CODE: F0357_COMMAND_DiscardAllInput");
|
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);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
|
@ -12,6 +12,7 @@ public:
|
||||||
int16 _inventoryChampionOrdinal; // @ G0423_i_InventoryChampionOrdinal
|
int16 _inventoryChampionOrdinal; // @ G0423_i_InventoryChampionOrdinal
|
||||||
InventoryMan(DMEngine *vm);
|
InventoryMan(DMEngine *vm);
|
||||||
void toggleInventory(ChampionIndex championIndex); // @ F0355_INVENTORY_Toggle_CPSE
|
void toggleInventory(ChampionIndex championIndex); // @ F0355_INVENTORY_Toggle_CPSE
|
||||||
|
void drawStatusBoxPortrait(ChampionIndex championIndex); // @ F0354_INVENTORY_DrawStatusBoxPortrait
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue