MenuButton.xml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="MenuButton" inherits="Button" category="Core" version="3.0.alpha.custom_build">
  3. <brief_description>
  4. Special button that brings up a [PopupMenu] when clicked.
  5. </brief_description>
  6. <description>
  7. Special button that brings up a [PopupMenu] when clicked. That's pretty much all it does, as it's just a helper class when building GUIs.
  8. </description>
  9. <tutorials>
  10. </tutorials>
  11. <demos>
  12. </demos>
  13. <methods>
  14. <method name="get_popup">
  15. <return type="PopupMenu">
  16. </return>
  17. <description>
  18. Return the [PopupMenu] contained in this button.
  19. </description>
  20. </method>
  21. </methods>
  22. <members>
  23. <member name="items" type="Array" setter="_set_items" getter="_get_items">
  24. </member>
  25. </members>
  26. <signals>
  27. <signal name="about_to_show">
  28. <description>
  29. Emitted when [PopupMenu] of this MenuButton is about to show.
  30. </description>
  31. </signal>
  32. </signals>
  33. <constants>
  34. </constants>
  35. <theme_items>
  36. <theme_item name="disabled" type="StyleBox">
  37. </theme_item>
  38. <theme_item name="focus" type="StyleBox">
  39. </theme_item>
  40. <theme_item name="font" type="Font">
  41. </theme_item>
  42. <theme_item name="font_color" type="Color">
  43. </theme_item>
  44. <theme_item name="font_color_disabled" type="Color">
  45. </theme_item>
  46. <theme_item name="font_color_hover" type="Color">
  47. </theme_item>
  48. <theme_item name="font_color_pressed" type="Color">
  49. </theme_item>
  50. <theme_item name="hover" type="StyleBox">
  51. </theme_item>
  52. <theme_item name="hseparation" type="int">
  53. </theme_item>
  54. <theme_item name="normal" type="StyleBox">
  55. </theme_item>
  56. <theme_item name="pressed" type="StyleBox">
  57. </theme_item>
  58. </theme_items>
  59. </class>