aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/cge2/cge2.h4
-rw-r--r--engines/cge2/talk.h2
-rw-r--r--engines/cge2/text.cpp11
3 files changed, 12 insertions, 5 deletions
diff --git a/engines/cge2/cge2.h b/engines/cge2/cge2.h
index e743d7b819..bb59c48446 100644
--- a/engines/cge2/cge2.h
+++ b/engines/cge2/cge2.h
@@ -89,6 +89,8 @@ enum CallbackType {
enum Action { kNear, kMTake, kFTake, kActions };
+enum ColorBank { kCBRel, kCBStd, kCBSay, kCBInf, kCBMnu, kCBWar };
+
class CGE2Engine : public Engine {
private:
uint32 _lastFrame, _lastTick;
@@ -105,7 +107,7 @@ public:
bool showTitle(const char *name);
void cge2_main();
char *mergeExt(char *buf, const char *name, const char *ext);
- void inf(const char *text, bool wideSpace = false);
+ void inf(const char *text, ColorBank col = kCBInf);
void movie(const char *ext);
void runGame();
void loadGame();
diff --git a/engines/cge2/talk.h b/engines/cge2/talk.h
index 84ba7281f9..cddcdc2c5e 100644
--- a/engines/cge2/talk.h
+++ b/engines/cge2/talk.h
@@ -62,8 +62,6 @@ public:
enum TextBoxStyle { kTBPure, kTBRect, kTBRound };
-enum ColorBank { kCBRel, kCBStd, kCBSay, kCBInf, kCBMnu, kCBWar };
-
class Talk : public Sprite {
protected:
TextBoxStyle _mode;
diff --git a/engines/cge2/text.cpp b/engines/cge2/text.cpp
index cf4dda4703..c7f6a06894 100644
--- a/engines/cge2/text.cpp
+++ b/engines/cge2/text.cpp
@@ -178,8 +178,15 @@ void Text::say(const char *text, Sprite *spr) {
_vm->_vga->_showQ->append(speaker);
}
-void CGE2Engine::inf(const char *text, bool wideSpace) {
- warning("STUB: CGE2Engine::inf()");
+void CGE2Engine::inf(const char *text, ColorBank col) {
+ killText();
+ _talk = new Talk(this, text, kTBRect, col);
+ if (_talk) {
+ _talk->_flags._kill = true;
+ _talk->setName(_text->getText(kInfName));
+ _talk->center();
+ _vga->_showQ->append(_talk);
+ }
}
void Text::sayTime(Sprite *spr) {