aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/hdb/ai-cinematic.cpp21
-rw-r--r--engines/hdb/ai.h2
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);