From 215db9ff71c2c2fb3fe670fb8ea9109fca5b5a6a Mon Sep 17 00:00:00 2001 From: Kelly Thomas Date: Sun, 7 Oct 2018 02:13:41 +0800 Subject: [PATCH 1/2] add ONE constants to Vector2 and Vector3 --- core/variant_call.cpp | 2 ++ doc/classes/Vector2.xml | 5 ++++- doc/classes/Vector3.xml | 5 ++++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/core/variant_call.cpp b/core/variant_call.cpp index f7fa2ebc706..8693a584f2b 100644 --- a/core/variant_call.cpp +++ b/core/variant_call.cpp @@ -1895,6 +1895,7 @@ void register_variant_methods() { _VariantCall::add_constant(Variant::VECTOR3, "AXIS_Z", Vector3::AXIS_Z); _VariantCall::add_variant_constant(Variant::VECTOR3, "ZERO", Vector3(0, 0, 0)); + _VariantCall::add_variant_constant(Variant::VECTOR3, "ONE", Vector3(1, 1, 1)); _VariantCall::add_variant_constant(Variant::VECTOR3, "INF", Vector3(Math_INF, Math_INF, Math_INF)); _VariantCall::add_variant_constant(Variant::VECTOR3, "LEFT", Vector3(-1, 0, 0)); _VariantCall::add_variant_constant(Variant::VECTOR3, "RIGHT", Vector3(1, 0, 0)); @@ -1904,6 +1905,7 @@ void register_variant_methods() { _VariantCall::add_variant_constant(Variant::VECTOR3, "BACK", Vector3(0, 0, 1)); _VariantCall::add_variant_constant(Variant::VECTOR2, "ZERO", Vector2(0, 0)); + _VariantCall::add_variant_constant(Variant::VECTOR2, "ONE", Vector2(1, 1)); _VariantCall::add_variant_constant(Variant::VECTOR2, "INF", Vector2(Math_INF, Math_INF)); _VariantCall::add_variant_constant(Variant::VECTOR2, "LEFT", Vector2(-1, 0)); _VariantCall::add_variant_constant(Variant::VECTOR2, "RIGHT", Vector2(1, 0)); diff --git a/doc/classes/Vector2.xml b/doc/classes/Vector2.xml index 7e03e7f0fe6..c323cf69926 100644 --- a/doc/classes/Vector2.xml +++ b/doc/classes/Vector2.xml @@ -267,7 +267,10 @@ - Null vector. + Zero vector. + + + One vector. Infinite vector. diff --git a/doc/classes/Vector3.xml b/doc/classes/Vector3.xml index 4211c34d8e2..8c4e08778df 100644 --- a/doc/classes/Vector3.xml +++ b/doc/classes/Vector3.xml @@ -280,7 +280,10 @@ Enumerated value for the Z axis. - Null vector. + Zero vector. + + + One vector. Infinite vector. From b150ceb62cfd91f11b62f823f3dd5517a640cbc3 Mon Sep 17 00:00:00 2001 From: Kelly Thomas Date: Sun, 7 Oct 2018 21:52:07 +0800 Subject: [PATCH 2/2] Update class documentation xml --- doc/classes/BaseButton.xml | 2 + doc/classes/CheckBox.xml | 4 ++ doc/classes/CheckButton.xml | 4 ++ doc/classes/ProjectSettings.xml | 18 +++++--- doc/classes/RichTextLabel.xml | 18 +++++--- doc/classes/ScriptCreateDialog.xml | 2 + doc/classes/SpinBox.xml | 2 + doc/classes/StreamPeerSSL.xml | 2 + doc/classes/TreeItem.xml | 7 +--- doc/classes/VisualServer.xml | 2 +- modules/mono/doc_classes/GodotSharp.xml | 42 +++++++++++++++---- .../opensimplex/doc_classes/NoiseTexture.xml | 18 -------- 12 files changed, 78 insertions(+), 43 deletions(-) diff --git a/doc/classes/BaseButton.xml b/doc/classes/BaseButton.xml index 3ff86340100..33647702801 100644 --- a/doc/classes/BaseButton.xml +++ b/doc/classes/BaseButton.xml @@ -106,6 +106,8 @@ The state of buttons are disabled. + + Require just a press to consider the button clicked. diff --git a/doc/classes/CheckBox.xml b/doc/classes/CheckBox.xml index fb2cf64d985..a2a7cf85e89 100644 --- a/doc/classes/CheckBox.xml +++ b/doc/classes/CheckBox.xml @@ -31,10 +31,14 @@ + + + + diff --git a/doc/classes/CheckButton.xml b/doc/classes/CheckButton.xml index deba9a17b61..24875017fef 100644 --- a/doc/classes/CheckButton.xml +++ b/doc/classes/CheckButton.xml @@ -29,10 +29,14 @@ + + + + diff --git a/doc/classes/ProjectSettings.xml b/doc/classes/ProjectSettings.xml index 0b7c0a63ad2..4516fc522a2 100644 --- a/doc/classes/ProjectSettings.xml +++ b/doc/classes/ProjectSettings.xml @@ -102,7 +102,7 @@ - Returns true if the specified property exists and its initial value differs from the current value. + Returns true if the specified property exists and its initial value differs from the current value. @@ -111,14 +111,14 @@ - Returns the initial value of the specified property. Returns null if the property does not exist. + Returns the initial value of the specified property. Returns null if the property does not exist. - Saves the configuration to the project.godot file. + Saves the configuration to the project.godot file. @@ -127,7 +127,7 @@ - Saves the configuration to a custom file. + Saves the configuration to a custom file. @@ -213,8 +213,6 @@ Mix rate used for audio. In general, it's better to not touch this and leave it to the host operating system. - - Setting to hardcode audio delay when playing video. Best to leave this untouched unless you know what you are doing. @@ -697,6 +695,14 @@ + + + + + + + + Force vertex shading for all rendering. This can increase performance a lot, but also reduces quality inmensely. Can work to optimize on very low end mobile. diff --git a/doc/classes/RichTextLabel.xml b/doc/classes/RichTextLabel.xml index 618f2f42b2e..357d2e7a15a 100644 --- a/doc/classes/RichTextLabel.xml +++ b/doc/classes/RichTextLabel.xml @@ -166,6 +166,12 @@ Adds a meta tag to the tag stack. Similar to the bbcode [code][url=something]{text}[/url][/code], but supports non-[String] metadata types. + + + + + + @@ -304,15 +310,17 @@ - + - + - + - + - + + + diff --git a/doc/classes/ScriptCreateDialog.xml b/doc/classes/ScriptCreateDialog.xml index 3de068dbcbf..67ce9a8e87b 100644 --- a/doc/classes/ScriptCreateDialog.xml +++ b/doc/classes/ScriptCreateDialog.xml @@ -24,6 +24,8 @@ + + Prefills required fields to configure the ScriptCreateDialog for use. diff --git a/doc/classes/SpinBox.xml b/doc/classes/SpinBox.xml index 0fcd5bbaf5a..5087cf355ae 100644 --- a/doc/classes/SpinBox.xml +++ b/doc/classes/SpinBox.xml @@ -19,6 +19,8 @@ + + diff --git a/doc/classes/StreamPeerSSL.xml b/doc/classes/StreamPeerSSL.xml index cf8769d22bd..33948df509d 100644 --- a/doc/classes/StreamPeerSSL.xml +++ b/doc/classes/StreamPeerSSL.xml @@ -63,6 +63,8 @@ A status representing a [code]StreamPeerSSL[/code] that is disconnected. + + A status representing a [code]StreamPeerSSL[/code] that is connected to a host. diff --git a/doc/classes/TreeItem.xml b/doc/classes/TreeItem.xml index c5a63b1acbc..a7c5c3f28c5 100644 --- a/doc/classes/TreeItem.xml +++ b/doc/classes/TreeItem.xml @@ -559,13 +559,10 @@ Cell contains a range. - - Cell contains a range expression. - - + Cell contains an icon. - + Align text to the left. See [code]set_text_align()[/code]. diff --git a/doc/classes/VisualServer.xml b/doc/classes/VisualServer.xml index 58b3d33cdbe..225a1f2bbad 100644 --- a/doc/classes/VisualServer.xml +++ b/doc/classes/VisualServer.xml @@ -4380,7 +4380,7 @@ - + diff --git a/modules/mono/doc_classes/GodotSharp.xml b/modules/mono/doc_classes/GodotSharp.xml index 985c66464b5..921c1ca8258 100644 --- a/modules/mono/doc_classes/GodotSharp.xml +++ b/modules/mono/doc_classes/GodotSharp.xml @@ -23,20 +23,46 @@ Detaches the current thread from the mono runtime. - + + + + + + + + + + + + + + + + + + + Returns whether the domain is being finalized. + + + + + + + + + + + + + + + Returns whether the scripts domain is loaded. - - - - - Returns whether the scripts domain is being finalized. - - diff --git a/modules/opensimplex/doc_classes/NoiseTexture.xml b/modules/opensimplex/doc_classes/NoiseTexture.xml index 9642865c437..d88abb3180b 100644 --- a/modules/opensimplex/doc_classes/NoiseTexture.xml +++ b/modules/opensimplex/doc_classes/NoiseTexture.xml @@ -12,24 +12,6 @@ - - - - - - - Set texture height. - - - - - - - - - Set texture width. - -