Sfoglia il codice sorgente

Merge pull request #1405 from Olathuss/my-dev

Enables onMouseMove method for scripting on the GameTSCtrl class.
Brian Roberts 7 mesi fa
parent
commit
346339904e
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  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)