Răsfoiți Sursa

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 ani în urmă
părinte
comite
e27e2e41aa
1 a modificat fișierele cu 3 adăugiri și 1 ștergeri
  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.
 /*! 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.
     @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.
    // Upper left bound.
    Vector2 v1;
    Vector2 v1;