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_SETUP = 47,
70
RT_TITLE_NAME = 48,
71
RT_TITLE_PERSO = 49,
72
RT_TITLE_WRITE = 50,
73
RT_TITLE_READ = 51,
74
RT_TITLE_USER = 52,
75
RT_TITLE_TEEN = 53,
76
77
RT_PLAY_CHAPt = 60,
78
RT_PLAY_CHAPd = 61,
79
RT_PLAY_CHAPm = 62,
80
RT_PLAY_CHAPf = 63,
81
RT_PLAY_LISTt = 65,
82
RT_PLAY_LISTd = 66,
83
RT_PLAY_LISTm = 67,
84
RT_PLAY_LISTf = 68,
85
RT_PLAY_RESUME = 70,
86
RT_PLAY_CHAPu = 71,
87
RT_PLAY_LISTu = 72,
88
RT_PLAY_CHAPte = 73,
89
RT_PLAY_LISTk = 74,
90
91
RT_SETUP_DEVICE = 80,
92
RT_SETUP_MODE = 81,
93
RT_SETUP_KEY1 = 82,
94
RT_SETUP_KEY2 = 83,
95
96
RT_PERSO_FACE = 90,
97
RT_PERSO_GLASSES = 91,
98
RT_PERSO_HAIR = 92,
99
RT_PERSO_COMBI = 93,
100
RT_PERSO_BAND = 94,
101
102
RT_DIALOG_TITLE = 100,
103
RT_DIALOG_ABORT = 101,
104
RT_DIALOG_QUIT = 102,
105
RT_DIALOG_YES = 103,
106
RT_DIALOG_NO = 104,
107
RT_DIALOG_DELOBJ = 105,
108
RT_DIALOG_DELGAME = 106,
109
RT_DIALOG_YESDEL = 107,
110
RT_DIALOG_NODEL = 108,
111
RT_DIALOG_LOADING = 109,
112
RT_DIALOG_YESQUIT = 110,
113
RT_DIALOG_NOQUIT = 111,
114
115
RT_STUDIO_LISTTT = 120,
116
RT_STUDIO_COMPOK = 121,
117
RT_STUDIO_PROGSTOP = 122,
118
119
RT_SATCOM_LIST = 140,
120
RT_SATCOM_BOT = 141,
121
RT_SATCOM_BUILDING = 142,
122
RT_SATCOM_FRET = 143,
123
RT_SATCOM_ALIEN = 144,
124
RT_SATCOM_NULL = 145,
125
RT_SATCOM_ERROR1 = 146,
126
RT_SATCOM_ERROR2 = 147,
127
128
RT_IO_OPEN = 150,
129
RT_IO_SAVE = 151,
130
RT_IO_LIST = 152,
131
RT_IO_NAME = 153,
132
RT_IO_DIR = 154,
133
RT_IO_PRIVATE = 155,
134
RT_IO_PUBLIC = 156,
135
136
RT_GENERIC_DEV1 = 170,
137
RT_GENERIC_DEV2 = 171,
138
RT_GENERIC_EDIT1 = 172,
139
RT_GENERIC_EDIT2 = 173,
140
141
RT_INTERFACE_REC = 180,
142
143
RT_MESSAGE_WIN = 200,
144
RT_MESSAGE_LOST = 201,
145
146
147
RT_MAX
148
};
149
150
151
// TODO: move to CRobotMain
152
153
void
InitializeRestext();
154
155
void
SetGlobalGamerName(std::string name);
156
bool
SearchKey(
const
char
*cmd,
InputSlot
& slot);
157
bool
GetResource(
ResType
type,
int
num, std::string& text);
158
ResType
ResType
Types of text resources.
Definition:
restext.h:34
RT_MAX
< number of values
Definition:
restext.h:147
global.h
Some common, global definitions.
RES_OBJECT
< EVENT_* (EventMsg)
Definition:
restext.h:38
InputSlot
InputSlot
Available slots for input bindings.
Definition:
global.h:233
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 Wed Jul 2 2014 17:12:52 for Colobot by
1.8.7