2006-04-21 04:00:20 +01: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 04:00:20 +01:00
|
|
|
* Header of Action 04 "universal holder" structure and functions
|
|
|
|
*/
|
|
|
|
|
2006-05-11 17:27:46 +01:00
|
|
|
StringID AddGRFString(uint32 grfid, uint16 stringid, byte langid, bool new_scheme, const char *text_to_add, StringID def_string);
|
2006-04-21 04:00:20 +01: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 04:00:20 +01:00
|
|
|
void SetCurrentGrfLangID(const char *iso_name);
|
2006-12-04 08:30:04 +00:00
|
|
|
char *TranslateTTDPatchCodes(const char *str);
|
2006-04-21 04:00:20 +01:00
|
|
|
|
2007-06-12 14:22:14 +01:00
|
|
|
bool CheckGrfLangID(byte lang_id, byte grf_version);
|
|
|
|
|
2007-10-17 21:09:16 +01:00
|
|
|
void PrepareTextRefStackUsage(byte numEntries);
|
2007-09-23 00:55:34 +01:00
|
|
|
void StopTextRefStackUsage();
|
2007-10-17 21:09:16 +01:00
|
|
|
void SwitchToNormalRefStack();
|
|
|
|
void SwitchToErrorRefStack();
|
|
|
|
void RewindTextRefStack();
|
2007-09-23 00:55:34 +01:00
|
|
|
uint RemapNewGRFStringControlCode(uint scc, char **buff, const char **str, int64 *argv);
|
|
|
|
|
2006-04-21 04:00:20 +01:00
|
|
|
#endif /* NEWGRF_TEXT_H */
|