diff options
Diffstat (limited to 'scene/gui/panel.cpp')
-rw-r--r-- | scene/gui/panel.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/scene/gui/panel.cpp b/scene/gui/panel.cpp index a17d0eb9c6..acbb6d7ab5 100644 --- a/scene/gui/panel.cpp +++ b/scene/gui/panel.cpp @@ -30,12 +30,10 @@ #include "panel.h" -#include "core/print_string.h" +#include "core/string/print_string.h" void Panel::_notification(int p_what) { - if (p_what == NOTIFICATION_DRAW) { - RID ci = get_canvas_item(); Ref<StyleBox> style = mode == MODE_BACKGROUND ? get_theme_stylebox("panel") : get_theme_stylebox("panel_fg"); style->draw(ci, Rect2(Point2(), get_size())); @@ -46,6 +44,7 @@ void Panel::set_mode(Mode p_mode) { mode = p_mode; update(); } + Panel::Mode Panel::get_mode() const { return mode; } |