ConfirmationDialog.xml 1.0 KB

123456789101112131415161718192021222324252627282930
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="ConfirmationDialog" inherits="AcceptDialog" version="3.2">
  3. <brief_description>
  4. Dialog for confirmation of actions.
  5. </brief_description>
  6. <description>
  7. Dialog for confirmation of actions. This dialog inherits from [AcceptDialog], but has by default an OK and Cancel button (in host OS order).
  8. To get cancel action, you can use:
  9. [codeblock]
  10. get_cancel().connect("pressed", self, "cancelled")
  11. [/codeblock].
  12. </description>
  13. <tutorials>
  14. </tutorials>
  15. <methods>
  16. <method name="get_cancel">
  17. <return type="Button">
  18. </return>
  19. <description>
  20. Returns the cancel button.
  21. </description>
  22. </method>
  23. </methods>
  24. <members>
  25. <member name="rect_min_size" type="Vector2" setter="set_custom_minimum_size" getter="get_custom_minimum_size" override="true" default="Vector2( 200, 70 )" />
  26. <member name="window_title" type="String" setter="set_title" getter="get_title" override="true" default="&quot;Please Confirm...&quot;" />
  27. </members>
  28. <constants>
  29. </constants>
  30. </class>