ScummVM API documentation
blueforce_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_BLUEFORCE_DIALOGS_H
23 #define TSAGE_BLUEFORCE_DIALOGS_H
24 
25 #include "tsage/core.h"
26 #include "tsage/dialogs.h"
27 #include "tsage/events.h"
28 #include "tsage/graphics.h"
29 
30 namespace TsAGE {
31 
32 namespace BlueForce {
33 
34 using namespace TsAGE;
35 
36 class RightClickDialog : public GfxDialog {
37 private:
38  GfxSurface _surface;
39  Visage _btnImages;
40  Rect _rectList1[5];
41  Rect _rectList2[5];
42  Rect _rectList3[5];
43  Rect _rectList4[5];
44 
45  int _highlightedAction;
46  int _selectedAction;
47 public:
49  ~RightClickDialog() override;
50 
51  void draw() override;
52  bool process(Event &event) override;
53  void execute();
54 };
55 
56 class AmmoBeltDialog : public GfxDialog {
57 private:
58  GfxSurface _surface;
59  Visage _cursorImages;
60  Rect _dialogRect, _loadedRect, _gunRect, _clip1Rect, _clip2Rect;
61  CursorType _cursorNum;
62  int _inDialog;
63  bool _closeFlag;
64 public:
66  ~AmmoBeltDialog() override;
67 
68  void draw() override;
69  bool process(Event &event) override;
70  void execute();
71 };
72 
73 class RadioConvDialog : public GfxDialog {
74 private:
75  GfxButton _buttons[8];
76 public:
78  ~RadioConvDialog() override;
79  int execute();
80 
81  static int show();
82 };
83 
84 class OptionsDialog: public GfxDialog {
85 private:
86  GfxButton _btnSave, _btnRestore, _btnRestart;
87  GfxButton _btnQuit, _btnResume;
88  GfxButton _btnSound;
89  GfxMessage _gfxMessage;
90 public:
91  OptionsDialog();
92  ~OptionsDialog() override {}
93 
94  static void show();
95 };
96 
97 
98 } // End of namespace BlueForce
99 
100 } // End of namespace TsAGE
101 
102 #endif
Definition: blueforce_dialogs.h:56
Definition: graphics.h:318
Definition: blueforce_dialogs.h:36
Definition: blueforce_dialogs.h:84
Definition: core.h:472
Definition: graphics.h:79
Definition: events.h:47
Definition: blueforce_dialogs.h:30
Definition: graphics.h:237
Definition: graphics.h:222
Definition: blueforce_dialogs.h:73
Definition: graphics.h:40