ConfirmationDialog.xml 1.3 KB

12345678910111213141516171819202122232425262728293031
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="ConfirmationDialog" inherits="AcceptDialog" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
  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. <description>
  19. Returns the cancel button.
  20. [b]Warning:[/b] This is a required internal node, removing and freeing it may cause a crash. If you wish to hide it or any of its children, use their [member CanvasItem.visible] property.
  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" overrides="Control" default="Vector2( 200, 70 )" />
  26. <member name="window_title" type="String" setter="set_title" getter="get_title" overrides="WindowDialog" default="&quot;Please Confirm...&quot;" />
  27. </members>
  28. <constants>
  29. </constants>
  30. </class>