Fix ReferenceRect node

ReferenceRect node by default was only displaying in the editor and not when the game is running.
This commit is contained in:
Zak
2019-06-25 12:00:32 +03:00
parent 25022a1d89
commit d29b1b7917
3 changed files with 28 additions and 6 deletions

View File

@ -4,7 +4,7 @@
Reference frame for GUI.
</brief_description>
<description>
Reference frame for GUI. It's just like an empty control, except an outline border [member border_color] is displayed while editing around its size at all times.
A rectangle box that displays only a [member border_color] border color around its rectangle. [ReferenceRect] has no fill [Color].
</description>
<tutorials>
</tutorials>
@ -12,7 +12,10 @@
</methods>
<members>
<member name="border_color" type="Color" setter="set_border_color" getter="get_border_color">
Determines the border [Color] of the [ReferenceRect].
Sets the border [Color] of the [ReferenceRect].
</member>
<member name="editor_only" type="bool" setter="set_editor_only" getter="get_editor_only">
If set to [code]true[/code], the [ReferenceRect] will only be visible while in editor. Otherwise, [ReferenceRect] will be visible in game.
</member>
</members>
<constants>