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
/*
2
* This file is part of the Colobot: Gold Edition source code
3
* Copyright (C) 2001-2014, Daniel Roux, EPSITEC SA & TerranovaTeam
4
* http://epsiteŃ.ch; http://colobot.info; http://github.com/colobot
5
*
6
* This program is free software: you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation, either version 3 of the License, or
9
* (at your option) any later version.
10
*
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14
* See the GNU General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License
17
* along with this program. If not, see http://gnu.org/licenses
18
*/
19
25
#pragma once
26
27
28
#include "
common/global.h
"
29
30
#include <string>
31
32
37
enum
ResType
38
{
39
RES_TEXT = 0,
40
RES_EVENT
= 1,
41
RES_OBJECT
= 2,
42
RES_ERR
= 3,
43
RES_KEY
= 4,
44
RES_CBOT
= 5,
45
};
46
51
enum
ResTextType
52
{
53
RT_DISINFO_TITLE = 2,
54
RT_WINDOW_MAXIMIZED = 3,
55
RT_WINDOW_MINIMIZED = 4,
56
RT_WINDOW_STANDARD = 5,
57
RT_WINDOW_CLOSE = 6,
58
59
RT_STUDIO_TITLE = 10,
60
RT_SCRIPT_NEW = 20,
61
RT_NAME_DEFAULT = 21,
62
RT_IO_NEW = 22,
63
RT_KEY_OR = 23,
64
65
RT_TITLE_BASE = 40,
66
RT_TITLE_INIT = 41,
67
RT_TITLE_TRAINER = 42,
68
RT_TITLE_DEFI = 43,
69
RT_TITLE_MISSION = 44,
70
RT_TITLE_FREE = 45,
71
RT_TITLE_SETUP = 47,
72
RT_TITLE_NAME = 48,
73
RT_TITLE_PERSO = 49,
74
RT_TITLE_WRITE = 50,
75
RT_TITLE_READ = 51,
76
RT_TITLE_USER = 52,
77
78
RT_PLAY_CHAPt = 60,
79
RT_PLAY_CHAPd = 61,
80
RT_PLAY_CHAPm = 62,
81
RT_PLAY_CHAPf = 63,
82
RT_PLAY_LISTt = 65,
83
RT_PLAY_LISTd = 66,
84
RT_PLAY_LISTm = 67,
85
RT_PLAY_LISTf = 68,
86
RT_PLAY_RESUME = 70,
87
RT_PLAY_CHAPu = 71,
88
RT_PLAY_LISTu = 72,
89
RT_PLAY_CHAPte = 73,
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
RT_STUDIO_CLONED = 123,
119
120
RT_PROGRAM_READONLY = 130,
121
RT_PROGRAM_EXAMPLE = 131,
122
123
RT_SATCOM_LIST = 140,
124
RT_SATCOM_BOT = 141,
125
RT_SATCOM_BUILDING = 142,
126
RT_SATCOM_FRET = 143,
127
RT_SATCOM_ALIEN = 144,
128
RT_SATCOM_NULL = 145,
129
RT_SATCOM_ERROR1 = 146,
130
RT_SATCOM_ERROR2 = 147,
131
132
RT_IO_OPEN = 150,
133
RT_IO_SAVE = 151,
134
RT_IO_LIST = 152,
135
RT_IO_NAME = 153,
136
RT_IO_DIR = 154,
137
RT_IO_PRIVATE = 155,
138
RT_IO_PUBLIC = 156,
139
140
RT_GENERIC_DEV1 = 170,
141
RT_GENERIC_DEV2 = 171,
142
RT_GENERIC_EDIT1 = 172,
143
RT_GENERIC_EDIT2 = 173,
144
145
RT_INTERFACE_REC = 180,
146
147
RT_MESSAGE_WIN = 200,
148
RT_MESSAGE_LOST = 201,
149
150
151
RT_MAX
152
};
153
154
155
// TODO: move to CRobotMain
156
157
void
InitializeRestext();
158
159
void
SetGlobalGamerName(std::string name);
160
bool
GetResource(
ResType
type,
unsigned
int
num, std::string& text);
161
ResType
ResType
Types of text resources.
Definition:
restext.h:37
RT_MAX
< number of values
Definition:
restext.h:151
global.h
Some common, global definitions.
RES_OBJECT
< EVENT_* (EventMsg)
Definition:
restext.h:41
ResTextType
ResTextType
Text resources available for translation.
Definition:
restext.h:51
RES_CBOT
< KEY() (keys)
Definition:
restext.h:44
RES_EVENT
< RT_*
Definition:
restext.h:40
RES_ERR
< OBJECT_* (ObjectType)
Definition:
restext.h:42
RES_KEY
< ERR_* (Error)
Definition:
restext.h:43
Generated by
1.8.8