2006-04-21 03:00:20 +00:00
|
|
|
/* $Id$ */
|
|
|
|
#ifndef NEWGRF_TEXT_H
|
|
|
|
#define NEWGRF_TEXT_H
|
|
|
|
|
2007-03-21 03:06:21 +00:00
|
|
|
/** @file newgrf_text.h
|
2006-04-21 03:00:20 +00:00
|
|
|
* Header of Action 04 "universal holder" structure and functions
|
|
|
|
*/
|
|
|
|
|
2006-05-11 16:27:46 +00:00
|
|
|
StringID AddGRFString(uint32 grfid, uint16 stringid, byte langid, bool new_scheme, const char *text_to_add, StringID def_string);
|
2006-04-21 03:00:20 +00:00
|
|
|
StringID GetGRFStringID(uint32 grfid, uint16 stringid);
|
2008-01-29 17:09:00 +00:00
|
|
|
const char *GetGRFStringPtr(uint16 stringid);
|
2007-03-07 11:47:46 +00:00
|
|
|
void CleanUpStrings();
|
2006-04-21 03:00:20 +00:00
|
|
|
void SetCurrentGrfLangID(const char *iso_name);
|
2008-02-29 08:48:01 +00:00
|
|
|
char *TranslateTTDPatchCodes(uint32 grfid, const char *str);
|
2006-04-21 03:00:20 +00:00
|
|
|
|
2007-06-12 13:22:14 +00:00
|
|
|
bool CheckGrfLangID(byte lang_id, byte grf_version);
|
|
|
|
|
2007-10-17 20:09:16 +00:00
|
|
|
void PrepareTextRefStackUsage(byte numEntries);
|
2007-09-22 23:55:34 +00:00
|
|
|
void StopTextRefStackUsage();
|
2007-10-17 20:09:16 +00:00
|
|
|
void SwitchToNormalRefStack();
|
|
|
|
void SwitchToErrorRefStack();
|
|
|
|
void RewindTextRefStack();
|
2007-09-22 23:55:34 +00:00
|
|
|
uint RemapNewGRFStringControlCode(uint scc, char **buff, const char **str, int64 *argv);
|
|
|
|
|
2006-04-21 03:00:20 +00:00
|
|
|
#endif /* NEWGRF_TEXT_H */
|