diff --git a/editor/debugger/limbo_debugger_plugin.cpp b/editor/debugger/limbo_debugger_plugin.cpp index efb7fa5..a1ba27e 100644 --- a/editor/debugger/limbo_debugger_plugin.cpp +++ b/editor/debugger/limbo_debugger_plugin.cpp @@ -77,8 +77,6 @@ void LimboDebuggerTab::update_behavior_tree(const BehaviorTreeData &p_data) { void LimboDebuggerTab::_show_alert(const String &p_message) { alert_message->set_text(p_message); - // alert_icon->set_texture(get_theme_icon(SNAME("NodeInfo"), SNAME("EditorIcons"))); - alert_icon->set_texture(get_theme_icon(SNAME("StatusWarning"), SNAME("EditorIcons"))); alert_box->set_visible(!p_message.is_empty()); } @@ -138,6 +136,12 @@ void LimboDebuggerTab::_window_visibility_changed(bool p_visible) { make_floating->set_visible(!p_visible); } +void LimboDebuggerTab::_notification(int p_what) { + if (p_what == NOTIFICATION_THEME_CHANGED) { + alert_icon->set_texture(get_theme_icon(SNAME("StatusWarning"), SNAME("EditorIcons"))); + } +} + LimboDebuggerTab::LimboDebuggerTab(Ref p_session, WindowWrapper *p_wrapper) { session = p_session; window_wrapper = p_wrapper; diff --git a/editor/debugger/limbo_debugger_plugin.h b/editor/debugger/limbo_debugger_plugin.h index fcfdfa6..fb733f3 100644 --- a/editor/debugger/limbo_debugger_plugin.h +++ b/editor/debugger/limbo_debugger_plugin.h @@ -55,6 +55,9 @@ private: void _filter_changed(String p_text); void _window_visibility_changed(bool p_visible); +protected: + void _notification(int p_what); + public: void start_session(); void stop_session();