瀏覽代碼

Merge pull request #1137 from eightyeight/moveselection

Fix changes to moveSelection API
Daniel Buckmaster 10 年之前
父節點
當前提交
75bb3303d4
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Engine/source/gui/editor/guiEditCtrl.cpp

+ 2 - 2
Engine/source/gui/editor/guiEditCtrl.cpp

@@ -2575,9 +2575,9 @@ DefineConsoleMethod( GuiEditCtrl, deleteSelection, void, (), , "() - Delete the
 
 //-----------------------------------------------------------------------------
 
-DefineConsoleMethod( GuiEditCtrl, moveSelection, void, (Point2I pos), , "Move all controls in the selection by (dx,dy) pixels.")
+DefineConsoleMethod( GuiEditCtrl, moveSelection, void, (S32 dx, S32 dy), , "Move all controls in the selection by (dx,dy) pixels.")
 {
-   object->moveAndSnapSelection(Point2I(pos));
+   object->moveAndSnapSelection(Point2I(dx, dy));
 }
 
 //-----------------------------------------------------------------------------