diff options
author | Nipun Garg | 2019-06-28 18:03:18 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:03 +0200 |
commit | ba002d8616fbb3dbfe02dab63a03c5ac8de1ffc8 (patch) | |
tree | 0ad6c0ce821c071336f74805e40bcfe3f6f5f6e3 /engines | |
parent | 6d7329836236f624aa0fe838d344bb84b159e4d1 (diff) | |
download | scummvm-rg350-ba002d8616fbb3dbfe02dab63a03c5ac8de1ffc8.tar.gz scummvm-rg350-ba002d8616fbb3dbfe02dab63a03c5ac8de1ffc8.tar.bz2 scummvm-rg350-ba002d8616fbb3dbfe02dab63a03c5ac8de1ffc8.zip |
HDB: Add cineTextOut() and cineCenterTextOut()
Diffstat (limited to 'engines')
-rw-r--r-- | engines/hdb/ai-cinematic.cpp | 21 | ||||
-rw-r--r-- | engines/hdb/ai.h | 2 |
2 files changed, 23 insertions, 0 deletions
diff --git a/engines/hdb/ai-cinematic.cpp b/engines/hdb/ai-cinematic.cpp index 39a203b8c0..e92c85ba5f 100644 --- a/engines/hdb/ai-cinematic.cpp +++ b/engines/hdb/ai-cinematic.cpp @@ -569,6 +569,27 @@ void AI::cineDialog(const char *title, const char *string, int seconds) { _cine.push_back(cmd); } +void AI::cineTextOut(const char *text, int x, int y, int timer) { + CineCommand *cmd = new CineCommand; + cmd->title = text; + cmd->x = x; + cmd->y = y; + cmd->end = timer; + cmd->start = 0; + cmd->cmdType = C_TEXTOUT; + _cine.push_back(cmd); +} + +void AI::cineCenterTextOut(const char *text, int y, int timer) { + CineCommand *cmd = new CineCommand; + cmd->title = text; + cmd->y = y; + cmd->end = timer; + cmd->start = 0; + cmd->cmdType = C_CENTERTEXTOUT; + _cine.push_back(cmd); +} + void AI::cineMoveMaskedPic(const char *id, const char *pic, int x1, int y1, int x2, int y2, int speed) { if (!pic || !id) { warning("cineMoveMaskedPic: Missing ID or PIC"); diff --git a/engines/hdb/ai.h b/engines/hdb/ai.h index d8a831c10d..0d3de9cfef 100644 --- a/engines/hdb/ai.h +++ b/engines/hdb/ai.h @@ -868,6 +868,8 @@ public: void cineSetAnimFrame(const char *entName, AIState state, int frame); void cineEntityFace(const char *luaName, double dir); void cineDialog(const char *title, const char *string, int seconds); + void cineTextOut(const char *text, int x, int y, int timer); + void cineCenterTextOut(const char *text, int y, int timer); void cineMoveMaskedPic(const char *id, const char *pic, int x1, int y1, int x2, int y2, int speed); void cineUse(const char *entName); void cineFadeIn(bool isBlack, int steps); |