diff options
author | Andrii Doroshenko (Xrayez) <xrayez@gmail.com> | 2020-10-19 20:18:53 +0300 |
---|---|---|
committer | Andrii Doroshenko (Xrayez) <xrayez@gmail.com> | 2020-10-20 13:59:41 +0300 |
commit | 803b046b38397ade406b7ae2ec1f7191d08e3753 (patch) | |
tree | 5a7cce81edbaef7fd5b35b67ac6d2e1e5ea38551 /doc/classes | |
parent | 9dad483920ffa3c32a03f1f4cc869b3f7d1cbe0e (diff) |
Cross-reference `ColorRect` and `ReferenceRect` in the class reference
They use the same underlying `CanvasItem.draw_rect()` API.
Diffstat (limited to 'doc/classes')
-rw-r--r-- | doc/classes/ColorRect.xml | 2 | ||||
-rw-r--r-- | doc/classes/ReferenceRect.xml | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/classes/ColorRect.xml b/doc/classes/ColorRect.xml index 072759e383..7c0cd981e4 100644 --- a/doc/classes/ColorRect.xml +++ b/doc/classes/ColorRect.xml @@ -4,7 +4,7 @@ Colored rectangle. </brief_description> <description> - Displays a colored rectangle. + Displays a rectangle filled with a solid [member color]. If you need to display the border alone, consider using [ReferenceRect] instead. </description> <tutorials> <link title="2D Dodge The Creeps Demo">https://godotengine.org/asset-library/asset/515</link> diff --git a/doc/classes/ReferenceRect.xml b/doc/classes/ReferenceRect.xml index 4f8f71b3db..b99970199a 100644 --- a/doc/classes/ReferenceRect.xml +++ b/doc/classes/ReferenceRect.xml @@ -4,7 +4,7 @@ Reference frame for GUI. </brief_description> <description> - A rectangle box that displays only a [member border_color] border color around its rectangle. [ReferenceRect] has no fill [Color]. + A rectangle box that displays only a [member border_color] border color around its rectangle. [ReferenceRect] has no fill [Color]. If you need to display a rectangle filled with a solid color, consider using [ColorRect] instead. </description> <tutorials> </tutorials> |