Panel.xml 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="Panel" inherits="Control" version="4.0">
  3. <brief_description>
  4. Provides an opaque background for [Control] children.
  5. </brief_description>
  6. <description>
  7. Panel is a [Control] that displays an opaque background. It's commonly used as a parent and container for other types of [Control] nodes.
  8. </description>
  9. <tutorials>
  10. <link title="2D Role Playing Game Demo">https://godotengine.org/asset-library/asset/520</link>
  11. <link title="2D Finite State Machine Demo">https://godotengine.org/asset-library/asset/516</link>
  12. <link title="3D Inverse Kinematics Demo">https://godotengine.org/asset-library/asset/523</link>
  13. </tutorials>
  14. <members>
  15. <member name="mode" type="int" setter="set_mode" getter="get_mode" enum="Panel.Mode" default="0">
  16. </member>
  17. </members>
  18. <constants>
  19. <constant name="MODE_BACKGROUND" value="0" enum="Mode">
  20. </constant>
  21. <constant name="MODE_FOREGROUND" value="1" enum="Mode">
  22. </constant>
  23. </constants>
  24. <theme_items>
  25. <theme_item name="panel" data_type="style" type="StyleBox">
  26. The style of this [Panel].
  27. </theme_item>
  28. <theme_item name="panel_fg" data_type="style" type="StyleBox">
  29. </theme_item>
  30. </theme_items>
  31. </class>