summaryrefslogtreecommitdiff
path: root/scene/gui/dialogs.h
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-04-01 11:42:05 +0200
committerGitHub <noreply@github.com>2022-04-01 11:42:05 +0200
commit4263f02f28af79324667674ad4f2ededddf19047 (patch)
treec602c962f38715f6dfa581b2f75fcb0e9f00ceb6 /scene/gui/dialogs.h
parentf3fe2631da1602df9312a4cd64c7b68d2f94f08a (diff)
parente32215fbadc0ff108d5b7d79558e42ad7954cb4e (diff)
Merge pull request #59764 from reduz/blender-import-autodetect
Diffstat (limited to 'scene/gui/dialogs.h')
-rw-r--r--scene/gui/dialogs.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/gui/dialogs.h b/scene/gui/dialogs.h
index 1365b1df24..11c701b0d5 100644
--- a/scene/gui/dialogs.h
+++ b/scene/gui/dialogs.h
@@ -50,6 +50,7 @@ class AcceptDialog : public Window {
Label *label;
Button *ok;
bool hide_on_ok = true;
+ bool close_on_escape = true;
void _custom_action(const String &p_action);
void _update_child_rects();
@@ -87,6 +88,9 @@ public:
void set_hide_on_ok(bool p_hide);
bool get_hide_on_ok() const;
+ void set_close_on_escape(bool p_enable);
+ bool get_close_on_escape() const;
+
void set_text(String p_text);
String get_text() const;