ScummVM API documentation
mainmenu.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 STARK_UI_MENU_MAIN_MENU_H
23
#define STARK_UI_MENU_MAIN_MENU_H
24
25
#include "engines/stark/ui/menu/locationscreen.h"
26
27
namespace
Stark
{
28
32
class
MainMenuScreen
:
public
StaticLocationScreen
{
33
public
:
34
MainMenuScreen
(
Gfx::Driver
*gfx,
Cursor
*cursor);
35
virtual
~
MainMenuScreen
();
36
37
// StaticLocationScreen API
38
void
open
()
override
;
39
40
private
:
41
enum
HelpTextIndex {
42
kNewGame = 7,
43
kContinue = 8,
44
kOption = 6,
45
kBox = 9,
46
kQuit = 10,
47
kCredits = 12
48
};
49
50
template
<HelpTextIndex N>
51
void
helpTextHandler(
StaticLocationWidget
&widget,
const
Common::Point
&mousePos);
52
53
void
newGameHandler();
54
void
loadHandler();
55
void
creditsHandler();
56
void
settingsHandler();
57
void
boxHandler();
58
void
quitHandler();
59
};
60
64
class
VersionInfoText
:
public
StaticLocationWidget
{
65
public
:
66
VersionInfoText
();
67
virtual
~
VersionInfoText
() {}
68
69
private
:
70
static
const
char
_copyrightSymbol = char(0xA9);
71
static
const
int
_posX = 16, _posY = 419;
72
};
73
74
}
// End of namespace Stark
75
76
#endif // STARK_UI_MENU_MAIN_MENU_H
Stark::VersionInfoText
Definition:
mainmenu.h:64
Stark::StaticLocationWidget
Definition:
locationscreen.h:92
Stark::MainMenuScreen
Definition:
mainmenu.h:32
Stark::Gfx::Driver
Definition:
driver.h:44
Stark::Cursor
Definition:
cursor.h:45
Stark::StaticLocationScreen
Definition:
locationscreen.h:46
Stark
Definition:
console.h:27
Common::Point
Definition:
rect.h:45
Stark::MainMenuScreen::open
void open() override
engines
stark
ui
menu
mainmenu.h
Generated on Fri Nov 22 2024 09:13:29 for ScummVM API documentation by
1.8.13