summaryrefslogtreecommitdiffstats
path: root/doc/classes
diff options
context:
space:
mode:
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/ClassDB.xml8
-rw-r--r--doc/classes/OS.xml10
-rw-r--r--doc/classes/TextServer.xml1
-rw-r--r--doc/classes/TextServerExtension.xml1
4 files changed, 15 insertions, 5 deletions
diff --git a/doc/classes/ClassDB.xml b/doc/classes/ClassDB.xml
index bdb0ec9bc6..59ed0b8fe7 100644
--- a/doc/classes/ClassDB.xml
+++ b/doc/classes/ClassDB.xml
@@ -91,6 +91,14 @@
Returns the value of [param property] of [param object] or its ancestry.
</description>
</method>
+ <method name="class_get_property_default_value" qualifiers="const">
+ <return type="Variant" />
+ <param index="0" name="class" type="StringName" />
+ <param index="1" name="property" type="StringName" />
+ <description>
+ Returns the default value of [param property] of [param class] or its ancestor classes.
+ </description>
+ </method>
<method name="class_get_property_list" qualifiers="const">
<return type="Dictionary[]" />
<param index="0" name="class" type="StringName" />
diff --git a/doc/classes/OS.xml b/doc/classes/OS.xml
index a130b06dba..7c69bc6ed2 100644
--- a/doc/classes/OS.xml
+++ b/doc/classes/OS.xml
@@ -189,26 +189,26 @@
for argument in OS.get_cmdline_args():
if argument.contains("="):
var key_value = argument.split("=")
- arguments[key_value[0].lstrip("--")] = key_value[1]
+ arguments[key_value[0].trim_prefix("--")] = key_value[1]
else:
# Options without an argument will be present in the dictionary,
# with the value set to an empty string.
- arguments[argument.lstrip("--")] = ""
+ arguments[argument.trim_prefix("--")] = ""
[/gdscript]
[csharp]
- var arguments = new Godot.Collections.Dictionary();
+ var arguments = new Dictionary&lt;string, string&gt;();
foreach (var argument in OS.GetCmdlineArgs())
{
if (argument.Contains('='))
{
string[] keyValue = argument.Split("=");
- arguments[keyValue[0].LStrip("--")] = keyValue[1];
+ arguments[keyValue[0].TrimPrefix("--")] = keyValue[1];
}
else
{
// Options without an argument will be present in the dictionary,
// with the value set to an empty string.
- arguments[keyValue[0].LStrip("--")] = "";
+ arguments[argument.TrimPrefix("--")] = "";
}
}
[/csharp]
diff --git a/doc/classes/TextServer.xml b/doc/classes/TextServer.xml
index c0cd7f79e7..c30e83a85d 100644
--- a/doc/classes/TextServer.xml
+++ b/doc/classes/TextServer.xml
@@ -1505,6 +1505,7 @@
<return type="PackedInt32Array" />
<param index="0" name="shaped" type="RID" />
<param index="1" name="grapheme_flags" type="int" enum="TextServer.GraphemeFlag" is_bitfield="true" default="264" />
+ <param index="2" name="skip_grapheme_flags" type="int" enum="TextServer.GraphemeFlag" is_bitfield="true" default="4" />
<description>
Breaks text into words and returns array of character ranges. Use [param grapheme_flags] to set what characters are used for breaking (see [enum GraphemeFlag]).
</description>
diff --git a/doc/classes/TextServerExtension.xml b/doc/classes/TextServerExtension.xml
index 06a0daece6..94fd69c863 100644
--- a/doc/classes/TextServerExtension.xml
+++ b/doc/classes/TextServerExtension.xml
@@ -1664,6 +1664,7 @@
<return type="PackedInt32Array" />
<param index="0" name="shaped" type="RID" />
<param index="1" name="grapheme_flags" type="int" enum="TextServer.GraphemeFlag" is_bitfield="true" />
+ <param index="2" name="skip_grapheme_flags" type="int" enum="TextServer.GraphemeFlag" is_bitfield="true" />
<description>
[b]Optional.[/b]
Breaks text into words and returns array of character ranges. Use [param grapheme_flags] to set what characters are used for breaking (see [enum TextServer.GraphemeFlag]).