ReferenceRect.xml 1.3 KB

123456789101112131415161718192021222324252627
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="ReferenceRect" inherits="Control" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
  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. <methods>
  12. </methods>
  13. <members>
  14. <member name="border_color" type="Color" setter="set_border_color" getter="get_border_color" default="Color( 1, 0, 0, 1 )">
  15. Sets the border [Color] of the [ReferenceRect].
  16. </member>
  17. <member name="border_width" type="float" setter="set_border_width" getter="get_border_width" default="1.0">
  18. Sets the border width of the [ReferenceRect]. The border grows both inwards and outwards with respect to the rectangle box.
  19. </member>
  20. <member name="editor_only" type="bool" setter="set_editor_only" getter="get_editor_only" default="true">
  21. If set to [code]true[/code], the [ReferenceRect] will only be visible while in editor. Otherwise, [ReferenceRect] will be visible in game.
  22. </member>
  23. </members>
  24. <constants>
  25. </constants>
  26. </class>