Просмотр исходного кода

Corrected argument instructions for SceneWindow::setTargetCameraArea

Minor changes to PR #219 to align it with the in-code comments. Thanks to capnlove for the original submission.
Mike Lilligreen 11 лет назад
Родитель
Сommit
e27e2e41aa
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      engine/source/2d/gui/SceneWindow_ScriptBinding.h

+ 3 - 1
engine/source/2d/gui/SceneWindow_ScriptBinding.h

@@ -374,9 +374,11 @@ ConsoleMethodWithDocs(SceneWindow, getTargetCameraSize, ConsoleString, 2, 2, ())
 //-----------------------------------------------------------------------------
 
 /*! Set the target camera area.
+    @param x1 / y1 Coordinates of the upper left corner of the target area.
+    @param x2 / y2 Coordinates of the lower right corner of the target area.
     @return No return value.
 */
-ConsoleMethodWithDocs(SceneWindow, setTargetCameraArea, ConsoleVoid, 3, 6, (x / y / width / height))
+ConsoleMethodWithDocs(SceneWindow, setTargetCameraArea, ConsoleVoid, 3, 6, (x1 / y1 / x2 / y2))
 {
    // Upper left bound.
    Vector2 v1;