ScummVM API documentation
main_menu.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 TETRAEDGE_GAME_MAIN_MENU_H
23 #define TETRAEDGE_GAME_MAIN_MENU_H
24 
25 #include "common/str.h"
26 #include "tetraedge/game/confirm.h"
27 #include "tetraedge/te/te_signal.h"
28 
29 namespace Tetraedge {
30 
31 class MainMenu : public TeLuaGUI {
32 public:
33  MainMenu();
34 
35  void enter() override;
36  void leave() override;
37 
38  bool deleteFile(const Common::String &name);
39  bool onActivedTuto();
40  bool onBFGFreeGamesButtonValidated() { return false; }
41  bool onBFGRateIt2ButtonValidated();
42  bool onBFGRateItButtonValidated();
43  bool onBFGRateItQuitButtonValidated();
44  bool onBFGSplashButtonUpdated() { return false; }
45  bool onBFGSplashButtonValidated() { return false; }
46  bool onBFGTellAFriendButtonValidated() { return false; }
47  bool onBFGUnlockGameButtonValidated();
48  bool onContinueGameButtonValidated();
49  bool onDisabledTuto();
50  bool onEnterGameRotateAnimFinished();
51  bool onFacebookButtonValidated() { return false; }
52  bool onFacebookLogged() { return false; }
53  bool onGalleryButtonValidated();
54  bool onHowToButtonValidated();
55  bool onLoadGameButtonValidated();
56  bool onNewGameButtonValidated();
57  bool onNewGameConfirmed();
58  bool onOptionsButtonValidated();
59  bool onQuit();
60  bool onQuitButtonValidated();
61  bool onUnlockGameButtonValidated();
62  bool onWalkThroughButtonValidated() { return false; };
63 
64  void refresh();
65  void setCenterButtonsVisibility(bool visible);
66  bool isEntered() const { return _entered; }
67 
68 private:
69 
70  void tryDisableButton(const Common::String &btnName);
71 
72  Confirm _newGameConfirm;
73  Confirm _tutoConfirm;
74  Confirm _quitConfirm;
75 
76  TeSignal0Param onFacebookLoggedSignal;
77 
78  bool _entered;
79  bool _confirmingTuto;
80 
81 };
82 
83 } // end namespace Tetraedge
84 
85 #endif // TETRAEDGE_GAME_MAIN_MENU_H
Definition: te_signal.h:40
Definition: str.h:59
Definition: detection.h:27
Definition: te_lua_gui.h:51
Definition: confirm.h:32
Definition: main_menu.h:31