LinkButton.xml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="LinkButton" inherits="BaseButton" category="Core" version="3.1.2">
  3. <brief_description>
  4. Simple button used to represent a link to some resource.
  5. </brief_description>
  6. <description>
  7. This kind of buttons are primarily used when the interaction with the button causes a context change (like linking to a web page).
  8. </description>
  9. <tutorials>
  10. </tutorials>
  11. <methods>
  12. </methods>
  13. <members>
  14. <member name="text" type="String" setter="set_text" getter="get_text">
  15. </member>
  16. <member name="underline" type="int" setter="set_underline_mode" getter="get_underline_mode" enum="LinkButton.UnderlineMode">
  17. </member>
  18. </members>
  19. <constants>
  20. <constant name="UNDERLINE_MODE_ALWAYS" value="0" enum="UnderlineMode">
  21. The LinkButton will always show an underline at the bottom of its text
  22. </constant>
  23. <constant name="UNDERLINE_MODE_ON_HOVER" value="1" enum="UnderlineMode">
  24. The LinkButton will show an underline at the bottom of its text when the mouse cursor is over it.
  25. </constant>
  26. <constant name="UNDERLINE_MODE_NEVER" value="2" enum="UnderlineMode">
  27. The LinkButton will never show an underline at the bottom of its text.
  28. </constant>
  29. </constants>
  30. <theme_items>
  31. <theme_item name="focus" type="StyleBox">
  32. </theme_item>
  33. <theme_item name="font" type="Font">
  34. </theme_item>
  35. <theme_item name="font_color" type="Color">
  36. </theme_item>
  37. <theme_item name="font_color_hover" type="Color">
  38. </theme_item>
  39. <theme_item name="font_color_pressed" type="Color">
  40. </theme_item>
  41. <theme_item name="underline_spacing" type="int">
  42. </theme_item>
  43. </theme_items>
  44. </class>