File diff r23496:661d21df67d7 → r23497:a0ab44ebd2fa
src/script/api/script_text.hpp
Show inline comments
 
@@ -36,25 +36,25 @@ public:
 
	const char *GetDecodedText();
 
};
 

	
 
/**
 
 * Internally used class to create a raw text in a Text object.
 
 * @api -all
 
 */
 
class RawText : public Text {
 
public:
 
	RawText(const char *text);
 
	~RawText();
 

	
 
	/* virtual */ const char *GetEncodedText() { return this->text; }
 
	const char *GetEncodedText() override { return this->text; }
 
private:
 
	const char *text;
 
};
 

	
 
/**
 
 * Class that handles all text related functions. You can define a language
 
 *  file in lang/english.txt, in the same format as OpenTTD does, including
 
 *  tags like {BLACK}, {STRING1} etc. The name given to this string is made
 
 *  available to you in ScriptText, for example: ScriptText.STR_NEWS, if your
 
 *  english.txt contains: STR_NEWS    :{BLACK}Welcome {COMPANY}!
 
 *
 
 * In translation files like lang/dutch.txt you can then translate such