diff options
author | Pavel Stupnikov <dp@dpointer.org> | 2018-04-24 20:19:01 +0300 |
---|---|---|
committer | frosch <github@elsenhans.name> | 2018-04-24 19:19:00 +0200 |
commit | 8e4bce58ea299527003cd2da5ef8dcb5f84b7f23 (patch) | |
tree | 021526d154b99ec8a3821fb83295685338cbee9f /src/script/api/game | |
parent | 34b63930f58aa12d008af6006411bd4492fa8a4e (diff) | |
download | openttd-8e4bce58ea299527003cd2da5ef8dcb5f84b7f23.tar.xz |
Feature: GS methods to scroll viewport for players (#6745)
Diffstat (limited to 'src/script/api/game')
-rw-r--r-- | src/script/api/game/game_viewport.hpp.sq | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/script/api/game/game_viewport.hpp.sq b/src/script/api/game/game_viewport.hpp.sq index d313f0d75..357357ae3 100644 --- a/src/script/api/game/game_viewport.hpp.sq +++ b/src/script/api/game/game_viewport.hpp.sq @@ -21,7 +21,10 @@ void SQGSViewport_Register(Squirrel *engine) SQGSViewport.PreRegister(engine); SQGSViewport.AddConstructor<void (ScriptViewport::*)(), 1>(engine, "x"); - SQGSViewport.DefSQStaticMethod(engine, &ScriptViewport::ScrollTo, "ScrollTo", 2, ".i"); + SQGSViewport.DefSQStaticMethod(engine, &ScriptViewport::ScrollTo, "ScrollTo", 2, ".i"); + SQGSViewport.DefSQStaticMethod(engine, &ScriptViewport::ScrollEveryoneTo, "ScrollEveryoneTo", 2, ".i"); + SQGSViewport.DefSQStaticMethod(engine, &ScriptViewport::ScrollCompanyClientsTo, "ScrollCompanyClientsTo", 3, ".ii"); + SQGSViewport.DefSQStaticMethod(engine, &ScriptViewport::ScrollClientTo, "ScrollClientTo", 3, ".ii"); SQGSViewport.PostRegister(engine); } |