xoreos
0.0.5
src
engines
kotor
gui
ingame
menu.h
Go to the documentation of this file.
1
/* xoreos - A reimplementation of BioWare's Aurora engine
2
*
3
* xoreos is the legal property of its developers, whose names
4
* can be found in the AUTHORS file distributed with this source
5
* distribution.
6
*
7
* xoreos is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU General Public License
9
* as published by the Free Software Foundation; either version 3
10
* of the License, or (at your option) any later version.
11
*
12
* xoreos 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 xoreos. If not, see <http://www.gnu.org/licenses/>.
19
*/
20
25
#ifndef ENGINES_KOTOR_GUI_INGAME_MENU_H
26
#define ENGINES_KOTOR_GUI_INGAME_MENU_H
27
28
#include "
src/engines/aurora/console.h
"
29
30
#include "
src/engines/kotor/gui/gui.h
"
31
#include "
src/engines/kotor/gui/saveload.h
"
32
#include "
src/engines/aurora/kotorjadegui/protoitem.h
"
33
34
#include "
src/engines/kotor/gui/ingame/menu_equ.h
"
35
#include "
src/engines/kotor/gui/ingame/menu_inv.h
"
36
#include "
src/engines/kotor/gui/ingame/menu_char.h
"
37
#include "
src/engines/kotor/gui/ingame/menu_abi.h
"
38
#include "
src/engines/kotor/gui/ingame/menu_msg.h
"
39
#include "
src/engines/kotor/gui/ingame/menu_jou.h
"
40
#include "
src/engines/kotor/gui/ingame/menu_map.h
"
41
#include "
src/engines/kotor/gui/ingame/menu_opt.h
"
42
43
namespace
Engines
{
44
45
namespace
KotOR {
46
47
class
Menu
:
public
GUI
{
48
public
:
49
Menu
(
Module
&module, ::
Engines::Console
*console = 0);
50
52
void
setReturnStrref
(
uint32
);
54
void
setReturnQueryStrref
(
uint32
);
56
void
setReturnEnabled
(
bool
);
57
58
void
showMenu
(
const
Common::UString
&tag);
59
60
private
:
61
enum
MenuType
{
62
kMenuTypeEquipment
,
63
kMenuTypeInventory
,
64
kMenuTypeCharacter
,
65
kMenuTypeAbilities
,
66
kMenuTypeMessages
,
67
kMenuTypeJournal
,
68
kMenuTypeMap
,
69
kMenuTypeOptions
,
70
71
kMenuTypeMAX
72
};
73
74
struct
SubMenu
{
75
WidgetProtoItem
*
protoItem
;
76
WidgetButton
*
button
;
77
78
Common::ScopedPtr<GUI>
menu
;
79
80
SubMenu
() :
protoItem
(0),
button
(0) { }
81
};
82
83
void
callbackRun
();
84
void
callbackActive
(
Widget
&widget);
85
86
Module
&
_module
;
87
88
SubMenu
_menu
[
kMenuTypeMAX
];
89
SubMenu
*
_currentMenu
;
90
91
Common::ScopedPtr<SaveLoadMenu>
_menuLoad
;
92
Common::ScopedPtr<SaveLoadMenu>
_menuSave
;
93
94
95
void
showMenu
(
MenuType
type);
96
};
97
98
}
// End of namespace KotOR
99
100
}
// End of namespace Engines
101
102
#endif // ENGINES_KOTOR_GUI_INGAME_MENU_H
menu_msg.h
The ingame messages menu.
Engines::KotOR::Module
Definition:
module.h:60
Engines::KotOR::Menu::showMenu
void showMenu(const Common::UString &tag)
Definition:
menu.cpp:135
Common::UString
A class holding an UTF-8 string.
Definition:
ustring.h:48
Engines::KotOR::Menu::kMenuTypeCharacter
Definition:
menu.h:64
Engines::KotOR::Menu::callbackRun
void callbackRun()
Callback that's triggered periodically in the run() method.
Definition:
menu.cpp:112
Engines::KotOR::Menu
Definition:
menu.h:47
Engines::KotOR::Menu::kMenuTypeMessages
Definition:
menu.h:66
Engines::KotOR::Menu::kMenuTypeInventory
Definition:
menu.h:63
Engines::KotOR::Menu::SubMenu::SubMenu
SubMenu()
Definition:
menu.h:80
Engines::KotOR::Menu::kMenuTypeAbilities
Definition:
menu.h:65
menu_jou.h
The ingame journal menu.
Engines::KotOR::Menu::callbackActive
void callbackActive(Widget &widget)
Callback that's triggered when a widget was activated.
Definition:
menu.cpp:144
Engines::KotOR::Menu::SubMenu::menu
Common::ScopedPtr< GUI > menu
Definition:
menu.h:78
menu_map.h
The ingame map menu.
saveload.h
Load/save game menu.
Engines::WidgetProtoItem
Definition:
protoitem.h:33
Engines::KotOR::Menu::setReturnQueryStrref
void setReturnQueryStrref(uint32)
Set the return query string ref.
Definition:
menu.cpp:86
menu_equ.h
The ingame equipment menu.
Engines::KotOR::Menu::kMenuTypeMap
Definition:
menu.h:68
console.h
Generic Aurora engines (debug) console.
Engines::KotOR::Menu::SubMenu::button
WidgetButton * button
Definition:
menu.h:76
Engines::KotOR::Menu::kMenuTypeJournal
Definition:
menu.h:67
Engines::WidgetButton
Definition:
button.h:34
Engines
Definition:
console.cpp:69
Common::ScopedPtr
A scoped plain pointer, allowing pointer-y access and normal deletion.
Definition:
scopedptr.h:120
Engines::KotOR::Menu::setReturnEnabled
void setReturnEnabled(bool)
Set the return button enabled/disabled.
Definition:
menu.cpp:90
Engines::KotOR::Menu::_module
Module & _module
Definition:
menu.h:86
Engines::KotOR::Menu::kMenuTypeMAX
Definition:
menu.h:71
menu_inv.h
The ingame inventar menu.
gui.h
A KotOR GUI.
Engines::KotOR::Menu::_menu
SubMenu _menu[kMenuTypeMAX]
Definition:
menu.h:88
menu_opt.h
The ingame options menu.
Engines::KotOR::Menu::Menu
Menu(Module &module, ::Engines::Console *console=0)
Definition:
menu.cpp:35
Engines::Widget
A widget in a GUI.
Definition:
widget.h:40
menu_char.h
The ingame character menu.
uint32
uint32_t uint32
Definition:
types.h:204
protoitem.h
A protoitem widget for Star Wars: Knights of the Old Republic and Jade Empire.
Engines::KotOR::Menu::kMenuTypeEquipment
Definition:
menu.h:62
Engines::KotOR::Menu::_menuSave
Common::ScopedPtr< SaveLoadMenu > _menuSave
Definition:
menu.h:92
menu_abi.h
The ingame abilities menu.
Engines::KotOR::Menu::MenuType
MenuType
Definition:
menu.h:61
Engines::KotOR::GUI
A KotOR GUI.
Definition:
gui.h:57
Engines::KotOR::Menu::kMenuTypeOptions
Definition:
menu.h:69
Engines::KotOR::Menu::setReturnStrref
void setReturnStrref(uint32)
Set the return string ref.
Definition:
menu.cpp:82
Engines::KotOR::Menu::_menuLoad
Common::ScopedPtr< SaveLoadMenu > _menuLoad
Definition:
menu.h:91
Engines::Console
Definition:
console.h:190
Engines::KotOR::Menu::SubMenu::protoItem
WidgetProtoItem * protoItem
Definition:
menu.h:75
Engines::KotOR::Menu::SubMenu
Definition:
menu.h:74
Engines::KotOR::Menu::_currentMenu
SubMenu * _currentMenu
Definition:
menu.h:89
Generated on Sun Nov 18 2018 15:13:40 for xoreos by
1.8.14