ScummVM API documentation
acknowledgements.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 ULTIMA0_VIEWS_ACKNOWLEDGEMENTS_H
23 #define ULTIMA0_VIEWS_ACKNOWLEDGEMENTS_H
24 
25 #include "common/queue.h"
26 #include "ultima/ultima0/views/view.h"
27 
28 namespace Ultima {
29 namespace Ultima0 {
30 namespace Views {
31 
32 class Acknowledgements : public View {
33 private:
35  Gfx::GfxSurface _pendingLine;
36  int _ctr = 0;
37 
38  void showTitle() {
39  replaceView("Title");
40  }
41 public:
42  Acknowledgements() : View("Acknowledgements") {}
43  ~Acknowledgements() override {}
44 
45  bool msgFocus(const FocusMessage &msg) override;
46  void draw() override;
47  bool tick() override;
48  bool msgKeypress(const KeypressMessage &msg) override {
49  showTitle();
50  return true;
51  }
52  bool msgMouseDown(const MouseDownMessage &msg) override {
53  showTitle();
54  return true;
55  }
56  bool msgAction(const ActionMessage &msg) override {
57  showTitle();
58  return true;
59  }
60 };
61 
62 } // namespace Views
63 } // namespace Ultima0
64 } // namespace Ultima
65 
66 #endif
Definition: acknowledgements.h:32
Definition: messages.h:37
Definition: detection.h:27
Definition: messages.h:122
Definition: messages.h:72
void replaceView(UIElement *ui, bool replaceAllViews=false)
Definition: view.h:42
Definition: gfx_surface.h:33
Definition: messages.h:50