ScummVM API documentation
gui_hof.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 KYRA_GUI_HOF_H
23 #define KYRA_GUI_HOF_H
24 
25 #include "kyra/gui/gui_v2.h"
26 
27 namespace Kyra {
28 
29 class KyraEngine_HoF;
30 class Screen_HoF;
31 
32 class GUI_HoF : public GUI_v2 {
33 friend class KyraEngine_HoF;
34 public:
35  GUI_HoF(KyraEngine_HoF *engine);
36 
37  void initStaticData() override;
38 
39  int optionsButton(Button *button);
40 
41  void createScreenThumbnail(Graphics::Surface &dst) override;
42 private:
43  Common::String getMenuTitle(const Menu &menu) override;
44  Common::String getMenuItemTitle(const MenuItem &menuItem) override;
45  Common::String getMenuItemLabel(const MenuItem &menuItem) override;
46 
47  uint8 defaultColor1() const override { return 0xCF; }
48  uint8 defaultColor2() const override { return 0xF8; }
49  uint8 menuItemLabelColor() const override { return 0xFC; }
50 
51  uint8 textFieldColor1() const override { return 0xFD; }
52  uint8 textFieldColor2() const override { return 0xFA; }
53  uint8 textFieldColor3() const override { return 0xFE; }
54 
55  void setupPalette() override;
56  void restorePalette() override;
57 
58  void resetState(int item);
59 
60  Common::String getTableString(int id, bool decode) override;
61 
62  KyraEngine_HoF *_vm;
63  Screen_HoF *_screen;
64 
65  int quitGame(Button *caller);
66  int loadMenu(Button *caller);
67  int audioOptions(Button *caller);
68  int gameOptions(Button *caller);
69  int gameOptionsTalkie(Button *caller);
70 
71  int changeLanguage(Button *caller);
72 
73  void setupOptionsButtons() override;
74 
75  int sliderHandler(Button *caller) override;
76  void drawSliderBar(int slider, const uint8 *shape);
77 
78  static const uint16 _menuStringsTalkie[];
79  static const uint16 _menuStringsOther[];
80 
81  static const char *const _saveLoadStringsZH[2];
82 };
83 
84 } // End of namespace Kyra
85 
86 #endif
Definition: str.h:59
Definition: surface.h:66
Definition: gui_hof.h:32
Definition: gui_v1.h:57
Definition: gui_v1.h:29
Definition: screen_hof.h:31
Definition: kyra_hof.h:44
Definition: gui_v2.h:102
Definition: detection.h:27
Definition: gui.h:38