author | skidd13 |
Tue, 20 Nov 2007 14:11:19 +0000 | |
changeset 8428 | f8300c908bd9 |
parent 8246 | ff7b892d8a28 |
child 6877 | 889301acc299 |
permissions | -rw-r--r-- |
3601
ac6df06db648
(svn r4493) Newgrf : Action 04. Beginning of implementation.
belugas
parents:
diff
changeset
|
1 |
/* $Id$ */ |
ac6df06db648
(svn r4493) Newgrf : Action 04. Beginning of implementation.
belugas
parents:
diff
changeset
|
2 |
#ifndef NEWGRF_TEXT_H |
ac6df06db648
(svn r4493) Newgrf : Action 04. Beginning of implementation.
belugas
parents:
diff
changeset
|
3 |
#define NEWGRF_TEXT_H |
ac6df06db648
(svn r4493) Newgrf : Action 04. Beginning of implementation.
belugas
parents:
diff
changeset
|
4 |
|
6674
64f4781b4653
(svn r9385) -Cleanup: doxygen changes. Today, we are exploring the letter N.
belugas
parents:
6573
diff
changeset
|
5 |
/** @file newgrf_text.h |
3601
ac6df06db648
(svn r4493) Newgrf : Action 04. Beginning of implementation.
belugas
parents:
diff
changeset
|
6 |
* Header of Action 04 "universal holder" structure and functions |
ac6df06db648
(svn r4493) Newgrf : Action 04. Beginning of implementation.
belugas
parents:
diff
changeset
|
7 |
*/ |
ac6df06db648
(svn r4493) Newgrf : Action 04. Beginning of implementation.
belugas
parents:
diff
changeset
|
8 |
|
3821
2bb8a2643fdf
(svn r4832) - NewGRF: add support for original string ID to newgrf text handling. So far, this is used for vehicles when no English or American translation is provided.
peter1138
parents:
3641
diff
changeset
|
9 |
StringID AddGRFString(uint32 grfid, uint16 stringid, byte langid, bool new_scheme, const char *text_to_add, StringID def_string); |
3601
ac6df06db648
(svn r4493) Newgrf : Action 04. Beginning of implementation.
belugas
parents:
diff
changeset
|
10 |
StringID GetGRFStringID(uint32 grfid, uint16 stringid); |
4912
d04b3f2bca70
(svn r6884) -Codechange: Add strict bounds checking in string formatting system.
Darkvater
parents:
4305
diff
changeset
|
11 |
char *GetGRFString(char *buff, uint16 stringid, const char* last); |
6573 | 12 |
void CleanUpStrings(); |
3601
ac6df06db648
(svn r4493) Newgrf : Action 04. Beginning of implementation.
belugas
parents:
diff
changeset
|
13 |
void SetCurrentGrfLangID(const char *iso_name); |
5228
c4a780348f66
(svn r7348) -Feature: Initial support for saving NewGRF settings with savegames. Back up your savegames...
peter1138
parents:
4912
diff
changeset
|
14 |
char *TranslateTTDPatchCodes(const char *str); |
3601
ac6df06db648
(svn r4493) Newgrf : Action 04. Beginning of implementation.
belugas
parents:
diff
changeset
|
15 |
|
7369
26325201d4d7
(svn r10114) -Fix: Only load newgrf error messages if the language matches the current
maedhros
parents:
6674
diff
changeset
|
16 |
bool CheckGrfLangID(byte lang_id, byte grf_version); |
26325201d4d7
(svn r10114) -Fix: Only load newgrf error messages if the language matches the current
maedhros
parents:
6674
diff
changeset
|
17 |
|
8246
ff7b892d8a28
(svn r11287) -Codechange: add support for pushing paramaters into NewIndustries' error messages. Patch by Csaboka.
rubidium
parents:
8112
diff
changeset
|
18 |
void PrepareTextRefStackUsage(byte numEntries); |
8112
f432a920f3b7
(svn r11145) -Codechange: add support for "decoding" TTDPs string codes wrt to registers 0x100 to 0x10F.
rubidium
parents:
7369
diff
changeset
|
19 |
void StopTextRefStackUsage(); |
8246
ff7b892d8a28
(svn r11287) -Codechange: add support for pushing paramaters into NewIndustries' error messages. Patch by Csaboka.
rubidium
parents:
8112
diff
changeset
|
20 |
void SwitchToNormalRefStack(); |
ff7b892d8a28
(svn r11287) -Codechange: add support for pushing paramaters into NewIndustries' error messages. Patch by Csaboka.
rubidium
parents:
8112
diff
changeset
|
21 |
void SwitchToErrorRefStack(); |
ff7b892d8a28
(svn r11287) -Codechange: add support for pushing paramaters into NewIndustries' error messages. Patch by Csaboka.
rubidium
parents:
8112
diff
changeset
|
22 |
void RewindTextRefStack(); |
8112
f432a920f3b7
(svn r11145) -Codechange: add support for "decoding" TTDPs string codes wrt to registers 0x100 to 0x10F.
rubidium
parents:
7369
diff
changeset
|
23 |
uint RemapNewGRFStringControlCode(uint scc, char **buff, const char **str, int64 *argv); |
f432a920f3b7
(svn r11145) -Codechange: add support for "decoding" TTDPs string codes wrt to registers 0x100 to 0x10F.
rubidium
parents:
7369
diff
changeset
|
24 |
|
3601
ac6df06db648
(svn r4493) Newgrf : Action 04. Beginning of implementation.
belugas
parents:
diff
changeset
|
25 |
#endif /* NEWGRF_TEXT_H */ |