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