newgrf_text.h

Go to the documentation of this file.
00001 /* $Id: newgrf_text.h 17584 2009-09-20 10:21:00Z rubidium $ */
00002 
00003 /*
00004  * This file is part of OpenTTD.
00005  * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
00006  * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00007  * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
00008  */
00009 
00012 #ifndef NEWGRF_TEXT_H
00013 #define NEWGRF_TEXT_H
00014 
00015 StringID AddGRFString(uint32 grfid, uint16 stringid, byte langid, bool new_scheme, const char *text_to_add, StringID def_string);
00016 StringID GetGRFStringID(uint32 grfid, uint16 stringid);
00017 const char *GetGRFStringPtr(uint16 stringid);
00018 void CleanUpStrings();
00019 void SetCurrentGrfLangID(byte language_id);
00020 char *TranslateTTDPatchCodes(uint32 grfid, const char *str);
00021 
00022 bool CheckGrfLangID(byte lang_id, byte grf_version);
00023 
00024 void PrepareTextRefStackUsage(byte numEntries);
00025 void StopTextRefStackUsage();
00026 void SwitchToNormalRefStack();
00027 void SwitchToErrorRefStack();
00028 void RewindTextRefStack();
00029 uint RemapNewGRFStringControlCode(uint scc, char **buff, const char **str, int64 *argv);
00030 
00031 StringID TTDPStringIDToOTTDStringIDMapping(StringID string);
00032 
00033 #endif /* NEWGRF_TEXT_H */

Generated on Wed Dec 23 23:27:52 2009 for OpenTTD by  doxygen 1.5.6