newgrf_text.h
Go to the documentation of this file.00001
00002 #ifndef NEWGRF_TEXT_H
00003 #define NEWGRF_TEXT_H
00004
00009 StringID AddGRFString(uint32 grfid, uint16 stringid, byte langid, bool new_scheme, const char *text_to_add, StringID def_string);
00010 StringID GetGRFStringID(uint32 grfid, uint16 stringid);
00011 const char *GetGRFStringPtr(uint16 stringid);
00012 void CleanUpStrings();
00013 void SetCurrentGrfLangID(const char *iso_name);
00014 char *TranslateTTDPatchCodes(uint32 grfid, const char *str);
00015
00016 bool CheckGrfLangID(byte lang_id, byte grf_version);
00017
00018 void PrepareTextRefStackUsage(byte numEntries);
00019 void StopTextRefStackUsage();
00020 void SwitchToNormalRefStack();
00021 void SwitchToErrorRefStack();
00022 void RewindTextRefStack();
00023 uint RemapNewGRFStringControlCode(uint scc, char **buff, const char **str, int64 *argv);
00024
00025 #endif