WindowDialog.xml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="WindowDialog" inherits="Popup" version="3.2">
  3. <brief_description>
  4. Base class for window dialogs.
  5. </brief_description>
  6. <description>
  7. Windowdialog is the base class for all window-based dialogs. It's a by-default toplevel [Control] that draws a window decoration and allows motion and resizing.
  8. </description>
  9. <tutorials>
  10. </tutorials>
  11. <methods>
  12. <method name="get_close_button">
  13. <return type="TextureButton">
  14. </return>
  15. <description>
  16. Returns the close [TextureButton].
  17. </description>
  18. </method>
  19. </methods>
  20. <members>
  21. <member name="resizable" type="bool" setter="set_resizable" getter="get_resizable" default="false">
  22. If [code]true[/code], the user can resize the window.
  23. </member>
  24. <member name="window_title" type="String" setter="set_title" getter="get_title" default="&quot;&quot;">
  25. The text displayed in the window's title bar.
  26. </member>
  27. </members>
  28. <constants>
  29. </constants>
  30. <theme_items>
  31. <theme_item name="close" type="Texture">
  32. The icon for the close button.
  33. </theme_item>
  34. <theme_item name="close_h_ofs" type="int" default="18">
  35. The horizontal offset of the close button.
  36. </theme_item>
  37. <theme_item name="close_highlight" type="Texture">
  38. The icon used for the close button when it's hovered with the mouse cursor.
  39. </theme_item>
  40. <theme_item name="close_v_ofs" type="int" default="18">
  41. The vertical offset of the close button.
  42. </theme_item>
  43. <theme_item name="panel" type="StyleBox">
  44. The style for both the content background of the [WindowDialog] and the title bar.
  45. </theme_item>
  46. <theme_item name="scaleborder_size" type="int" default="4">
  47. The thickness of the border that can be dragged when scaling the window (if [member resizable] is enabled).
  48. </theme_item>
  49. <theme_item name="title_color" type="Color" default="Color( 0, 0, 0, 1 )">
  50. The color of the title text.
  51. </theme_item>
  52. <theme_item name="title_font" type="Font">
  53. The font used to draw the title.
  54. </theme_item>
  55. <theme_item name="title_height" type="int" default="20">
  56. The vertical offset of the title text.
  57. </theme_item>
  58. </theme_items>
  59. </class>