-
Notifications
You must be signed in to change notification settings - Fork 0
/
InfoBox.h
48 lines (37 loc) · 1.33 KB
/
InfoBox.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// InfoBox.h: interface for the CInfoBox class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_INFOBOX_H__E1617AA0_E111_11D0_983D_AA78BD133344__INCLUDED_)
#define AFX_INFOBOX_H__E1617AA0_E111_11D0_983D_AA78BD133344__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define CDXINCLUDEALL // this define includes all headers, otherwise include one by one
#include <cdx.h>
#define X_OFFSET 60
#define Y_OFFSET 25
#define CHARACTERS_PER_LINE 72
#define FONT_SIZE 13
class CInfoBox
{
private:
CDXScreen *Screen;
CDXSprite *Sprite;
CDXTile *Tile;
CDXInput *Input;
CDXSound *Sound;
CDXSoundBuffer *MsgBoxSound;
bool Initialized;
int iLineCount;
public:
CInfoBox();
CInfoBox(CDXScreen *screen, CDXInput *input, CDXSound *sound, int Type = 1) { Initialize(screen, input, sound, Type); };
virtual ~CInfoBox();
// Loads bitmaps needed into memory.
// Must be called before Display2().
void Initialize(CDXScreen *screen, CDXInput *input, CDXSound *sound, int Type = 1);
// Displays the message box at (x,y)
void Display2(int x, int y, char *strMessage, bool bSound = true);
void Display2(char *strMessage, bool bSound = true) { iLineCount = 0; Display2(10, 335, strMessage, bSound); };
};
#endif // !defined(AFX_INFOBOX_H__E1617AA0_E111_11D0_983D_AA78BD133344__INCLUDED_)