summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
authortruebrain <truebrain@openttd.org>2011-12-19 21:05:14 +0000
committertruebrain <truebrain@openttd.org>2011-12-19 21:05:14 +0000
commit403cd3acdb7b7fedf2b5e823326611bb32113385 (patch)
treedff28e68ec5c8015279ea1120dc822f2896f9ace /src/game
parent3ada3b9cc5b63a593c2b2655aafedbcbdedcd041 (diff)
downloadopenttd-403cd3acdb7b7fedf2b5e823326611bb32113385.tar.xz
(svn r23631) -Add: ScriptWindow, to manipulate windows on the client (GameScript only)
Diffstat (limited to 'src/game')
-rw-r--r--src/game/game_instance.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/game_instance.cpp b/src/game/game_instance.cpp
index ffe9a2db5..daa122158 100644
--- a/src/game/game_instance.cpp
+++ b/src/game/game_instance.cpp
@@ -75,6 +75,7 @@
#include "../script/api/game/game_viewport.hpp.sq"
#include "../script/api/game/game_waypoint.hpp.sq"
#include "../script/api/game/game_waypointlist.hpp.sq"
+#include "../script/api/game/game_window.hpp.sq"
GameInstance::GameInstance() :
@@ -130,6 +131,7 @@ void GameInstance::RegisterAPI()
SQGSEventSubsidyOfferExpired_Register(this->engine);
SQGSEventTownFounded_Register(this->engine);
SQGSEventVehicleCrashed_Register(this->engine);
+ SQGSEventWindowWidgetClick_Register(this->engine);
SQGSExecMode_Register(this->engine);
SQGSGame_Register(this->engine);
SQGSGameSettings_Register(this->engine);
@@ -174,6 +176,7 @@ void GameInstance::RegisterAPI()
SQGSWaypoint_Register(this->engine);
SQGSWaypointList_Register(this->engine);
SQGSWaypointList_Vehicle_Register(this->engine);
+ SQGSWindow_Register(this->engine);
}