newgrf_text.h

Go to the documentation of this file.
00001 /* $Id: newgrf_text.h 15696 2009-03-13 00:30:26Z rubidium $ */
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(byte language_id);
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 /* NEWGRF_TEXT_H */

Generated on Thu Sep 24 19:35:04 2009 for OpenTTD by  doxygen 1.5.6