Cross-reference ColorRect and ReferenceRect in the class reference

They use the same underlying `CanvasItem.draw_rect()` API.
This commit is contained in:
Andrii Doroshenko (Xrayez) 2020-10-19 20:18:53 +03:00
parent 9dad483920
commit 803b046b38
2 changed files with 2 additions and 2 deletions

View File

@ -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>

View File

@ -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>