diff options
author | Eugene Sandulenko | 2005-01-10 22:51:01 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2005-01-10 22:51:01 +0000 |
commit | df7f9eb18299b9c68c3f5ec260ede991f5724dd9 (patch) | |
tree | 1d54271ea1782530f2b68910bd96c3a638f32d5e /saga/interface.h | |
parent | f030081647882ae537ffe6493f0b7764ce655245 (diff) | |
download | scummvm-rg350-df7f9eb18299b9c68c3f5ec260ede991f5724dd9.tar.gz scummvm-rg350-df7f9eb18299b9c68c3f5ec260ede991f5724dd9.tar.bz2 scummvm-rg350-df7f9eb18299b9c68c3f5ec260ede991f5724dd9.zip |
Untested converse. Drawing isn't possible due to lack of needed information
in ITE_interface structure.
svn-id: r16533
Diffstat (limited to 'saga/interface.h')
-rw-r--r-- | saga/interface.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/saga/interface.h b/saga/interface.h index b3edf44957..67a1931af5 100644 --- a/saga/interface.h +++ b/saga/interface.h @@ -101,6 +101,12 @@ enum INTERFACE_UPDATE_FLAGS { #define IHNM_INVENTORY_XSPACING 0 #define IHNM_INVENTORY_YSPACING 0 +// Converse-specific stuff +#define CONVERSE_MAX_TEXTS 64 +#define CONVERSE_MAX_TEXT_WIDTH (256 - 60) +#define CONVERSE_TEXT_HEIGHT 10 +#define CONVERSE_TEXT_LINES 4 + enum PANEL_MODES { kPanelNull, kPanelMain, @@ -201,6 +207,15 @@ struct VERB_DATA { int s_verb; }; +struct Converse { + char *text; + int stringNum; + int textNum; + int replyId; + int replyFlags; + int replyBit; +}; + class Interface { public: Interface(SagaEngine *vm); @@ -237,6 +252,18 @@ private: int handlePlayfieldClick(SURFACE *ds, const Point& imousePt); void drawVerb(int verb, int state); +public: + void converseClear(void); + bool converseAddText(const char *text, int replyId, byte replyFlags, int replyBit); + void converseDisplayText(int pos); + void converseSetTextLines(int row, int textcolor, bool btnDown); + void converseChangePos(int chg); + void converseSetPos(void); + +private: + void converseDisplayTextLine(int textcolor, bool btnUp, bool rebuild); + + private: SagaEngine *_vm; @@ -261,6 +288,13 @@ private: uint16 *_inventory; int _inventorySize; byte _inventoryCount; + + Converse _converseText[CONVERSE_MAX_TEXTS]; + int _converseTextCount; + int _converseStrCount; + int _converseStartPos; + int _converseEndPos; + int _conversePos; }; } // End of namespace Saga |