ScummVM API documentation
MapLoadText.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
/*
23
* Copyright (C) 2006-2010 - Frictional Games
24
*
25
* This file is part of Penumbra Overture.
26
*/
27
28
#ifndef GAME_MAP_LOAD_TEXT_H
29
#define GAME_MAP_LOAD_TEXT_H
30
31
#include "hpl1/engine/engine.h"
32
33
#include "hpl1/penumbra-overture/GameTypes.h"
34
35
using namespace
hpl
;
36
37
class
cInit
;
38
39
//-------------------------------------------------
40
41
class
cMapLoadText
:
public
iUpdateable
{
42
public
:
43
cMapLoadText
(
cInit
*apInit);
44
~
cMapLoadText
();
45
46
void
Reset();
47
48
void
OnPostSceneDraw();
49
50
void
OnDraw();
51
52
void
Update(
float
afTimeStep);
53
54
void
OnMouseDown(eMButton aButton);
55
void
OnMouseUp(eMButton aButton);
56
57
void
SetText(
tString
asCat,
tString
asEntry) {
58
msTextCat = asCat;
59
msTextEntry = asEntry;
60
}
61
62
void
SetActive(
bool
abX);
63
bool
IsActive() {
return
mbActive; }
64
65
void
OnExit();
66
67
private
:
68
void
DrawText(
bool
abLoading);
69
70
cInit
*mpInit;
71
cGraphicsDrawer
*mpDrawer;
72
73
FontData
*mpFont;
74
FontData
*mpTextFont;
75
76
tWStringVec
mvRows;
77
78
iTexture
*mpBack;
79
80
tString
msTextCat;
81
tString
msTextEntry;
82
83
float
mfAlpha;
84
float
mfAlphaAdd;
85
86
bool
mbActive;
87
};
88
89
//---------------------------------------------
90
91
#endif // GAME_MAP_LOAD_TEXT_H
hpl
Definition:
AI.h:36
Common::String
Definition:
str.h:59
Common::Array< tWString >
hpl::FontData
Definition:
font_data.h:67
hpl::iTexture
Definition:
Texture.h:88
hpl::cGraphicsDrawer
Definition:
GraphicsDrawer.h:77
hpl::iUpdateable
Definition:
Updateable.h:35
cInit
Definition:
Init.h:70
cMapLoadText
Definition:
MapLoadText.h:41
engines
hpl1
penumbra-overture
MapLoadText.h
Generated on Sat Aug 31 2024 09:12:54 for ScummVM API documentation by
1.8.13