aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBendegúz Nagy2016-06-20 18:12:22 +0200
committerBendegúz Nagy2016-08-26 23:02:22 +0200
commitd5e4448ec619dd724fbdcbda38a5d3db8f74122a (patch)
tree33f817c127becaaa552aa67d9dfd3edc60deebe2
parentaa269b9f5e30cd2592884362b4e25a2a1a4c4ce6 (diff)
downloadscummvm-rg350-d5e4448ec619dd724fbdcbda38a5d3db8f74122a.tar.gz
scummvm-rg350-d5e4448ec619dd724fbdcbda38a5d3db8f74122a.tar.bz2
scummvm-rg350-d5e4448ec619dd724fbdcbda38a5d3db8f74122a.zip
DM: Add F0354_INVENTORY_DrawStatusBoxPortrait
-rw-r--r--engines/dm/inventory.cpp14
-rw-r--r--engines/dm/inventory.h1
2 files changed, 14 insertions, 1 deletions
diff --git a/engines/dm/inventory.cpp b/engines/dm/inventory.cpp
index 5c448c0175..c62bf15905 100644
--- a/engines/dm/inventory.cpp
+++ b/engines/dm/inventory.cpp
@@ -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);
+}
-} \ No newline at end of file
+}
diff --git a/engines/dm/inventory.h b/engines/dm/inventory.h
index 6579708293..90565f57ce 100644
--- a/engines/dm/inventory.h
+++ b/engines/dm/inventory.h
@@ -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
};
} \ No newline at end of file