ColorPickerButton.xml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="ColorPickerButton" inherits="Button" category="Core" version="3.1">
  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. <demos>
  12. </demos>
  13. <methods>
  14. <method name="get_picker">
  15. <return type="ColorPicker">
  16. </return>
  17. <description>
  18. Returns the [ColorPicker] that this node toggles.
  19. </description>
  20. </method>
  21. <method name="get_popup">
  22. <return type="PopupPanel">
  23. </return>
  24. <description>
  25. 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.
  26. </description>
  27. </method>
  28. </methods>
  29. <members>
  30. <member name="color" type="Color" setter="set_pick_color" getter="get_pick_color">
  31. The currently selected color.
  32. </member>
  33. <member name="edit_alpha" type="bool" setter="set_edit_alpha" getter="is_editing_alpha">
  34. If [code]true[/code], the alpha channel in the displayed [ColorPicker] will be visible. Default value: [code]true[/code].
  35. </member>
  36. </members>
  37. <signals>
  38. <signal name="color_changed">
  39. <argument index="0" name="color" type="Color">
  40. </argument>
  41. <description>
  42. Emitted when the color changes.
  43. </description>
  44. </signal>
  45. <signal name="popup_closed">
  46. <description>
  47. </description>
  48. </signal>
  49. </signals>
  50. <constants>
  51. </constants>
  52. <theme_items>
  53. <theme_item name="bg" type="Texture">
  54. </theme_item>
  55. <theme_item name="disabled" type="StyleBox">
  56. </theme_item>
  57. <theme_item name="focus" type="StyleBox">
  58. </theme_item>
  59. <theme_item name="font" type="Font">
  60. </theme_item>
  61. <theme_item name="font_color" type="Color">
  62. </theme_item>
  63. <theme_item name="font_color_disabled" type="Color">
  64. </theme_item>
  65. <theme_item name="font_color_hover" type="Color">
  66. </theme_item>
  67. <theme_item name="font_color_pressed" type="Color">
  68. </theme_item>
  69. <theme_item name="hover" type="StyleBox">
  70. </theme_item>
  71. <theme_item name="hseparation" type="int">
  72. </theme_item>
  73. <theme_item name="normal" type="StyleBox">
  74. </theme_item>
  75. <theme_item name="pressed" type="StyleBox">
  76. </theme_item>
  77. </theme_items>
  78. </class>