ColorRect.xml 874 B

12345678910111213141516171819202122232425
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="ColorRect" inherits="Control" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
  3. <brief_description>
  4. Colored rectangle.
  5. </brief_description>
  6. <description>
  7. Displays a rectangle filled with a solid [member color]. If you need to display the border alone, consider using [ReferenceRect] instead.
  8. </description>
  9. <tutorials>
  10. <link title="2D Dodge The Creeps Demo">https://godotengine.org/asset-library/asset/515</link>
  11. </tutorials>
  12. <methods>
  13. </methods>
  14. <members>
  15. <member name="color" type="Color" setter="set_frame_color" getter="get_frame_color" default="Color( 1, 1, 1, 1 )">
  16. The fill color.
  17. [codeblock]
  18. $ColorRect.color = Color(1, 0, 0, 1) # Set ColorRect's color to red.
  19. [/codeblock]
  20. </member>
  21. </members>
  22. <constants>
  23. </constants>
  24. </class>