aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/kyra_v2.h
diff options
context:
space:
mode:
authorJohannes Schickel2008-03-28 16:15:00 +0000
committerJohannes Schickel2008-03-28 16:15:00 +0000
commit7605a9a5174ac5570cc29f92f4b467ab1b350b44 (patch)
tree62f34494f5d858a8348081c7929e12093295a1d7 /engines/kyra/kyra_v2.h
parent4ac08aa32ac251c885d2cb81f19ce25538c3fd9f (diff)
downloadscummvm-rg350-7605a9a5174ac5570cc29f92f4b467ab1b350b44.tar.gz
scummvm-rg350-7605a9a5174ac5570cc29f92f4b467ab1b350b44.tar.bz2
scummvm-rg350-7605a9a5174ac5570cc29f92f4b467ab1b350b44.zip
Changed HoF GUI code to use common GUI code now.
svn-id: r31295
Diffstat (limited to 'engines/kyra/kyra_v2.h')
-rw-r--r--engines/kyra/kyra_v2.h47
1 files changed, 6 insertions, 41 deletions
diff --git a/engines/kyra/kyra_v2.h b/engines/kyra/kyra_v2.h
index 4befc53f9a..3eaf06d67a 100644
--- a/engines/kyra/kyra_v2.h
+++ b/engines/kyra/kyra_v2.h
@@ -29,6 +29,7 @@
#include "kyra/kyra.h"
#include "kyra/script.h"
#include "kyra/screen_v2.h"
+#include "kyra/gui_v2.h"
#include "common/list.h"
@@ -161,6 +162,7 @@ struct NestedSequence {
class KyraEngine_v2 : public KyraEngine {
friend class Debugger_v2;
friend class TextDisplayer_v2;
+friend class GUI_v2;
public:
KyraEngine_v2(OSystem *system, const GameFlags &flags);
~KyraEngine_v2();
@@ -306,7 +308,6 @@ protected:
void dinoRide();
- struct Button;
int checkInput(Button *buttonList, bool mainLoop = false);
void removeInputTop();
void handleInput(int x, int y);
@@ -605,50 +606,14 @@ protected:
int _nextAnimItem;
// gui
+ GUI_v2 *_gui;
+
void loadButtonShapes();
uint8 *_buttonShapes[19];
- struct Button {
- Button *nextButton;
- uint16 index;
- uint16 unk6;
- uint16 unk8;
- byte data0Val1;
- byte data1Val1;
- byte data2Val1;
- // XXX
- uint16 flags;
- uint8 *shapePtr0;
- uint8 *shapePtr1;
- uint8 *shapePtr2;
- uint16 dimTableIndex;
- int16 x;
- int16 y;
- int16 width;
- int16 height;
- uint8 data0Val2;
- uint8 data0Val3;
- uint8 data1Val2;
- uint8 data1Val3;
- uint8 data2Val2;
- uint8 data2Val3;
- // XXX
- uint16 flags2;
- typedef int (KyraEngine_v2::*ButtonCallback)(KyraEngine_v2::Button*);
- ButtonCallback buttonCallback;
- // XXX
- };
-
- bool _buttonListChanged;
+ void initInventoryButtonList();
+ Button *_inventoryButtons;
Button *_buttonList;
- Button *_backUpButtonList;
- Button *_unknownButtonList;
-
- void initMainButtonList();
-
- void processButton(Button *button);
- Button *addButtonToList(Button *list, Button *newButton);
- int processButtonList(Button *button, uint16 inputFlag);
int scrollInventory(Button *button);
int buttonInventory(Button *button);