2
* OpenTyrian: A modern cross-platform port of Tyrian
3
* Copyright (C) 2007-2009 The OpenTyrian Development Team
5
* This program is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU General Public License
7
* as published by the Free Software Foundation; either version 2
8
* of the License, or (at your option) any later version.
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26
#define DESTRUCT_MODES 5
28
extern const JE_byte menuHelp[MENU_MAX][11]; /* [1..14, 1..11] */
30
extern JE_byte verticalHeight;
31
extern JE_byte helpBoxColor, helpBoxBrightness, helpBoxShadeType;
34
#define HELPTEXT_MISCTEXT_COUNT 72
35
#define HELPTEXT_MISCTEXTB_COUNT 8
36
#define HELPTEXT_MISCTEXTB_SIZE 12
37
#define HELPTEXT_MENUTEXT_SIZE 29
38
#define HELPTEXT_MAINMENUHELP_COUNT 37
39
#define HELPTEXT_NETWORKTEXT_COUNT 5
40
#define HELPTEXT_NETWORKTEXT_SIZE 33
41
#define HELPTEXT_SUPERSHIPS_COUNT 13
42
#define HELPTEXT_SPECIALNAME_COUNT 11
43
#define HELPTEXT_SHIPINFO_COUNT 20
44
#define HELPTEXT_MENUINT3_COUNT 9
45
#define HELPTEXT_MENUINT12_COUNT 7
47
#define HELPTEXT_MISCTEXT_COUNT 68
48
#define HELPTEXT_MISCTEXTB_COUNT 5
49
#define HELPTEXT_MISCTEXTB_SIZE 11
50
#define HELPTEXT_MENUTEXT_SIZE 21
51
#define HELPTEXT_MAINMENUHELP_COUNT 34
52
#define HELPTEXT_NETWORKTEXT_COUNT 4
53
#define HELPTEXT_NETWORKTEXT_SIZE 22
54
#define HELPTEXT_SUPERSHIPS_COUNT 11
55
#define HELPTEXT_SPECIALNAME_COUNT 9
56
#define HELPTEXT_SHIPINFO_COUNT 13
59
extern char helpTxt[39][231];
60
extern char pName[21][16];
61
extern char miscText[HELPTEXT_MISCTEXT_COUNT][42];
62
extern char miscTextB[HELPTEXT_MISCTEXTB_COUNT][HELPTEXT_MISCTEXTB_SIZE];
63
extern char keyName[8][18];
64
extern char menuText[7][HELPTEXT_MENUTEXT_SIZE];
65
extern char outputs[9][31];
66
extern char topicName[6][21];
67
extern char mainMenuHelp[HELPTEXT_MAINMENUHELP_COUNT][66];
68
extern char inGameText[6][21];
69
extern char detailLevel[6][13];
70
extern char gameSpeedText[5][13];
71
extern char inputDevices[3][13];
72
extern char networkText[HELPTEXT_NETWORKTEXT_COUNT][HELPTEXT_NETWORKTEXT_SIZE];
73
extern char difficultyNameB[11][21];
74
extern char joyButtonNames[5][21];
75
extern char superShips[HELPTEXT_SUPERSHIPS_COUNT][26];
76
extern char specialName[HELPTEXT_SPECIALNAME_COUNT][10];
77
extern char destructHelp[25][22];
78
extern char weaponNames[17][17];
79
extern char destructModeName[DESTRUCT_MODES][13];
80
extern char shipInfo[HELPTEXT_SHIPINFO_COUNT][2][256];
81
extern char menuInt[MENU_MAX+1][11][18];
83
void read_encrypted_pascal_string( char *s, int size, FILE *f );
84
void skip_pascal_string( FILE *f );
86
void JE_helpBox( SDL_Surface *screen, int x, int y, const char *message, unsigned int boxwidth );
87
void JE_HBox( SDL_Surface *screen, int x, int y, unsigned int messagenum, unsigned int boxwidth );
88
void JE_loadHelpText( void );
90
#endif /* HELPTEXT_H */