Add border_width to ReferenceRect

Exposes a hidden parameter behind `CanvasItem.draw_rect()`.
This commit is contained in:
Andrii Doroshenko (Xrayez)
2020-10-19 20:41:25 +03:00
parent 9dad483920
commit aef00021a9
3 changed files with 24 additions and 10 deletions

View File

@ -14,6 +14,9 @@
<member name="border_color" type="Color" setter="set_border_color" getter="get_border_color" default="Color( 1, 0, 0, 1 )">
Sets the border [Color] of the [ReferenceRect].
</member>
<member name="border_width" type="float" setter="set_border_width" getter="get_border_width" default="1.0">
Sets the border width of the [ReferenceRect]. The border grows both inwards and outwards with respect to the rectangle box.
</member>
<member name="editor_only" type="bool" setter="set_editor_only" getter="get_editor_only" default="true">
If set to [code]true[/code], the [ReferenceRect] will only be visible while in editor. Otherwise, [ReferenceRect] will be visible in game.
</member>