Colobot
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Pages
src
common
restext.h
Go to the documentation of this file.
1
// * This file is part of the COLOBOT source code
2
// * Copyright (C) 2001-2008, Daniel ROUX & EPSITEC SA, www.epsitec.ch
3
// *
4
// * This program is free software: you can redistribute it and/or modify
5
// * it under the terms of the GNU General Public License as published by
6
// * the Free Software Foundation, either version 3 of the License, or
7
// * (at your option) any later version.
8
// *
9
// * This program is distributed in the hope that it will be useful,
10
// * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
// * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
// * GNU General Public License for more details.
13
// *
14
// * You should have received a copy of the GNU General Public License
15
// * along with this program. If not, see http://www.gnu.org/licenses/.
16
22
#pragma once
23
24
25
#include "
common/global.h
"
26
27
#include <string>
28
29
34
enum
ResType
35
{
36
RES_TEXT = 0,
37
RES_EVENT
= 1,
38
RES_OBJECT
= 2,
39
RES_ERR
= 3,
40
RES_KEY
= 4,
41
RES_CBOT
= 5,
42
};
43
48
enum
ResTextType
49
{
50
RT_VERSION_ID = 1,
51
RT_DISINFO_TITLE = 2,
52
RT_WINDOW_MAXIMIZED = 3,
53
RT_WINDOW_MINIMIZED = 4,
54
RT_WINDOW_STANDARD = 5,
55
RT_WINDOW_CLOSE = 6,
56
57
RT_STUDIO_TITLE = 10,
58
RT_SCRIPT_NEW = 20,
59
RT_NAME_DEFAULT = 21,
60
RT_IO_NEW = 22,
61
RT_KEY_OR = 23,
62
63
RT_TITLE_BASE = 40,
64
RT_TITLE_INIT = 41,
65
RT_TITLE_TRAINER = 42,
66
RT_TITLE_DEFI = 43,
67
RT_TITLE_MISSION = 44,
68
RT_TITLE_FREE = 45,
69
RT_TITLE_PROTO = 46,
70
RT_TITLE_SETUP = 47,
71
RT_TITLE_NAME = 48,
72
RT_TITLE_PERSO = 49,
73
RT_TITLE_WRITE = 50,
74
RT_TITLE_READ = 51,
75
RT_TITLE_USER = 52,
76
RT_TITLE_TEEN = 53,
77
78
RT_PLAY_CHAPt = 60,
79
RT_PLAY_CHAPd = 61,
80
RT_PLAY_CHAPm = 62,
81
RT_PLAY_CHAPf = 63,
82
RT_PLAY_CHAPp = 64,
83
RT_PLAY_LISTt = 65,
84
RT_PLAY_LISTd = 66,
85
RT_PLAY_LISTm = 67,
86
RT_PLAY_LISTf = 68,
87
RT_PLAY_LISTp = 69,
88
RT_PLAY_RESUME = 70,
89
RT_PLAY_CHAPu = 71,
90
RT_PLAY_LISTu = 72,
91
RT_PLAY_CHAPte = 73,
92
RT_PLAY_LISTk = 74,
93
94
RT_SETUP_DEVICE = 80,
95
RT_SETUP_MODE = 81,
96
RT_SETUP_KEY1 = 82,
97
RT_SETUP_KEY2 = 83,
98
99
RT_PERSO_FACE = 90,
100
RT_PERSO_GLASSES = 91,
101
RT_PERSO_HAIR = 92,
102
RT_PERSO_COMBI = 93,
103
RT_PERSO_BAND = 94,
104
105
RT_DIALOG_TITLE = 100,
106
RT_DIALOG_ABORT = 101,
107
RT_DIALOG_QUIT = 102,
108
RT_DIALOG_YES = 103,
109
RT_DIALOG_NO = 104,
110
RT_DIALOG_DELOBJ = 105,
111
RT_DIALOG_DELGAME = 106,
112
RT_DIALOG_YESDEL = 107,
113
RT_DIALOG_NODEL = 108,
114
RT_DIALOG_LOADING = 109,
115
RT_DIALOG_YESQUIT = 110,
116
RT_DIALOG_NOQUIT = 111,
117
118
RT_STUDIO_LISTTT = 120,
119
RT_STUDIO_COMPOK = 121,
120
RT_STUDIO_PROGSTOP = 122,
121
122
RT_SATCOM_LIST = 140,
123
RT_SATCOM_BOT = 141,
124
RT_SATCOM_BUILDING = 142,
125
RT_SATCOM_FRET = 143,
126
RT_SATCOM_ALIEN = 144,
127
RT_SATCOM_NULL = 145,
128
RT_SATCOM_ERROR1 = 146,
129
RT_SATCOM_ERROR2 = 147,
130
131
RT_IO_OPEN = 150,
132
RT_IO_SAVE = 151,
133
RT_IO_LIST = 152,
134
RT_IO_NAME = 153,
135
RT_IO_DIR = 154,
136
RT_IO_PRIVATE = 155,
137
RT_IO_PUBLIC = 156,
138
139
RT_GENERIC_DEV1 = 170,
140
RT_GENERIC_DEV2 = 171,
141
RT_GENERIC_EDIT1 = 172,
142
RT_GENERIC_EDIT2 = 173,
143
144
RT_INTERFACE_REC = 180,
145
146
RT_MESSAGE_WIN = 200,
147
RT_MESSAGE_LOST = 201,
148
149
150
RT_MAX
151
};
152
153
154
// TODO: move to CRobotMain
155
156
void
InitializeRestext();
157
158
void
SetGlobalGamerName(std::string name);
159
bool
SearchKey(
const
char
*cmd,
InputSlot
& slot);
160
bool
GetResource(
ResType
type,
int
num,
char
* text);
161
ResType
ResType
Types of text resources.
Definition:
restext.h:34
RT_MAX
< number of values
Definition:
restext.h:150
global.h
Some common, global definitions.
RES_OBJECT
< EVENT_* (EventMsg)
Definition:
restext.h:38
InputSlot
InputSlot
Available slots for input bindings.
Definition:
global.h:251
ResTextType
ResTextType
Text resources available for translation.
Definition:
restext.h:48
RES_CBOT
< KEY() (keys)
Definition:
restext.h:41
RES_EVENT
< RT_*
Definition:
restext.h:37
RES_ERR
< OBJECT_* (ObjectType)
Definition:
restext.h:39
RES_KEY
< ERR_* (Error)
Definition:
restext.h:40
Generated on Fri Mar 14 2014 13:34:44 for Colobot by
1.8.6