2004-04-12 21:40:49 +00:00
|
|
|
/* ScummVM - Scumm Interpreter
|
2005-01-01 16:20:17 +00:00
|
|
|
* Copyright (C) 2004-2005 The ScummVM project
|
2004-04-12 21:40:49 +00:00
|
|
|
*
|
|
|
|
* The ReInherit Engine is (C)2000-2003 by Daniel Balsom.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
*
|
|
|
|
* $Header$
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2004-05-01 09:37:24 +00:00
|
|
|
// Game interface module private header file
|
2004-04-12 21:40:49 +00:00
|
|
|
|
|
|
|
#ifndef SAGA_INTERFACE_H__
|
|
|
|
#define SAGA_INTERFACE_H__
|
|
|
|
|
2005-05-12 17:00:08 +00:00
|
|
|
#include "common/file.h"
|
2005-05-23 18:53:36 +00:00
|
|
|
#include "common/savefile.h"
|
2005-05-12 17:00:08 +00:00
|
|
|
|
2004-08-06 01:39:17 +00:00
|
|
|
#include "saga/sprite.h"
|
2004-08-12 23:57:45 +00:00
|
|
|
#include "saga/script.h"
|
2004-08-06 01:39:17 +00:00
|
|
|
|
2004-04-12 21:40:49 +00:00
|
|
|
namespace Saga {
|
|
|
|
|
2005-01-15 23:46:43 +00:00
|
|
|
enum InterfaceUpdateFlags {
|
2004-08-06 01:39:17 +00:00
|
|
|
UPDATE_MOUSEMOVE = 1,
|
2005-01-15 23:46:43 +00:00
|
|
|
UPDATE_LEFTBUTTONCLICK = 2,
|
|
|
|
UPDATE_RIGHTBUTTONCLICK = 4,
|
2005-06-19 23:41:40 +00:00
|
|
|
UPDATE_MOUSECLICK = UPDATE_LEFTBUTTONCLICK | UPDATE_RIGHTBUTTONCLICK,
|
|
|
|
UPDATE_WHEELUP = 8,
|
|
|
|
UPDATE_WHEELDOWN = 16
|
2004-08-22 18:28:42 +00:00
|
|
|
};
|
2004-08-06 01:39:17 +00:00
|
|
|
|
2004-11-07 14:15:41 +00:00
|
|
|
#define ITE_INVENTORY_SIZE 24
|
|
|
|
|
2004-10-27 21:32:28 +00:00
|
|
|
#define VERB_STRLIMIT 32
|
2004-04-12 21:40:49 +00:00
|
|
|
|
2004-10-27 21:32:28 +00:00
|
|
|
#define STATUS_TEXT_LEN 128
|
2005-06-19 14:06:20 +00:00
|
|
|
#define STATUS_TEXT_INPUT_MAX 256
|
2004-04-12 21:40:49 +00:00
|
|
|
|
2005-01-10 22:51:01 +00:00
|
|
|
// 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
|
2005-04-18 20:03:14 +00:00
|
|
|
#define CONVERSE_MAX_WORK_STRING 128
|
2005-01-10 22:51:01 +00:00
|
|
|
|
2005-01-13 22:42:49 +00:00
|
|
|
enum PanelModes {
|
2005-01-02 20:29:27 +00:00
|
|
|
kPanelNull,
|
|
|
|
kPanelMain,
|
|
|
|
kPanelOption,
|
2005-05-29 15:39:35 +00:00
|
|
|
kPanelSave, //ex- kPanelTextBox,
|
2005-01-02 20:29:27 +00:00
|
|
|
kPanelQuit,
|
|
|
|
kPanelError,
|
|
|
|
kPanelLoad,
|
|
|
|
kPanelConverse,
|
|
|
|
kPanelProtect,
|
|
|
|
kPanelPlacard,
|
2005-06-04 15:50:23 +00:00
|
|
|
kPanelMap
|
|
|
|
// kPanelInventory
|
2005-06-04 15:02:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
enum FadeModes {
|
|
|
|
kNoFade = 0,
|
|
|
|
kFadeIn,
|
|
|
|
kFadeOut
|
2004-08-22 18:28:42 +00:00
|
|
|
};
|
2004-04-12 21:40:49 +00:00
|
|
|
|
2005-01-09 23:41:22 +00:00
|
|
|
struct InterfacePanel {
|
2004-04-12 21:40:49 +00:00
|
|
|
int x;
|
|
|
|
int y;
|
2005-01-13 22:42:49 +00:00
|
|
|
byte *image;
|
|
|
|
size_t imageLength;
|
|
|
|
int imageWidth;
|
|
|
|
int imageHeight;
|
|
|
|
|
|
|
|
PanelButton *currentButton;
|
|
|
|
int buttonsCount;
|
|
|
|
PanelButton *buttons;
|
2005-01-09 15:07:49 +00:00
|
|
|
SpriteList sprites;
|
2005-04-18 20:03:14 +00:00
|
|
|
|
2005-05-29 15:39:35 +00:00
|
|
|
InterfacePanel() {
|
|
|
|
x = y = 0;
|
|
|
|
image = NULL;
|
|
|
|
imageLength = 0;
|
|
|
|
imageWidth = imageHeight = 0;
|
|
|
|
currentButton = NULL;
|
|
|
|
buttonsCount = 0;
|
|
|
|
buttons = NULL;
|
|
|
|
}
|
|
|
|
|
2005-04-22 14:11:04 +00:00
|
|
|
PanelButton *getButton(int index) {
|
|
|
|
if ((index >= 0) && (index < buttonsCount)) {
|
|
|
|
return &buttons[index];
|
|
|
|
}
|
|
|
|
return NULL;
|
|
|
|
}
|
2005-05-29 15:39:35 +00:00
|
|
|
|
|
|
|
void getRect(Rect &rect) {
|
|
|
|
rect.left = x;
|
|
|
|
rect.right = rect.left + imageWidth;
|
|
|
|
rect.top = y;
|
|
|
|
rect.bottom = rect.top + imageHeight;
|
|
|
|
}
|
|
|
|
|
2005-04-18 20:03:14 +00:00
|
|
|
void calcPanelButtonRect(const PanelButton* panelButton, Rect &rect) {
|
|
|
|
rect.left = x + panelButton->xOffset;
|
|
|
|
rect.right = rect.left + panelButton->width;
|
|
|
|
rect.top = y + panelButton->yOffset;
|
|
|
|
rect.bottom = rect.top + panelButton->height;
|
|
|
|
}
|
2005-04-22 14:11:04 +00:00
|
|
|
|
|
|
|
PanelButton *hitTest(const Point& mousePoint, int buttonType) {
|
|
|
|
PanelButton *panelButton;
|
|
|
|
Rect rect;
|
|
|
|
int i;
|
|
|
|
for (i = 0; i < buttonsCount; i++) {
|
|
|
|
panelButton = &buttons[i];
|
|
|
|
if (panelButton != NULL) {
|
|
|
|
if ((panelButton->type & buttonType) > 0) {
|
|
|
|
calcPanelButtonRect(panelButton, rect);
|
|
|
|
if (rect.contains(mousePoint)) {
|
|
|
|
return panelButton;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
2005-05-29 15:39:35 +00:00
|
|
|
void zeroAllButtonState() {
|
|
|
|
int i;
|
|
|
|
for (i = 0; i < buttonsCount; i++) {
|
|
|
|
buttons[i].state = 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2004-04-25 14:42:14 +00:00
|
|
|
};
|
2004-04-12 21:40:49 +00:00
|
|
|
|
2005-01-10 22:51:01 +00:00
|
|
|
struct Converse {
|
|
|
|
char *text;
|
|
|
|
int stringNum;
|
|
|
|
int textNum;
|
|
|
|
int replyId;
|
|
|
|
int replyFlags;
|
|
|
|
int replyBit;
|
|
|
|
};
|
|
|
|
|
2005-01-19 11:29:29 +00:00
|
|
|
enum ITEColors {
|
2005-01-20 13:59:12 +00:00
|
|
|
kITEColorBrightWhite = 0x01,
|
|
|
|
kITEColorWhite = 0x02,
|
|
|
|
kITEColorLightGrey = 0x04,
|
|
|
|
kITEColorGrey = 0x0a,
|
|
|
|
kITEColorDarkGrey = 0x0b,
|
2005-05-28 11:06:55 +00:00
|
|
|
kITEColorDarkGrey0C = 0x0C,
|
2005-01-19 11:29:29 +00:00
|
|
|
kITEColorGreen = 0xba,
|
2005-01-20 13:59:12 +00:00
|
|
|
kITEColorBlack = 0x0f,
|
2005-01-27 20:07:04 +00:00
|
|
|
kITEColorRed = 0x65,
|
2005-05-28 11:06:55 +00:00
|
|
|
kITEColorDarkBlue8a = 0x8a,
|
|
|
|
kITEColorBlue89 = 0x89,
|
|
|
|
kITEColorLightBlue92 = 0x92,
|
|
|
|
kITEColorBlue = 0x93,
|
|
|
|
kITEColorLightBlue94 = 0x94,
|
|
|
|
kITEColorLightBlue96 = 0x96
|
2005-01-19 11:29:29 +00:00
|
|
|
};
|
|
|
|
|
2005-06-19 14:06:20 +00:00
|
|
|
enum StatusTextInputState {
|
|
|
|
kStatusTextInputFirstRun,
|
|
|
|
kStatusTextInputEntered,
|
|
|
|
kStatusTextInputAborted
|
|
|
|
};
|
2005-01-19 11:29:29 +00:00
|
|
|
|
2004-08-06 01:39:17 +00:00
|
|
|
class Interface {
|
2004-11-07 14:15:41 +00:00
|
|
|
public:
|
2005-02-26 17:37:16 +00:00
|
|
|
|
2004-08-06 01:39:17 +00:00
|
|
|
Interface(SagaEngine *vm);
|
|
|
|
~Interface(void);
|
|
|
|
|
|
|
|
int activate();
|
|
|
|
int deactivate();
|
2005-05-22 11:59:22 +00:00
|
|
|
void setSaveReminderState(int state) {
|
|
|
|
_saveReminderState = state;
|
|
|
|
draw();
|
|
|
|
}
|
2005-01-15 20:12:49 +00:00
|
|
|
bool isActive() { return _active; }
|
2005-06-04 15:02:17 +00:00
|
|
|
void setMode(int mode);
|
2005-01-13 22:42:49 +00:00
|
|
|
int getMode(void) const { return _panelMode; }
|
2005-06-04 15:02:17 +00:00
|
|
|
void setFadeMode(int fadeMode) {
|
|
|
|
_fadeMode = fadeMode;
|
|
|
|
draw();
|
|
|
|
}
|
|
|
|
int getFadeMode() const {
|
|
|
|
return _fadeMode;
|
|
|
|
}
|
2005-01-07 00:57:43 +00:00
|
|
|
void rememberMode();
|
|
|
|
void restoreMode();
|
2005-01-06 14:02:53 +00:00
|
|
|
bool isInMainMode() { return _inMainMode; }
|
2005-04-18 20:03:14 +00:00
|
|
|
void setStatusText(const char *text, int statusColor = -1);
|
2005-01-09 15:07:49 +00:00
|
|
|
int loadScenePortraits(int resourceId);
|
2005-05-22 11:59:22 +00:00
|
|
|
void setLeftPortrait(int portrait) {
|
|
|
|
_leftPortrait = portrait;
|
|
|
|
draw();
|
|
|
|
}
|
|
|
|
void setRightPortrait(int portrait) {
|
|
|
|
_rightPortrait = portrait;
|
|
|
|
draw();
|
|
|
|
}
|
|
|
|
void draw();
|
|
|
|
void drawOption();
|
2005-05-29 15:39:35 +00:00
|
|
|
void drawQuit();
|
|
|
|
void drawLoad();
|
|
|
|
void drawSave();
|
2005-05-22 11:59:22 +00:00
|
|
|
void update(const Point& mousePoint, int updateFlag);
|
2005-04-18 20:03:14 +00:00
|
|
|
void drawStatusBar();
|
2005-04-22 14:11:04 +00:00
|
|
|
void setVerbState(int verb, int state);
|
2004-08-06 01:39:17 +00:00
|
|
|
|
2005-05-28 11:06:55 +00:00
|
|
|
bool processAscii(uint16 ascii);
|
2005-05-29 20:57:45 +00:00
|
|
|
void processKeyUp(uint16 ascii);
|
|
|
|
|
2005-05-31 23:41:27 +00:00
|
|
|
bool _textInput;
|
2005-06-19 14:06:20 +00:00
|
|
|
|
|
|
|
bool _statusTextInput;
|
|
|
|
StatusTextInputState _statusTextInputState;
|
|
|
|
char _statusTextInputString[STATUS_TEXT_INPUT_MAX];
|
|
|
|
void enterStatusString() {
|
|
|
|
_statusTextInput = true;
|
|
|
|
_statusTextInputPos = 0;
|
|
|
|
_statusTextInputString[0] = 0;
|
|
|
|
setStatusText(_statusTextInputString);
|
|
|
|
}
|
2005-04-24 15:17:38 +00:00
|
|
|
private:
|
2005-05-29 20:57:45 +00:00
|
|
|
static void textInputRepeatCallback(void *refCon);
|
|
|
|
|
2005-04-24 15:17:38 +00:00
|
|
|
void drawInventory(SURFACE *backBuffer);
|
|
|
|
void updateInventory(int pos);
|
2005-04-22 14:11:04 +00:00
|
|
|
void inventoryChangePos(int chg);
|
|
|
|
void inventorySetPos(int key);
|
2005-04-24 15:17:38 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
void refreshInventory() {
|
|
|
|
updateInventory(_inventoryCount);
|
|
|
|
draw();
|
|
|
|
}
|
2005-05-12 15:11:32 +00:00
|
|
|
void addToInventory(int objectId);
|
2005-04-23 12:34:35 +00:00
|
|
|
void removeFromInventory(int objectId);
|
2005-04-21 01:30:07 +00:00
|
|
|
void clearInventory();
|
2005-04-23 12:34:35 +00:00
|
|
|
int inventoryItemPosition(int objectId);
|
2005-04-22 14:11:04 +00:00
|
|
|
int getInventoryContentByPanelButton(PanelButton * panelButton) {
|
|
|
|
int cell = _inventoryStart + panelButton->id;
|
|
|
|
if (cell >= _inventoryCount) {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
return _inventory[cell];
|
|
|
|
}
|
2005-01-13 22:42:49 +00:00
|
|
|
|
2005-04-22 14:11:04 +00:00
|
|
|
PanelButton *inventoryHitTest(const Point& mousePoint) {
|
|
|
|
return _mainPanel.hitTest(mousePoint, kPanelButtonInventory);
|
|
|
|
}
|
2005-05-22 11:59:22 +00:00
|
|
|
PanelButton *verbHitTest(const Point& mousePoint){
|
|
|
|
return _mainPanel.hitTest(mousePoint, kPanelButtonVerb);
|
|
|
|
}
|
2005-05-23 18:53:36 +00:00
|
|
|
void saveState(Common::OutSaveFile *out);
|
|
|
|
void loadState(Common::InSaveFile *in);
|
2005-05-31 23:41:27 +00:00
|
|
|
|
2004-11-07 14:15:41 +00:00
|
|
|
private:
|
2005-05-22 11:59:22 +00:00
|
|
|
void handleMainUpdate(const Point& mousePoint); // main panel update
|
|
|
|
void handleMainClick(const Point& mousePoint); // main panel click
|
|
|
|
|
2005-04-22 14:11:04 +00:00
|
|
|
PanelButton *converseHitTest(const Point& mousePoint) {
|
|
|
|
return _conversePanel.hitTest(mousePoint, kPanelAllButtons);
|
|
|
|
}
|
2005-05-22 11:59:22 +00:00
|
|
|
void handleConverseUpdate(const Point& mousePoint); // converse panel update
|
|
|
|
void handleConverseClick(const Point& mousePoint); // converse panel click
|
|
|
|
|
|
|
|
PanelButton *optionHitTest(const Point& mousePoint) {
|
2005-05-28 11:06:55 +00:00
|
|
|
return _optionPanel.hitTest(mousePoint, kPanelButtonOptionSaveFiles | kPanelButtonOption | kPanelButtonOptionSlider);
|
2005-05-22 11:59:22 +00:00
|
|
|
}
|
|
|
|
void handleOptionUpdate(const Point& mousePoint); // option panel update
|
|
|
|
void handleOptionClick(const Point& mousePoint); // option panel click
|
|
|
|
|
2005-05-29 15:39:35 +00:00
|
|
|
PanelButton *quitHitTest(const Point& mousePoint) {
|
|
|
|
return _quitPanel.hitTest(mousePoint, kPanelAllButtons);
|
|
|
|
}
|
|
|
|
void handleQuitUpdate(const Point& mousePoint); // quit panel update
|
|
|
|
void handleQuitClick(const Point& mousePoint); // quit panel click
|
|
|
|
|
|
|
|
PanelButton *loadHitTest(const Point& mousePoint) {
|
|
|
|
return _loadPanel.hitTest(mousePoint, kPanelAllButtons);
|
|
|
|
}
|
|
|
|
void handleLoadUpdate(const Point& mousePoint); // load panel update
|
|
|
|
void handleLoadClick(const Point& mousePoint); // load panel click
|
|
|
|
|
|
|
|
PanelButton *saveHitTest(const Point& mousePoint) {
|
|
|
|
return _savePanel.hitTest(mousePoint, kPanelAllButtons);
|
|
|
|
}
|
|
|
|
void handleSaveUpdate(const Point& mousePoint); // save panel update
|
|
|
|
void handleSaveClick(const Point& mousePoint); // save panel click
|
|
|
|
|
2005-01-15 20:12:49 +00:00
|
|
|
void lockMode() { _lockedMode = _panelMode; }
|
|
|
|
void unlockMode() { _panelMode = _lockedMode; }
|
|
|
|
|
2005-05-22 11:59:22 +00:00
|
|
|
void setOption(PanelButton *panelButton);
|
2005-05-29 15:39:35 +00:00
|
|
|
void setQuit(PanelButton *panelButton);
|
|
|
|
void setLoad(PanelButton *panelButton);
|
|
|
|
void setSave(PanelButton *panelButton);
|
|
|
|
|
|
|
|
void drawTextInput(SURFACE *ds, InterfacePanel *panel, PanelButton *panelButton);
|
|
|
|
void drawPanelText(SURFACE *ds, InterfacePanel *panel, PanelButton *panelButton);
|
|
|
|
void drawPanelButtonText(SURFACE *ds, InterfacePanel *panel, PanelButton *panelButton);
|
|
|
|
enum ButtonKind {
|
|
|
|
kButton,
|
|
|
|
kSlider,
|
|
|
|
kEdit
|
|
|
|
};
|
|
|
|
void drawButtonBox(SURFACE *ds, const Rect &rect, ButtonKind kind, bool down);
|
2005-04-18 20:03:14 +00:00
|
|
|
void drawPanelButtonArrow(SURFACE *ds, InterfacePanel *panel, PanelButton *panelButton);
|
2005-05-22 11:59:22 +00:00
|
|
|
void drawVerbPanelText(SURFACE *ds, PanelButton *panelButton, int textColor, int textShadowColor);
|
2005-04-22 14:11:04 +00:00
|
|
|
void drawVerbPanel(SURFACE *backBuffer, PanelButton* panelButton);
|
2005-05-28 11:06:55 +00:00
|
|
|
void calcOptionSaveSlider();
|
2005-05-29 15:39:35 +00:00
|
|
|
void processTextInput(uint16 ascii);
|
2005-06-19 14:06:20 +00:00
|
|
|
void processStatusTextInput(uint16 ascii);
|
2005-05-29 20:57:45 +00:00
|
|
|
void textInputStartRepeat(uint16 ascii);
|
|
|
|
void textInputRepeat(void);
|
|
|
|
|
2005-01-10 22:51:01 +00:00
|
|
|
public:
|
2005-01-18 10:45:36 +00:00
|
|
|
void converseInit(void);
|
2005-01-10 22:51:01 +00:00
|
|
|
void converseClear(void);
|
|
|
|
bool converseAddText(const char *text, int replyId, byte replyFlags, int replyBit);
|
2005-04-18 20:03:14 +00:00
|
|
|
void converseDisplayText();
|
|
|
|
void converseSetTextLines(int row);
|
2005-01-10 22:51:01 +00:00
|
|
|
void converseChangePos(int chg);
|
2005-01-17 20:17:06 +00:00
|
|
|
void converseSetPos(int key);
|
2005-01-10 22:51:01 +00:00
|
|
|
|
|
|
|
private:
|
2005-04-18 20:03:14 +00:00
|
|
|
void converseDisplayTextLines(SURFACE *ds);
|
2005-01-13 22:42:49 +00:00
|
|
|
PanelButton *getPanelButtonByVerbType(int verb) {
|
|
|
|
if ((verb < 0) || (verb >= kVerbTypesMax)) {
|
|
|
|
error("Interface::getPanelButtonByVerbType wrong verb");
|
|
|
|
}
|
|
|
|
return _verbTypeToPanelButton[verb];
|
|
|
|
}
|
2005-05-31 20:08:46 +00:00
|
|
|
|
|
|
|
void validateOptionButtons() {
|
|
|
|
if (!_vm->isSaveListFull() && (_optionSaveFileTitleNumber == 0) && (_optionPanel.currentButton != NULL)) {
|
|
|
|
if (_optionPanel.currentButton->id == kTextLoad) {
|
|
|
|
_optionPanel.currentButton = NULL;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
void validateSaveButtons() {
|
|
|
|
if ((_textInputStringLength == 0) && (_savePanel.currentButton != NULL)) {
|
|
|
|
if (_savePanel.currentButton->id == kTextSave) {
|
|
|
|
_savePanel.currentButton = NULL;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2004-11-07 14:15:41 +00:00
|
|
|
private:
|
2004-08-06 01:39:17 +00:00
|
|
|
SagaEngine *_vm;
|
|
|
|
|
|
|
|
bool _initialized;
|
2004-10-27 21:32:28 +00:00
|
|
|
RSCFILE_CONTEXT *_interfaceContext;
|
2005-01-13 22:42:49 +00:00
|
|
|
InterfacePanel _mainPanel;
|
2005-04-22 14:11:04 +00:00
|
|
|
PanelButton *_inventoryUpButton;
|
|
|
|
PanelButton *_inventoryDownButton;
|
2005-01-13 22:42:49 +00:00
|
|
|
InterfacePanel _conversePanel;
|
2005-04-22 14:11:04 +00:00
|
|
|
PanelButton *_converseUpButton;
|
|
|
|
PanelButton *_converseDownButton;
|
2005-01-13 22:42:49 +00:00
|
|
|
SpriteList _defPortraits;
|
|
|
|
SpriteList _scenePortraits;
|
|
|
|
PanelButton *_verbTypeToPanelButton[kVerbTypesMax];
|
2005-05-22 11:59:22 +00:00
|
|
|
InterfacePanel _optionPanel;
|
2005-05-28 11:06:55 +00:00
|
|
|
PanelButton * _optionSaveFileSlider;
|
|
|
|
PanelButton * _optionSaveFilePanel;
|
2005-05-29 15:39:35 +00:00
|
|
|
InterfacePanel _quitPanel;
|
|
|
|
InterfacePanel _loadPanel;
|
|
|
|
InterfacePanel _savePanel;
|
|
|
|
PanelButton * _saveEdit;
|
2005-01-13 22:42:49 +00:00
|
|
|
|
2005-05-22 11:59:22 +00:00
|
|
|
int _saveReminderState;
|
2005-01-13 22:42:49 +00:00
|
|
|
bool _active;
|
2005-06-04 15:02:17 +00:00
|
|
|
int _fadeMode;
|
2004-10-27 02:27:54 +00:00
|
|
|
int _panelMode;
|
2005-01-02 20:29:27 +00:00
|
|
|
int _savedMode;
|
2005-01-06 14:02:53 +00:00
|
|
|
int _lockedMode;
|
|
|
|
bool _inMainMode;
|
2004-10-27 21:32:28 +00:00
|
|
|
char _statusText[STATUS_TEXT_LEN];
|
2005-01-19 11:29:29 +00:00
|
|
|
int _statusOnceColor;
|
2004-10-21 06:49:11 +00:00
|
|
|
int _leftPortrait;
|
|
|
|
int _rightPortrait;
|
2005-01-13 22:42:49 +00:00
|
|
|
|
2005-01-15 20:12:49 +00:00
|
|
|
Point _lastMousePoint;
|
|
|
|
|
2004-11-07 14:15:41 +00:00
|
|
|
uint16 *_inventory;
|
|
|
|
int _inventorySize;
|
2005-04-22 14:11:04 +00:00
|
|
|
int _inventoryStart;
|
|
|
|
int _inventoryEnd;
|
|
|
|
int _inventoryPos;
|
|
|
|
int _inventoryBox;
|
|
|
|
int _inventoryCount;
|
2005-01-10 22:51:01 +00:00
|
|
|
|
2005-04-18 20:03:14 +00:00
|
|
|
char _converseWorkString[CONVERSE_MAX_WORK_STRING];
|
2005-01-10 22:51:01 +00:00
|
|
|
Converse _converseText[CONVERSE_MAX_TEXTS];
|
|
|
|
int _converseTextCount;
|
|
|
|
int _converseStrCount;
|
|
|
|
int _converseStartPos;
|
|
|
|
int _converseEndPos;
|
|
|
|
int _conversePos;
|
2005-05-28 11:06:55 +00:00
|
|
|
|
|
|
|
uint _optionSaveFileTop;
|
|
|
|
uint _optionSaveFileTitleNumber;
|
|
|
|
int16 _optionSaveFileMouseOff;
|
|
|
|
Rect _optionSaveRectTop;
|
|
|
|
Rect _optionSaveRectSlider;
|
|
|
|
Rect _optionSaveRectBottom;
|
2005-05-29 15:39:35 +00:00
|
|
|
|
|
|
|
char _textInputString[SAVE_TITLE_SIZE];
|
|
|
|
uint _textInputStringLength;
|
|
|
|
uint _textInputPos;
|
|
|
|
uint _textInputMaxWidth;
|
2005-05-29 20:57:45 +00:00
|
|
|
|
2005-06-19 14:06:20 +00:00
|
|
|
uint _statusTextInputPos;
|
|
|
|
|
2005-05-29 20:57:45 +00:00
|
|
|
int _textInputRepeatPhase;
|
|
|
|
uint16 _textInputRepeatChar;
|
2004-08-06 01:39:17 +00:00
|
|
|
};
|
2004-04-12 21:40:49 +00:00
|
|
|
|
|
|
|
} // End of namespace Saga
|
|
|
|
|
2004-10-27 21:32:28 +00:00
|
|
|
#endif /* INTERFACE_H__ */
|