[doc] Use "param" instead of "code" to refer to parameters #3
This commit is contained in:
parent
317ced8204
commit
1f72f48361
50 changed files with 362 additions and 362 deletions
|
|
@ -24,8 +24,8 @@
|
|||
<param index="3" name="color" type="Color" default="Color(1, 1, 1, 1)" />
|
||||
<param index="4" name="inline_align" type="int" enum="InlineAlignment" default="5" />
|
||||
<description>
|
||||
Adds an image's opening and closing tags to the tag stack, optionally providing a [code]width[/code] and [code]height[/code] to resize the image and a [code]color[/code] to tint the image.
|
||||
If [code]width[/code] or [code]height[/code] is set to 0, the image size will be adjusted in order to keep the original aspect ratio.
|
||||
Adds an image's opening and closing tags to the tag stack, optionally providing a [param width] and [param height] to resize the image and a [param color] to tint the image.
|
||||
If [param width] or [param height] is set to 0, the image size will be adjusted in order to keep the original aspect ratio.
|
||||
</description>
|
||||
</method>
|
||||
<method name="add_text">
|
||||
|
|
@ -39,7 +39,7 @@
|
|||
<return type="void" />
|
||||
<param index="0" name="bbcode" type="String" />
|
||||
<description>
|
||||
Parses [code]bbcode[/code] and adds tags to the tag stack as needed.
|
||||
Parses [param bbcode] and adds tags to the tag stack as needed.
|
||||
[b]Note:[/b] Using this method, you can't close a tag that was opened in a previous [method append_text] call. This is done to improve performance, especially when updating large RichTextLabels since rebuilding the whole BBCode every time would be slower. If you absolutely need to close a tag in a future method call, append the [member text] instead of using [method append_text].
|
||||
</description>
|
||||
</method>
|
||||
|
|
@ -176,7 +176,7 @@
|
|||
<return type="void" />
|
||||
<param index="0" name="effect" type="Variant" />
|
||||
<description>
|
||||
Installs a custom effect. [code]effect[/code] should be a valid [RichTextEffect].
|
||||
Installs a custom effect. [param effect] should be a valid [RichTextEffect].
|
||||
</description>
|
||||
</method>
|
||||
<method name="is_menu_visible" qualifiers="const">
|
||||
|
|
@ -208,7 +208,7 @@
|
|||
<return type="Dictionary" />
|
||||
<param index="0" name="expressions" type="PackedStringArray" />
|
||||
<description>
|
||||
Parses BBCode parameter [code]expressions[/code] into a dictionary.
|
||||
Parses BBCode parameter [param expressions] into a dictionary.
|
||||
</description>
|
||||
</method>
|
||||
<method name="pop">
|
||||
|
|
@ -294,7 +294,7 @@
|
|||
<return type="void" />
|
||||
<param index="0" name="level" type="int" />
|
||||
<description>
|
||||
Adds an [code][indent][/code] tag to the tag stack. Multiplies [code]level[/code] by current [member tab_size] to determine new margin length.
|
||||
Adds an [code][indent][/code] tag to the tag stack. Multiplies [param level] by current [member tab_size] to determine new margin length.
|
||||
</description>
|
||||
</method>
|
||||
<method name="push_italics">
|
||||
|
|
@ -309,7 +309,7 @@
|
|||
<param index="1" name="type" type="int" enum="RichTextLabel.ListType" />
|
||||
<param index="2" name="capitalize" type="bool" />
|
||||
<description>
|
||||
Adds [code][ol][/code] or [code][ul][/code] tag to the tag stack. Multiplies [code]level[/code] by current [member tab_size] to determine new margin length.
|
||||
Adds [code][ol][/code] or [code][ul][/code] tag to the tag stack. Multiplies [param level] by current [member tab_size] to determine new margin length.
|
||||
</description>
|
||||
</method>
|
||||
<method name="push_meta">
|
||||
|
|
@ -380,21 +380,21 @@
|
|||
<param index="0" name="line" type="int" />
|
||||
<description>
|
||||
Removes a line of content from the label. Returns [code]true[/code] if the line exists.
|
||||
The [code]line[/code] argument is the index of the line to remove, it can take values in the interval [code][0, get_line_count() - 1][/code].
|
||||
The [param line] argument is the index of the line to remove, it can take values in the interval [code][0, get_line_count() - 1][/code].
|
||||
</description>
|
||||
</method>
|
||||
<method name="scroll_to_line">
|
||||
<return type="void" />
|
||||
<param index="0" name="line" type="int" />
|
||||
<description>
|
||||
Scrolls the window's top line to match [code]line[/code].
|
||||
Scrolls the window's top line to match [param line].
|
||||
</description>
|
||||
</method>
|
||||
<method name="scroll_to_paragraph">
|
||||
<return type="void" />
|
||||
<param index="0" name="paragraph" type="int" />
|
||||
<description>
|
||||
Scrolls the window's top line to match first line of the [code]paragraph[/code].
|
||||
Scrolls the window's top line to match first line of the [param paragraph].
|
||||
</description>
|
||||
</method>
|
||||
<method name="select_all">
|
||||
|
|
@ -440,9 +440,9 @@
|
|||
<param index="1" name="expand" type="bool" />
|
||||
<param index="2" name="ratio" type="int" />
|
||||
<description>
|
||||
Edits the selected column's expansion options. If [code]expand[/code] is [code]true[/code], the column expands in proportion to its expansion ratio versus the other columns' ratios.
|
||||
Edits the selected column's expansion options. If [param expand] is [code]true[/code], the column expands in proportion to its expansion ratio versus the other columns' ratios.
|
||||
For example, 2 columns with ratios 3 and 4 plus 70 pixels in available width would expand 30 and 40 pixels, respectively.
|
||||
If [code]expand[/code] is [code]false[/code], the column will not contribute to the total ratio.
|
||||
If [param expand] is [code]false[/code], the column will not contribute to the total ratio.
|
||||
</description>
|
||||
</method>
|
||||
</methods>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue