aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction/graphics.h
diff options
context:
space:
mode:
authorNicola Mettifogo2008-07-03 10:31:25 +0000
committerNicola Mettifogo2008-07-03 10:31:25 +0000
commit59e672ef40e4c227c27022ec764f8b811b375220 (patch)
tree8a200cb1813a620467e71ad7e18cc6f393af347a /engines/parallaction/graphics.h
parentde09845319f43f6bad3582af5d570de43c7f9632 (diff)
downloadscummvm-rg350-59e672ef40e4c227c27022ec764f8b811b375220.tar.gz
scummvm-rg350-59e672ef40e4c227c27022ec764f8b811b375220.tar.bz2
scummvm-rg350-59e672ef40e4c227c27022ec764f8b811b375220.zip
Changed balloons to use GfxObj as well. Next step is to integrate balloons for BRA.
svn-id: r32883
Diffstat (limited to 'engines/parallaction/graphics.h')
-rw-r--r--engines/parallaction/graphics.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/engines/parallaction/graphics.h b/engines/parallaction/graphics.h
index df4cab4caf..b15da432d9 100644
--- a/engines/parallaction/graphics.h
+++ b/engines/parallaction/graphics.h
@@ -344,7 +344,8 @@ enum {
kGfxObjTypeDoor = 0,
kGfxObjTypeGet = 1,
kGfxObjTypeAnim = 2,
- kGfxObjTypeLabel = 3
+ kGfxObjTypeLabel = 3,
+ kGfxObjTypeBalloon = 4
};
enum {
@@ -484,6 +485,7 @@ public:
void setBalloonText(uint id, char *text, byte textColor);
int hitTestDialogueBalloon(int x, int y);
void getStringExtent(Font *font, char *text, uint16 maxwidth, int16* width, int16* height);
+ GfxObj* registerBalloon(Frames *frames, const char *text);
// other items
int setItem(GfxObj* obj, uint16 x, uint16 y, byte transparentColor = 0);
@@ -552,13 +554,11 @@ public:
static int16 _dialogueBalloonX[5];
struct Balloon {
- uint16 x;
- uint16 y;
Common::Rect outerBox;
Common::Rect innerBox;
- uint16 winding;
- Graphics::Surface surface;
- } _balloons[5];
+ Graphics::Surface *surface;
+ GfxObj *obj;
+ } _intBalloons[5];
uint _numBalloons;
@@ -573,6 +573,7 @@ public:
typedef Common::Array<GfxObj*> GfxObjArray;
GfxObjArray _labels;
+ GfxObjArray _balloons;
uint _floatingLabel;