WindowDialog.xml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="WindowDialog" inherits="Popup" version="3.3">
  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. <description>
  15. Returns the close [TextureButton].
  16. </description>
  17. </method>
  18. </methods>
  19. <members>
  20. <member name="resizable" type="bool" setter="set_resizable" getter="get_resizable" default="false">
  21. If [code]true[/code], the user can resize the window.
  22. </member>
  23. <member name="window_title" type="String" setter="set_title" getter="get_title" default="&quot;&quot;">
  24. The text displayed in the window's title bar.
  25. </member>
  26. </members>
  27. <constants>
  28. </constants>
  29. <theme_items>
  30. <theme_item name="close" type="Texture">
  31. The icon for the close button.
  32. </theme_item>
  33. <theme_item name="close_h_ofs" type="int" default="18">
  34. The horizontal offset of the close button.
  35. </theme_item>
  36. <theme_item name="close_highlight" type="Texture">
  37. The icon used for the close button when it's hovered with the mouse cursor.
  38. </theme_item>
  39. <theme_item name="close_v_ofs" type="int" default="18">
  40. The vertical offset of the close button.
  41. </theme_item>
  42. <theme_item name="panel" type="StyleBox">
  43. The style for both the content background of the [WindowDialog] and the title bar. The title bar is created with a top border and an expand margin using the [code]panel[/code] stylebox.
  44. </theme_item>
  45. <theme_item name="scaleborder_size" type="int" default="4">
  46. The thickness of the border that can be dragged when scaling the window (if [member resizable] is enabled).
  47. </theme_item>
  48. <theme_item name="title_color" type="Color" default="Color( 0, 0, 0, 1 )">
  49. The color of the title text.
  50. </theme_item>
  51. <theme_item name="title_font" type="Font">
  52. The font used to draw the title.
  53. </theme_item>
  54. <theme_item name="title_height" type="int" default="20">
  55. The vertical offset of the title text.
  56. </theme_item>
  57. </theme_items>
  58. </class>