summaryrefslogtreecommitdiff
path: root/src/newgrf_text.h
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2010-07-31 09:33:39 +0000
committeryexo <yexo@openttd.org>2010-07-31 09:33:39 +0000
commitd3c1be9abd2507fc5e77e5310e97bc1f31c28e65 (patch)
treebec0ca8eec0327145cc2b575795d9f154ac24404 /src/newgrf_text.h
parent1ca16aa979fab1d7a60fb40def0374433362d265 (diff)
downloadopenttd-d3c1be9abd2507fc5e77e5310e97bc1f31c28e65.tar.xz
(svn r20249) -Codechange: change the newgrf name/description from a char* to a GRFText* to make translations possible
Diffstat (limited to 'src/newgrf_text.h')
-rw-r--r--src/newgrf_text.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/newgrf_text.h b/src/newgrf_text.h
index bfd308ca3..e6e3b9e16 100644
--- a/src/newgrf_text.h
+++ b/src/newgrf_text.h
@@ -16,10 +16,16 @@
StringID AddGRFString(uint32 grfid, uint16 stringid, byte langid, bool new_scheme, const char *text_to_add, StringID def_string);
StringID GetGRFStringID(uint32 grfid, uint16 stringid);
+const char *GetGRFStringFromGRFText(const struct GRFText *text);
const char *GetGRFStringPtr(uint16 stringid);
void CleanUpStrings();
void SetCurrentGrfLangID(byte language_id);
char *TranslateTTDPatchCodes(uint32 grfid, const char *str);
+struct GRFText *DuplicateGRFText(struct GRFText *orig);
+void AddGRFTextToList(struct GRFText **list, struct GRFText *text_to_add);
+void AddGRFTextToList(struct GRFText **list, byte langid, uint32 grfid, const char *text_to_add);
+void AddGRFTextToList(struct GRFText **list, const char *text_to_add);
+void CleanUpGRFText(struct GRFText *grftext);
bool CheckGrfLangID(byte lang_id, byte grf_version);