From 714e6a595d69802baa796190d0e682d0679a0f43 Mon Sep 17 00:00:00 2001 From: kleonc <9283098+kleonc@users.noreply.github.com> Date: Tue, 6 Jul 2021 17:51:56 +0200 Subject: Add AcceptDialog::remove_button method --- scene/gui/dialogs.cpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'scene/gui/dialogs.cpp') diff --git a/scene/gui/dialogs.cpp b/scene/gui/dialogs.cpp index f63ae7569f..dceab00607 100644 --- a/scene/gui/dialogs.cpp +++ b/scene/gui/dialogs.cpp @@ -263,6 +263,28 @@ Button *AcceptDialog::add_cancel_button(const String &p_cancel) { return b; } +void AcceptDialog::remove_button(Control *p_button) { + Button *button = Object::cast_to