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
30namespace TsAGE {
31
32namespace BlueForce {
33
34using namespace TsAGE;
35
37private:
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;
47public:
49 ~RightClickDialog() override;
50
51 void draw() override;
52 bool process(Event &event) override;
53 void execute();
54};
55
56class AmmoBeltDialog : public GfxDialog {
57private:
58 GfxSurface _surface;
59 Visage _cursorImages;
60 Rect _dialogRect, _loadedRect, _gunRect, _clip1Rect, _clip2Rect;
61 CursorType _cursorNum;
62 int _inDialog;
63 bool _closeFlag;
64public:
66 ~AmmoBeltDialog() override;
67
68 void draw() override;
69 bool process(Event &event) override;
70 void execute();
71};
72
73class RadioConvDialog : public GfxDialog {
74private:
75 GfxButton _buttons[8];
76public:
78 ~RadioConvDialog() override;
79 int execute();
80
81 static int show();
82};
83
84class OptionsDialog: public GfxDialog {
85private:
86 GfxButton _btnSave, _btnRestore, _btnRestart;
87 GfxButton _btnQuit, _btnResume;
88 GfxButton _btnSound;
89 GfxMessage _gfxMessage;
90public:
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: blueforce_dialogs.h:84
Definition: blueforce_dialogs.h:73
Definition: blueforce_dialogs.h:36
Definition: events.h:47
Definition: graphics.h:237
Definition: graphics.h:318
Definition: graphics.h:222
Definition: graphics.h:79
Definition: graphics.h:40
Definition: core.h:472