mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Improve EditorToaster code
This commit is contained in:
parent
1bffd6c73b
commit
025976dc45
2 changed files with 39 additions and 33 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue