2
0

MenuButton.xml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="MenuButton" inherits="Button" category="Core" version="3.0-beta">
  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" qualifiers="const">
  15. <return type="PopupMenu">
  16. </return>
  17. <description>
  18. Return the [PopupMenu] contained in this button.
  19. </description>
  20. </method>
  21. </methods>
  22. <signals>
  23. <signal name="about_to_show">
  24. <description>
  25. Emitted when [PopupMenu] of this MenuButton is about to show.
  26. </description>
  27. </signal>
  28. </signals>
  29. <constants>
  30. </constants>
  31. <theme_items>
  32. <theme_item name="disabled" type="StyleBox">
  33. </theme_item>
  34. <theme_item name="focus" type="StyleBox">
  35. </theme_item>
  36. <theme_item name="font" type="Font">
  37. </theme_item>
  38. <theme_item name="font_color" type="Color">
  39. </theme_item>
  40. <theme_item name="font_color_disabled" type="Color">
  41. </theme_item>
  42. <theme_item name="font_color_hover" type="Color">
  43. </theme_item>
  44. <theme_item name="font_color_pressed" type="Color">
  45. </theme_item>
  46. <theme_item name="hover" type="StyleBox">
  47. </theme_item>
  48. <theme_item name="hseparation" type="int">
  49. </theme_item>
  50. <theme_item name="normal" type="StyleBox">
  51. </theme_item>
  52. <theme_item name="pressed" type="StyleBox">
  53. </theme_item>
  54. </theme_items>
  55. </class>