diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-04-01 11:42:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-01 11:42:05 +0200 |
commit | 4263f02f28af79324667674ad4f2ededddf19047 (patch) | |
tree | c602c962f38715f6dfa581b2f75fcb0e9f00ceb6 /scene/gui/dialogs.h | |
parent | f3fe2631da1602df9312a4cd64c7b68d2f94f08a (diff) | |
parent | e32215fbadc0ff108d5b7d79558e42ad7954cb4e (diff) |
Merge pull request #59764 from reduz/blender-import-autodetect
Diffstat (limited to 'scene/gui/dialogs.h')
-rw-r--r-- | scene/gui/dialogs.h | 4 |
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; |