(svn r23626) -Add: ScriptTown::SetText, which adds custom text to the Town GUI

This commit is contained in:
truebrain
2011-12-19 21:00:55 +00:00
parent 1367fc9deb
commit 6961332f05
9 changed files with 61 additions and 3 deletions

View File

@@ -127,6 +127,16 @@ public:
*/
static char *GetName(TownID town_id);
/**
* Set the custom text of a town, shown in the GUI.
* @param town_id The town to set the custom text of.
* @param text The text to set it to.
* @pre IsValidTown(town_id).
* @return True if the action succeeded.
* @api -ai
*/
static bool SetText(TownID town_id, const char *text);
/**
* Gets the number of inhabitants in the town.
* @param town_id The town to get the population of.