aboutsummaryrefslogtreecommitdiff
path: root/engines/cge2/talk.h
diff options
context:
space:
mode:
authoruruk2014-06-06 21:35:29 +0200
committeruruk2014-06-06 21:35:29 +0200
commit9efb2ef1a9e57ee1bf01a0111a1bdbd387486938 (patch)
tree176ea137e695fa6f1c80e1f7d6c46d7c5f62d617 /engines/cge2/talk.h
parent63a153165a0c2b933dde0c4023a96526d716bdb4 (diff)
downloadscummvm-rg350-9efb2ef1a9e57ee1bf01a0111a1bdbd387486938.tar.gz
scummvm-rg350-9efb2ef1a9e57ee1bf01a0111a1bdbd387486938.tar.bz2
scummvm-rg350-9efb2ef1a9e57ee1bf01a0111a1bdbd387486938.zip
CGE2: Implement Talk.
Diffstat (limited to 'engines/cge2/talk.h')
-rw-r--r--engines/cge2/talk.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/engines/cge2/talk.h b/engines/cge2/talk.h
index a9e5d63f9b..771478c5d1 100644
--- a/engines/cge2/talk.h
+++ b/engines/cge2/talk.h
@@ -62,17 +62,21 @@ public:
enum TextBoxStyle { kTBPure, kTBRect, kTBRound };
+enum ColorBank { kCBRel, kCBStd, kCBSay, kCBInf, kCBMnu, kCBWar };
+
class Talk : public Sprite {
protected:
TextBoxStyle _mode;
- BitmapPtr *_ts;
- Bitmap *box(uint16 w, uint16 h);
+ bool _created;
+ uint8 *box(V2D siz);
bool _wideSpace;
public:
- Talk(CGE2Engine *vm, const char *text, TextBoxStyle mode, bool wideSpace = false);
- Talk(CGE2Engine *vm);
+ uint8 *_color;
+
+ Talk(CGE2Engine *vm, const char *text, TextBoxStyle mode = kTBPure, ColorBank color = kCBStd, bool wideSpace = false);
+ Talk(CGE2Engine *vm, ColorBank color = kCBStd);
- virtual void update(const char *text);
+ void update(const char *text);
private:
CGE2Engine *_vm;
};