ScummVM API documentation
ringworld2_dialogs.h
1 /* ScummVM - Graphic Adventure Engine
2  *
3  * ScummVM is the legal property of its developers, whose names
4  * are too numerous to list here. Please refer to the COPYRIGHT
5  * file distributed with this source distribution.
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 
22 #ifndef TSAGE_RINGWORLD2_DIALOGS_H
23 #define TSAGE_RINGWORLD2_DIALOGS_H
24 
25 #include "tsage/core.h"
26 #include "tsage/dialogs.h"
27 #include "tsage/events.h"
28 #include "tsage/graphics.h"
29 #include "common/list.h"
30 #include "common/rect.h"
31 #include "common/system.h"
32 
33 namespace TsAGE {
34 
35 namespace Ringworld2 {
36 
37 using namespace TsAGE;
38 
39 class RightClickDialog : public GfxDialog {
40 private:
41  GfxSurface _surface;
42  Visage _btnImages;
43  Common::Point _btnList[6];
44 
45  Rect _rectList1[5];
46  Rect _rectList2[5];
47  Rect _rectList3[5];
48  Rect _rectList4[5];
49 
50  int _highlightedAction;
51  int _selectedAction;
52  CursorType _previousCursor;
53 public:
55  ~RightClickDialog() override;
56 
57  void draw() override;
58  bool process(Event &event) override;
59  int execute();
60 };
61 
62 class CharacterDialog: public GfxDialog {
63 private:
64  GfxMessage _msgTitle;
65  GfxButton _btnQuinn, _btnMiranda, _btnSeeker;
66  GfxButton _btnCancel;
67 public:
69  ~CharacterDialog() override {}
70 
71  static void show();
72 };
73 
74 class HelpDialog: public GfxDialog {
75 private:
76  GfxMessage _msgTitle, _msgVersion;
77  GfxButton _btnList[7];
78  GfxMessage _btnDescription[7];
79  GfxButton _btnResume;
80 public:
81  HelpDialog();
82  ~HelpDialog() override {}
83 
84  static void show();
85 
86  bool handleKeypress(Event &event, GfxButton *&btn) override;
87 };
88 
89 } // End of namespace Ringworld2
90 
91 } // End of namespace TsAGE
92 
93 #endif
Definition: ringworld2_dialogs.h:62
Definition: graphics.h:318
Definition: ringworld2_dialogs.h:39
Definition: core.h:472
Definition: graphics.h:79
Definition: rect.h:45
Definition: events.h:47
Definition: blueforce_dialogs.h:30
Definition: graphics.h:237
Definition: graphics.h:222
Definition: graphics.h:40
Definition: ringworld2_dialogs.h:74