ReferenceRect.xml 1.2 KB

12345678910111213141516171819202122
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="ReferenceRect" inherits="Control" version="4.0">
  3. <brief_description>
  4. Reference frame for GUI.
  5. </brief_description>
  6. <description>
  7. 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.
  8. </description>
  9. <tutorials>
  10. </tutorials>
  11. <members>
  12. <member name="border_color" type="Color" setter="set_border_color" getter="get_border_color" default="Color(1, 0, 0, 1)">
  13. Sets the border [Color] of the [ReferenceRect].
  14. </member>
  15. <member name="border_width" type="float" setter="set_border_width" getter="get_border_width" default="1.0">
  16. Sets the border width of the [ReferenceRect]. The border grows both inwards and outwards with respect to the rectangle box.
  17. </member>
  18. <member name="editor_only" type="bool" setter="set_editor_only" getter="get_editor_only" default="true">
  19. If set to [code]true[/code], the [ReferenceRect] will only be visible while in editor. Otherwise, [ReferenceRect] will be visible in game.
  20. </member>
  21. </members>
  22. </class>