Colobot
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-2015, Daniel Roux, EPSITEC SA & TerranovaTeam
4  * http://epsitec.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 <string>
29 
30 
35 enum ResType
36 {
37  RES_TEXT = 0,
38  RES_EVENT = 1,
39  RES_OBJECT = 2,
40  RES_ERR = 3,
41  RES_KEY = 4,
42  RES_CBOT = 5,
43 };
44 
50 {
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_APPNAME = 40,
64  RT_TITLE_TRAINER = 42,
65  RT_TITLE_DEFI = 43,
66  RT_TITLE_MISSION = 44,
67  RT_TITLE_FREE = 45,
68  RT_TITLE_CODE_BATTLES = 46,
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 
76  RT_PLAY_CHAP_CHAPTERS = 60,
77  RT_PLAY_CHAP_PLANETS = 61,
78  RT_PLAY_CHAP_USERLVL = 62,
79  RT_PLAY_LIST_LEVELS = 63,
80  RT_PLAY_LIST_EXERCISES = 64,
81  RT_PLAY_LIST_CHALLENGES = 65,
82  RT_PLAY_LIST_MISSIONS = 66,
83  RT_PLAY_LIST_FREEGAME = 67,
84  RT_PLAY_RESUME = 68,
85 
86  RT_SETUP_DEVICE = 80,
87  RT_SETUP_MODE = 81,
88  RT_SETUP_KEY1 = 82,
89  RT_SETUP_KEY2 = 83,
90 
91  RT_PERSO_FACE = 90,
92  RT_PERSO_GLASSES = 91,
93  RT_PERSO_HAIR = 92,
94  RT_PERSO_COMBI = 93,
95  RT_PERSO_BAND = 94,
96 
97  RT_DIALOG_ABORT = 103,
98  RT_DIALOG_CONTINUE = 104,
99  RT_DIALOG_DELOBJ = 105,
100  RT_DIALOG_DELGAME = 106,
101  RT_DIALOG_YES = 107,
102  RT_DIALOG_NO = 108,
103  RT_DIALOG_LOADING = 109,
104  RT_DIALOG_OK = 110,
105  RT_DIALOG_NOUSRLVL_TITLE = 111,
106  RT_DIALOG_NOUSRLVL_TEXT = 112,
107 
108  RT_STUDIO_LISTTT = 120,
109  RT_STUDIO_COMPOK = 121,
110  RT_STUDIO_PROGSTOP = 122,
111  RT_STUDIO_CLONED = 123,
112 
113  RT_PROGRAM_READONLY = 130,
114  RT_PROGRAM_EXAMPLE = 131,
115 
116  RT_SATCOM_LIST = 140,
117  RT_SATCOM_BOT = 141,
118  RT_SATCOM_BUILDING = 142,
119  RT_SATCOM_FRET = 143,
120  RT_SATCOM_ALIEN = 144,
121  RT_SATCOM_NULL = 145,
122  RT_SATCOM_ERROR1 = 146,
123  RT_SATCOM_ERROR2 = 147,
124 
125  RT_IO_OPEN = 150,
126  RT_IO_SAVE = 151,
127  RT_IO_LIST = 152,
128  RT_IO_NAME = 153,
129  RT_IO_DIR = 154,
130  RT_IO_PRIVATE = 155,
131  RT_IO_PUBLIC = 156,
132 
133  RT_GENERIC_DEV1 = 170,
134  RT_GENERIC_DEV2 = 171,
135  RT_GENERIC_EDIT1 = 172,
136  RT_GENERIC_EDIT2 = 173,
137 
138  RT_INTERFACE_REC = 180,
139 
140  RT_MESSAGE_WIN = 200,
141  RT_MESSAGE_LOST = 201,
142 
143  RT_LOADING_INIT = 210,
144  RT_LOADING_PROCESSING = 211,
145  RT_LOADING_LEVEL_SETTINGS = 212,
146  RT_LOADING_MUSIC = 213,
147  RT_LOADING_TERRAIN = 214,
148  RT_LOADING_OBJECTS = 215,
149  RT_LOADING_OBJECTS_SAVED = 216,
150  RT_LOADING_CBOT_SAVE = 218,
151  RT_LOADING_FINISHED = 219,
152  RT_LOADING_TERRAIN_RELIEF = 220,
153  RT_LOADING_TERRAIN_RES = 221,
154  RT_LOADING_TERRAIN_TEX = 222,
155  RT_LOADING_TERRAIN_GEN = 223,
156 
157 
159 };
160 
161 
162 // TODO: move to CRobotMain
163 
164 void InitializeRestext();
165 
166 void SetGlobalGamerName(std::string name);
167 bool GetResource(ResType type, unsigned int num, std::string& text);
ResType
Types of text resources.
Definition: restext.h:35
< number of values
Definition: restext.h:158
< EVENT_* (EventMsg)
Definition: restext.h:39
ResTextType
Text resources available for translation.
Definition: restext.h:49
< KEY() (keys)
Definition: restext.h:42
< RT_*
Definition: restext.h:38
< OBJECT_* (ObjectType)
Definition: restext.h:40
< ERR_* (Error)
Definition: restext.h:41