summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/classes/CanvasItem.xml11
-rw-r--r--doc/classes/RichTextLabel.xml16
2 files changed, 25 insertions, 2 deletions
diff --git a/doc/classes/CanvasItem.xml b/doc/classes/CanvasItem.xml
index d71762801c..367eff938c 100644
--- a/doc/classes/CanvasItem.xml
+++ b/doc/classes/CanvasItem.xml
@@ -80,6 +80,17 @@
Draws a colored polygon of any amount of points, convex or concave. Unlike [method draw_polygon], a single color must be specified for the whole polygon.
</description>
</method>
+ <method name="draw_dashed_line">
+ <return type="void" />
+ <argument index="0" name="from" type="Vector2" />
+ <argument index="1" name="to" type="Vector2" />
+ <argument index="2" name="color" type="Color" />
+ <argument index="3" name="width" type="float" default="1.0" />
+ <argument index="4" name="dash" type="float" default="2.0" />
+ <description>
+ Draws a dashed line from a 2D point to another, with a given color and width. See also [method draw_multiline] and [method draw_polyline].
+ </description>
+ </method>
<method name="draw_end_animation">
<return type="void" />
<description>
diff --git a/doc/classes/RichTextLabel.xml b/doc/classes/RichTextLabel.xml
index f480071d32..87bfb97fd3 100644
--- a/doc/classes/RichTextLabel.xml
+++ b/doc/classes/RichTextLabel.xml
@@ -256,6 +256,13 @@
Adds a [code][font_size][/code] tag to the tag stack. Overrides default font size for its duration.
</description>
</method>
+ <method name="push_hint">
+ <return type="void" />
+ <argument index="0" name="description" type="String" />
+ <description>
+ Adds a [code][hint][/code] tag to the tag stack. Same as BBCode [code][hint=something]{text}[/hint][/code].
+ </description>
+ </method>
<method name="push_indent">
<return type="void" />
<argument index="0" name="level" type="int" />
@@ -423,6 +430,9 @@
If [code]true[/code], the label's height will be automatically updated to fit its content.
[b]Note:[/b] This property is used as a workaround to fix issues with [RichTextLabel] in [Container]s, but it's unreliable in some cases and will be removed in future versions.
</member>
+ <member name="hint_underlined" type="bool" setter="set_hint_underline" getter="is_hint_underlined" default="true">
+ If [code]true[/code], the label underlines hint tags such as [code][hint=description]{text}[/hint][/code].
+ </member>
<member name="language" type="String" setter="set_language" getter="get_language" default="&quot;&quot;">
Language code used for line-breaking and text shaping algorithms, if left empty current locale is used instead.
</member>
@@ -563,9 +573,11 @@
</constant>
<constant name="ITEM_META" value="23" enum="ItemType">
</constant>
- <constant name="ITEM_DROPCAP" value="24" enum="ItemType">
+ <constant name="ITEM_HINT" value="24" enum="ItemType">
+ </constant>
+ <constant name="ITEM_DROPCAP" value="25" enum="ItemType">
</constant>
- <constant name="ITEM_CUSTOMFX" value="25" enum="ItemType">
+ <constant name="ITEM_CUSTOMFX" value="26" enum="ItemType">
</constant>
<constant name="VC_CHARS_BEFORE_SHAPING" value="0" enum="VisibleCharactersBehavior">
Trims text before the shaping. e.g, increasing [member visible_characters] value is visually identical to typing the text.