ColorPickerButton.xml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="ColorPickerButton" inherits="Button" category="Core" version="3.1.2">
  3. <brief_description>
  4. Button that pops out a [ColorPicker].
  5. </brief_description>
  6. <description>
  7. Encapsulates a [ColorPicker] making it accessible by pressing a button. Pressing the button will toggle the [ColorPicker] visibility.
  8. </description>
  9. <tutorials>
  10. </tutorials>
  11. <methods>
  12. <method name="get_picker">
  13. <return type="ColorPicker">
  14. </return>
  15. <description>
  16. Returns the [ColorPicker] that this node toggles.
  17. </description>
  18. </method>
  19. <method name="get_popup">
  20. <return type="PopupPanel">
  21. </return>
  22. <description>
  23. Returns the control's [PopupPanel] which allows you to connect to popup signals. This allows you to handle events when the ColorPicker is shown or hidden.
  24. </description>
  25. </method>
  26. </methods>
  27. <members>
  28. <member name="color" type="Color" setter="set_pick_color" getter="get_pick_color">
  29. The currently selected color.
  30. </member>
  31. <member name="edit_alpha" type="bool" setter="set_edit_alpha" getter="is_editing_alpha">
  32. If [code]true[/code], the alpha channel in the displayed [ColorPicker] will be visible. Default value: [code]true[/code].
  33. </member>
  34. </members>
  35. <signals>
  36. <signal name="color_changed">
  37. <argument index="0" name="color" type="Color">
  38. </argument>
  39. <description>
  40. Emitted when the color changes.
  41. </description>
  42. </signal>
  43. <signal name="popup_closed">
  44. <description>
  45. </description>
  46. </signal>
  47. </signals>
  48. <constants>
  49. </constants>
  50. <theme_items>
  51. <theme_item name="bg" type="Texture">
  52. </theme_item>
  53. <theme_item name="disabled" type="StyleBox">
  54. </theme_item>
  55. <theme_item name="focus" type="StyleBox">
  56. </theme_item>
  57. <theme_item name="font" type="Font">
  58. </theme_item>
  59. <theme_item name="font_color" type="Color">
  60. </theme_item>
  61. <theme_item name="font_color_disabled" type="Color">
  62. </theme_item>
  63. <theme_item name="font_color_hover" type="Color">
  64. </theme_item>
  65. <theme_item name="font_color_pressed" type="Color">
  66. </theme_item>
  67. <theme_item name="hover" type="StyleBox">
  68. </theme_item>
  69. <theme_item name="hseparation" type="int">
  70. </theme_item>
  71. <theme_item name="normal" type="StyleBox">
  72. </theme_item>
  73. <theme_item name="pressed" type="StyleBox">
  74. </theme_item>
  75. </theme_items>
  76. </class>