| OpenTTD
    | 
Base functions regarding game texts. More...
#include "../core/smallvec_type.hpp"Go to the source code of this file.
| Data Structures | |
| struct | LanguageStrings | 
| Container for the raw (unencoded) language strings of a language.  More... | |
| struct | GameStrings | 
| Container for all the game strings.  More... | |
| Functions | |
| const char * | GetGameStringPtr (uint id) | 
| Get the string pointer of a particular game string. | |
| void | RegisterGameTranslation (class Squirrel *engine) | 
| Register the current translation to the Squirrel engine. | |
| void | ReconsiderGameScriptLanguage () | 
| Reconsider the game script language, so we use the right one. | |
| Variables | |
| static const uint | GAME_TEXT_TAB = 18 | 
| The tab we place our strings in. | |
Base functions regarding game texts.
Definition in file game_text.hpp.
| const char* GetGameStringPtr | ( | uint | id | ) | 
Get the string pointer of a particular game string.
| id | The ID of the game string. | 
Definition at line 341 of file game_text.cpp.
References GameStrings::cur_language, SmallVector< T, S >::Length(), and LanguageStrings::lines.
Referenced by GetStringWithArgs().
| void RegisterGameTranslation | ( | Squirrel * | engine | ) | 
Register the current translation to the Squirrel engine.
| engine | The engine to update/ | 
Definition at line 351 of file game_text.cpp.
References _current_data, SmallVector< T, S >::Begin(), SmallVector< T, S >::End(), Squirrel::GetVM(), LoadTranslations(), ReconsiderGameScriptLanguage(), and GameStrings::string_names.
| 
 | static | 
The tab we place our strings in.
Definition at line 18 of file game_text.hpp.
Referenced by FormatString(), and GetStringWithArgs().
 1.8.1.2
 1.8.1.2