From d1084df81a1efbd40c69dbb2ab1bd4a859cb1f2e Mon Sep 17 00:00:00 2001 From: Will Nations Date: Wed, 6 Dec 2017 13:47:11 -0600 Subject: [PATCH 1/3] [DOCS] Camera2D methods/constants --- doc/classes/Camera2D.xml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/doc/classes/Camera2D.xml b/doc/classes/Camera2D.xml index 86c89bf4ca6..c95691d07f5 100644 --- a/doc/classes/Camera2D.xml +++ b/doc/classes/Camera2D.xml @@ -23,6 +23,7 @@ + Removes any [code]Camera2D[/code] from the ancestor [Viewport]'s internal currently-assigned camera. @@ -43,24 +44,28 @@ + Returns the location of the [code]Camera2D[/code]'s screen-center, relative to the origin. + Returns the [Viewport] used by the camera if it is not using the default viewport. + Returns the horizontal offset of the camera. + Returns the vertical offset of the camera. @@ -84,6 +89,7 @@ + Assigns a custom [Viewport] node to the [code]Camera2D[/code]. If [code]viewport[/code] is not a [Viewport], it re-assigns the default viewport instead. @@ -92,6 +98,7 @@ + The camera's horizontal offset is set to [code]ofs[/code]. @@ -100,6 +107,7 @@ + The camera's vertical offset is set to [code]ofs[/code]. @@ -170,8 +178,10 @@ + The camera's position is fixed so that the top-left corner is always at the origin. + The camera's position takes into account vertical/horizontal offsets and the screen size. From d6a02e202212c8dfc77a1ccd891bf084d9f187cf Mon Sep 17 00:00:00 2001 From: Will Nations Date: Wed, 6 Dec 2017 12:56:15 -0600 Subject: [PATCH 2/3] [DOCS] EditorFileSystemDirectory methods --- doc/classes/EditorFileSystemDirectory.xml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/doc/classes/EditorFileSystemDirectory.xml b/doc/classes/EditorFileSystemDirectory.xml index 50b6f3680c5..1a2f73a683f 100644 --- a/doc/classes/EditorFileSystemDirectory.xml +++ b/doc/classes/EditorFileSystemDirectory.xml @@ -4,6 +4,7 @@ A diretory for the resource filesystem. + A more generalized, low-level variation of the directory concept. @@ -16,6 +17,7 @@ + Returns the index of the directory with name [code]name[/code] or [code]-1[/code] if not found. @@ -24,6 +26,7 @@ + Returns the index of the file with name [code]name[/code] or [code]-1[/code] if not found. @@ -32,12 +35,14 @@ + Returns the name of the file at index [code]idx[/code]. + Returns the number of files in this directory. @@ -46,6 +51,7 @@ + Returns [code]true[/code] if the file at index [code]idx[/code] imported properly. @@ -54,6 +60,7 @@ + Returns the path to the file at index [code]idx[/code]. @@ -62,24 +69,28 @@ + Returns the file extension of the file at index [code]idx[/code]. + Returns the name of this directory. + Returns the parent directory for this directory or null if called on a directory at [code]res://[/code] or [code]user://[/code]. + Returns the path to this directory. @@ -88,12 +99,14 @@ + Returns the subdirectory at index [code]idx[/code]. + Returns the number of subdirectories in this directory. From 2b59d30bdc3a9da6f8294f479d3f1ae230fa77b3 Mon Sep 17 00:00:00 2001 From: Will Nations Date: Wed, 6 Dec 2017 17:28:40 -0600 Subject: [PATCH 3/3] [DOCS] EditorScript methods --- doc/classes/EditorScript.xml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/classes/EditorScript.xml b/doc/classes/EditorScript.xml index fcc297a1e8c..97f126e7f72 100644 --- a/doc/classes/EditorScript.xml +++ b/doc/classes/EditorScript.xml @@ -9,7 +9,7 @@ [codeblock] tool extends EditorScript - + func _run(): print("Hello from the Godot Editor!") [/codeblock] @@ -33,6 +33,8 @@ + Adds [code]node[/code] as a child of the root node in the editor context. + WARNING: The implementation of this method is currently disabled.