DM: Add mouse input processing and display for movement arrows

This commit is contained in:
Bendegúz Nagy 2016-06-17 14:29:05 +02:00
parent bcfe176df5
commit 98c79f89bf
9 changed files with 158 additions and 14 deletions

18
engines/dm/menus.cpp Normal file
View file

@ -0,0 +1,18 @@
#include "menus.h"
#include "gfx.h"
namespace DM {
MenuMan::MenuMan(DMEngine *vm): _vm(vm) {}
void MenuMan::drawMovementArrows() {
DisplayMan &disp = *_vm->_displayMan;
byte *arrowsBitmap = disp.getBitmap(kMovementArrowsIndice);
Box &dest = gBoxMovementArrows;
uint16 w = disp.width(kMovementArrowsIndice);
disp.blitToScreen(arrowsBitmap, w, 0, 0, dest.X1, dest.X2, dest.Y1, dest.Y2, kColorNoTransparency);
}
}