summaryrefslogtreecommitdiffstats
path: root/editor/gui/editor_toaster.h
diff options
context:
space:
mode:
Diffstat (limited to 'editor/gui/editor_toaster.h')
-rw-r--r--editor/gui/editor_toaster.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/editor/gui/editor_toaster.h b/editor/gui/editor_toaster.h
index 4bf32d94ba..6fcc2ce3e9 100644
--- a/editor/gui/editor_toaster.h
+++ b/editor/gui/editor_toaster.h
@@ -31,8 +31,6 @@
#ifndef EDITOR_TOASTER_H
#define EDITOR_TOASTER_H
-#include "core/string/ustring.h"
-#include "core/templates/local_vector.h"
#include "scene/gui/box_container.h"
class Button;
@@ -76,6 +74,9 @@ private:
real_t remaining_time = 0.0;
bool popped = false;
+ // Buttons
+ Button *close_button = nullptr;
+
// Messages
String message;
String tooltip;
@@ -101,7 +102,7 @@ private:
void _set_notifications_enabled(bool p_enabled);
void _repop_old();
void _popup_str(const String &p_message, Severity p_severity, const String &p_tooltip);
- void _close_button_theme_changed(Control *p_close_button);
+ void _toast_theme_changed(Control *p_control);
protected:
static EditorToaster *singleton;
@@ -114,6 +115,7 @@ public:
Control *popup(Control *p_control, Severity p_severity = SEVERITY_INFO, double p_time = 0.0, const String &p_tooltip = String());
void popup_str(const String &p_message, Severity p_severity = SEVERITY_INFO, const String &p_tooltip = String());
void close(Control *p_control);
+ void instant_close(Control *p_control);
EditorToaster();
~EditorToaster();