diff options
Diffstat (limited to 'engines/access/bubble_box.h')
-rw-r--r-- | engines/access/bubble_box.h | 34 |
1 files changed, 31 insertions, 3 deletions
diff --git a/engines/access/bubble_box.h b/engines/access/bubble_box.h index 0b3f139520..6bf752d1a3 100644 --- a/engines/access/bubble_box.h +++ b/engines/access/bubble_box.h @@ -36,23 +36,46 @@ namespace Access { class AccessEngine; -enum BoxType { TYPE_2 = 2, TYPE_4 = 4 }; +enum BoxType { TYPE_0 = 0, TYPE_1 = 1, TYPE_2 = 2, TYPE_3 = 3, TYPE_4 = 4 }; class BubbleBox : public Manager { private: int _startItem, _startBox; int _charCol, _rowOff; Common::Point _fileStart; + Common::Point _fileOff; + int BOXSTARTX, BOXSTARTY; + int BOXENDX, BOXENDY; + int BICONSTARTX, BICONSTARTY; + int BOXPSTARTX, BOXPSTARTY; + + void displayBoxData(); + void drawSelectBox(); + /** + * Prints a text bubble and it's contents + */ + void printBubble_v1(const Common::String &msg); + void printBubble_v2(const Common::String &msg); + public: BoxType _type; Common::Rect _bounds; Common::StringArray _nameIndex; Common::String _bubbleTitle; Common::String _bubbleDisplStr; - + Common::String _tempList[60]; + int _tempListIdx[60]; + int _btnId1; + int _btnX1; + int _btnId2; + int _btnX2; + int _btnId3; + int _btnX3; + Common::Rect _btnUpPos; + Common::Rect _btnDownPos; Common::Array<Common::Rect> _bubbles; public: - BubbleBox(AccessEngine *vm); + BubbleBox(AccessEngine *vm, Access::BoxType type, int x, int y, int w, int h, int val1, int val2, int val3, int val4, Common::String title); void load(Common::SeekableReadStream *stream); @@ -78,6 +101,11 @@ public: void drawBubble(int index); void doBox(int item, int box); + + int doBox_v1(int item, int box, int &btnSelected); + void getList(const char *const data[], int *flags); + void SETCURSORPOS(int posX, int posY); + void PRINTSTR(Common::String msg); }; } // End of namespace Access |