Colobot
Enumerations | Functions
restext.h File Reference

Translation and string resource utilities. More...

#include <string>
Include dependency graph for restext.h:

Go to the source code of this file.

Enumerations

enum  ResType {
  RES_TEXT = 0, RES_EVENT = 1, RES_OBJECT = 2, RES_ERR = 3,
  RES_KEY = 4, RES_CBOT = 5
}
 Types of text resources. More...
 
enum  ResTextType {
  RT_DISINFO_TITLE = 2, RT_WINDOW_MAXIMIZED = 3, RT_WINDOW_MINIMIZED = 4, RT_WINDOW_STANDARD = 5,
  RT_WINDOW_CLOSE = 6, RT_STUDIO_TITLE = 10, RT_SCRIPT_NEW = 20, RT_NAME_DEFAULT = 21,
  RT_IO_NEW = 22, RT_KEY_OR = 23, RT_TITLE_APPNAME = 40, RT_TITLE_TRAINER = 42,
  RT_TITLE_DEFI = 43, RT_TITLE_MISSION = 44, RT_TITLE_FREE = 45, RT_TITLE_CODE_BATTLES = 46,
  RT_TITLE_SETUP = 47, RT_TITLE_NAME = 48, RT_TITLE_PERSO = 49, RT_TITLE_WRITE = 50,
  RT_TITLE_READ = 51, RT_TITLE_USER = 52, RT_PLAY_CHAP_CHAPTERS = 60, RT_PLAY_CHAP_PLANETS = 61,
  RT_PLAY_CHAP_USERLVL = 62, RT_PLAY_LIST_LEVELS = 63, RT_PLAY_LIST_EXERCISES = 64, RT_PLAY_LIST_CHALLENGES = 65,
  RT_PLAY_LIST_MISSIONS = 66, RT_PLAY_LIST_FREEGAME = 67, RT_PLAY_RESUME = 68, RT_SETUP_DEVICE = 80,
  RT_SETUP_MODE = 81, RT_SETUP_KEY1 = 82, RT_SETUP_KEY2 = 83, RT_PERSO_FACE = 90,
  RT_PERSO_GLASSES = 91, RT_PERSO_HAIR = 92, RT_PERSO_COMBI = 93, RT_PERSO_BAND = 94,
  RT_DIALOG_ABORT = 103, RT_DIALOG_CONTINUE = 104, RT_DIALOG_DELOBJ = 105, RT_DIALOG_DELGAME = 106,
  RT_DIALOG_YES = 107, RT_DIALOG_NO = 108, RT_DIALOG_LOADING = 109, RT_DIALOG_OK = 110,
  RT_DIALOG_NOUSRLVL_TITLE = 111, RT_DIALOG_NOUSRLVL_TEXT = 112, RT_STUDIO_LISTTT = 120, RT_STUDIO_COMPOK = 121,
  RT_STUDIO_PROGSTOP = 122, RT_STUDIO_CLONED = 123, RT_PROGRAM_READONLY = 130, RT_PROGRAM_EXAMPLE = 131,
  RT_SATCOM_LIST = 140, RT_SATCOM_BOT = 141, RT_SATCOM_BUILDING = 142, RT_SATCOM_FRET = 143,
  RT_SATCOM_ALIEN = 144, RT_SATCOM_NULL = 145, RT_SATCOM_ERROR1 = 146, RT_SATCOM_ERROR2 = 147,
  RT_IO_OPEN = 150, RT_IO_SAVE = 151, RT_IO_LIST = 152, RT_IO_NAME = 153,
  RT_IO_DIR = 154, RT_IO_PRIVATE = 155, RT_IO_PUBLIC = 156, RT_GENERIC_DEV1 = 170,
  RT_GENERIC_DEV2 = 171, RT_GENERIC_EDIT1 = 172, RT_GENERIC_EDIT2 = 173, RT_INTERFACE_REC = 180,
  RT_MESSAGE_WIN = 200, RT_MESSAGE_LOST = 201, RT_LOADING_INIT = 210, RT_LOADING_PROCESSING = 211,
  RT_LOADING_LEVEL_SETTINGS = 212, RT_LOADING_MUSIC = 213, RT_LOADING_TERRAIN = 214, RT_LOADING_OBJECTS = 215,
  RT_LOADING_OBJECTS_SAVED = 216, RT_LOADING_CBOT_SAVE = 218, RT_LOADING_FINISHED = 219, RT_LOADING_TERRAIN_RELIEF = 220,
  RT_LOADING_TERRAIN_RES = 221, RT_LOADING_TERRAIN_TEX = 222, RT_LOADING_TERRAIN_GEN = 223, RT_MAX
}
 Text resources available for translation. More...
 

Functions

void InitializeRestext ()
 
void SetGlobalGamerName (std::string name)
 
bool GetResource (ResType type, unsigned int num, std::string &text)
 

Detailed Description

Translation and string resource utilities.

Enumeration Type Documentation

Text resources available for translation.

Enumerator
RT_MAX 

< number of values

enum ResType

Types of text resources.

Enumerator
RES_EVENT 

< RT_*

RES_OBJECT 

< EVENT_* (EventMsg)

RES_ERR 

< OBJECT_* (ObjectType)

RES_KEY 

< ERR_* (Error)

RES_CBOT 

< KEY() (keys)