ScummVM API documentation
asset_viewer_dialog.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 NUVIE_MENUS_ASSET_VIEWER_DIALOG_H
23
#define NUVIE_MENUS_ASSET_VIEWER_DIALOG_H
24
25
#include "ultima/nuvie/gui/gui_dialog.h"
26
#include "ultima/nuvie/core/nuvie_defs.h"
27
28
namespace
Ultima
{
29
namespace
Nuvie {
30
31
#define GAMEMENUDIALOG_CB_DELETE 3
32
33
class
GUI
;
34
class
GUI_CallBack;
35
class
GUI_Button;
36
class
GUI_Text;
37
class
U6Shape;
38
39
class
AssetViewerDialog
:
public
GUI_Dialog
{
40
enum
ViewMode {
41
TileViewMode,
42
ScreenViewMode,
43
};
44
45
protected
:
46
CallBack
*callback_object;
47
GUI_Text
*_titleTxt, *_infoTxt;
48
int
_curIdx, _maxIdx;
49
int
_shapeIdx;
50
ViewMode _viewMode;
51
U6Shape
*_curShape;
52
Common::Path
_screenFile;
53
public
:
54
AssetViewerDialog
(
CallBack
*callback);
55
~
AssetViewerDialog
()
override
;
56
57
void
Display(
bool
full_redraw)
override
;
58
GUI_status close_dialog();
59
GUI_status KeyDown(
const
Common::KeyState
&key)
override
;
60
GUI_status callback(uint16 msg,
GUI_CallBack
*caller,
void
*data)
override
;
61
62
private
:
63
void
updateInfoTxt();
64
void
updateShape();
65
bool
init();
66
};
67
68
}
// End of namespace Nuvie
69
}
// End of namespace Ultima
70
71
#endif
Ultima::Nuvie::GUI_Dialog
Definition:
gui_dialog.h:36
Ultima::Nuvie::GUI_Text
Definition:
gui_text.h:32
Common::Path
Definition:
path.h:52
GUI
Definition:
system.h:46
Ultima::Nuvie::AssetViewerDialog
Definition:
asset_viewer_dialog.h:39
Ultima::Nuvie::U6Shape
Definition:
u6_shape.h:47
Ultima
Definition:
detection.h:27
Ultima::Nuvie::CallBack
Definition:
call_back.h:50
Common::KeyState
Definition:
keyboard.h:294
Ultima::Nuvie::GUI_CallBack
Definition:
gui_callback.h:31
engines
ultima
nuvie
menus
asset_viewer_dialog.h
Generated on Fri Nov 22 2024 09:27:16 for ScummVM API documentation by
1.8.13