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-2016, 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_WINDOW_MAXIMIZED = 3,
52  RT_WINDOW_MINIMIZED = 4,
53  RT_WINDOW_STANDARD = 5,
54  RT_WINDOW_CLOSE = 6,
55 
56  RT_STUDIO_TITLE = 10,
57  RT_SCRIPT_NEW = 20,
58  RT_NAME_DEFAULT = 21,
59  RT_IO_NEW = 22,
60  RT_KEY_OR = 23,
61 
62  RT_TITLE_APPNAME = 40,
63  RT_TITLE_TRAINER = 42,
64  RT_TITLE_DEFI = 43,
65  RT_TITLE_MISSION = 44,
66  RT_TITLE_FREE = 45,
67  RT_TITLE_CODE_BATTLES = 46,
68  RT_TITLE_SETUP = 47,
69  RT_TITLE_NAME = 48,
70  RT_TITLE_PERSO = 49,
71  RT_TITLE_WRITE = 50,
72  RT_TITLE_READ = 51,
73  RT_TITLE_USER = 52,
74 
75  RT_PLAY_CHAP_CHAPTERS = 60,
76  RT_PLAY_CHAP_PLANETS = 61,
77  RT_PLAY_CHAP_USERLVL = 62,
78  RT_PLAY_LIST_LEVELS = 63,
79  RT_PLAY_LIST_EXERCISES = 64,
80  RT_PLAY_LIST_CHALLENGES = 65,
81  RT_PLAY_LIST_MISSIONS = 66,
82  RT_PLAY_LIST_FREEGAME = 67,
83  RT_PLAY_RESUME = 68,
84 
85  RT_SETUP_MODE = 81,
86  RT_SETUP_KEY1 = 82,
87  RT_SETUP_KEY2 = 83,
88 
89  RT_PERSO_FACE = 90,
90  RT_PERSO_GLASSES = 91,
91  RT_PERSO_HAIR = 92,
92  RT_PERSO_COMBI = 93,
93  RT_PERSO_BAND = 94,
94 
95  RT_DIALOG_ABORT = 103,
96  RT_DIALOG_CONTINUE = 104,
97  RT_DIALOG_DELOBJ = 105,
98  RT_DIALOG_DELGAME = 106,
99  RT_DIALOG_YES = 107,
100  RT_DIALOG_NO = 108,
101  RT_DIALOG_LOADING = 109,
102  RT_DIALOG_OK = 110,
103  RT_DIALOG_NOUSRLVL_TITLE = 111,
104  RT_DIALOG_NOUSRLVL_TEXT = 112,
105 
106  RT_STUDIO_LISTTT = 120,
107  RT_STUDIO_COMPOK = 121,
108  RT_STUDIO_PROGSTOP = 122,
109  RT_STUDIO_CLONED = 123,
110 
111  RT_PROGRAM_READONLY = 130,
112  RT_PROGRAM_EXAMPLE = 131,
113 
114  RT_IO_OPEN = 150,
115  RT_IO_SAVE = 151,
116  RT_IO_LIST = 152,
117  RT_IO_NAME = 153,
118  RT_IO_DIR = 154,
119  RT_IO_PRIVATE = 155,
120  RT_IO_PUBLIC = 156,
121 
122  RT_GENERIC_DEV1 = 170,
123  RT_GENERIC_DEV2 = 171,
124  RT_GENERIC_EDIT1 = 172,
125  RT_GENERIC_EDIT2 = 173,
126 
127  RT_INTERFACE_REC = 180,
128 
129  RT_LOADING_INIT = 210,
130  RT_LOADING_PROCESSING = 211,
131  RT_LOADING_LEVEL_SETTINGS = 212,
132  RT_LOADING_MUSIC = 213,
133  RT_LOADING_TERRAIN = 214,
134  RT_LOADING_OBJECTS = 215,
135  RT_LOADING_OBJECTS_SAVED = 216,
136  RT_LOADING_CBOT_SAVE = 218,
137  RT_LOADING_FINISHED = 219,
138  RT_LOADING_TERRAIN_RELIEF = 220,
139  RT_LOADING_TERRAIN_RES = 221,
140  RT_LOADING_TERRAIN_TEX = 222,
141  RT_LOADING_TERRAIN_GEN = 223,
142 
143 
145 };
146 
147 
148 // TODO: move to CRobotMain
149 
150 void InitializeRestext();
151 
152 void SetGlobalGamerName(std::string name);
153 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:144
< 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