newgrf_text.h

Go to the documentation of this file.
00001 /* $Id: newgrf_text.h 19585 2010-04-08 15:40:46Z 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 #include "strings_type.h"
00016 
00017 StringID AddGRFString(uint32 grfid, uint16 stringid, byte langid, bool new_scheme, const char *text_to_add, StringID def_string);
00018 StringID GetGRFStringID(uint32 grfid, uint16 stringid);
00019 const char *GetGRFStringPtr(uint16 stringid);
00020 void CleanUpStrings();
00021 void SetCurrentGrfLangID(byte language_id);
00022 char *TranslateTTDPatchCodes(uint32 grfid, const char *str);
00023 
00024 bool CheckGrfLangID(byte lang_id, byte grf_version);
00025 
00026 void PrepareTextRefStackUsage(byte numEntries);
00027 void StopTextRefStackUsage();
00028 void SwitchToNormalRefStack();
00029 void SwitchToErrorRefStack();
00030 void RewindTextRefStack();
00031 uint RemapNewGRFStringControlCode(uint scc, char *buf_start, char **buff, const char **str, int64 *argv);
00032 
00033 StringID TTDPStringIDToOTTDStringIDMapping(StringID string);
00034 
00035 #endif /* NEWGRF_TEXT_H */

Generated on Sat Jun 5 21:52:07 2010 for OpenTTD by  doxygen 1.6.1