浏览代码

Enable onMouseMove script method for GameTSCtrl

Enables the onMouseMove method for scripting in the GameTSCtrl class.
Olathuss 7 月之前
父节点
当前提交
59b938151d
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      Engine/source/T3D/gameTSCtrl.cpp

+ 2 - 0
Engine/source/T3D/gameTSCtrl.cpp

@@ -158,6 +158,8 @@ void GameTSCtrl::onMouseMove(const GuiEvent &evt)
          lineTestEnd = pos + vec * 1000;
       }
    }
+   if (isMethod("onMouseMove"))
+      makeScriptCall("onMouseMove", evt);
 }
 
 void GameTSCtrl::onRender(Point2I offset, const RectI &updateRect)