diff options
author | truebrain <truebrain@openttd.org> | 2011-12-19 21:00:55 +0000 |
---|---|---|
committer | truebrain <truebrain@openttd.org> | 2011-12-19 21:00:55 +0000 |
commit | ad48ab923764087bf66153d1c26ed0eb05a19989 (patch) | |
tree | 7851cc098dee7c0e5c5ea0ffe183711342b2a283 /src/script/api/game | |
parent | 894216083d3f0b7c01ad705c253723e948297138 (diff) | |
download | openttd-ad48ab923764087bf66153d1c26ed0eb05a19989.tar.xz |
(svn r23626) -Add: ScriptTown::SetText, which adds custom text to the Town GUI
Diffstat (limited to 'src/script/api/game')
-rw-r--r-- | src/script/api/game/game_town.hpp.sq | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/script/api/game/game_town.hpp.sq b/src/script/api/game/game_town.hpp.sq index b5837bc17..ad0dfe428 100644 --- a/src/script/api/game/game_town.hpp.sq +++ b/src/script/api/game/game_town.hpp.sq @@ -40,6 +40,7 @@ void SQGSTown_Register(Squirrel *engine) SQGSTown.DefSQStaticMethod(engine, &ScriptTown::GetTownCount, "GetTownCount", 1, "."); SQGSTown.DefSQStaticMethod(engine, &ScriptTown::IsValidTown, "IsValidTown", 2, ".i"); SQGSTown.DefSQStaticMethod(engine, &ScriptTown::GetName, "GetName", 2, ".i"); + SQGSTown.DefSQStaticMethod(engine, &ScriptTown::SetText, "SetText", 3, ".i."); SQGSTown.DefSQStaticMethod(engine, &ScriptTown::GetPopulation, "GetPopulation", 2, ".i"); SQGSTown.DefSQStaticMethod(engine, &ScriptTown::GetHouseCount, "GetHouseCount", 2, ".i"); SQGSTown.DefSQStaticMethod(engine, &ScriptTown::GetLocation, "GetLocation", 2, ".i"); |