mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
b72e1fb67d
- Cases are used to change a string, such as Coal Mine, depending on the surrounding context. - Cases are defined like "STR_4802_COAL_MINE.ack :Coala Mina" - All cases need to be listed on the top of the file like this "##case ack" - When using the string, type {STRING.ack} to choose the "ack" version of Coal mine. - Also combined the strgen arrays into a struct, and fixed a bug with SetXY.
20 lines
397 B
C
20 lines
397 B
C
#ifndef STRINGS_H
|
|
#define STRINGS_H
|
|
|
|
static inline char* InlineString(char* buf, uint16 string)
|
|
{
|
|
*buf++ = '\x81';
|
|
*buf++ = string & 0xFF;
|
|
*buf++ = string >> 8;
|
|
return buf;
|
|
}
|
|
|
|
char *GetString(char *buffr, uint16 string);
|
|
char *GetStringWithArgs(char *buffr, uint string, const int32 *argv);
|
|
|
|
void InjectDParam(int amount);
|
|
int32 GetParamInt32(void);
|
|
uint GetCurrentCurrencyRate(void);
|
|
|
|
#endif
|