Use switch consistently in _notification (scene folder)
This commit is contained in:
parent
171021145d
commit
0f5455230c
127 changed files with 2853 additions and 2601 deletions
|
|
@ -31,10 +31,12 @@
|
|||
#include "panel.h"
|
||||
|
||||
void Panel::_notification(int p_what) {
|
||||
if (p_what == NOTIFICATION_DRAW) {
|
||||
RID ci = get_canvas_item();
|
||||
Ref<StyleBox> style = get_theme_stylebox(SNAME("panel"));
|
||||
style->draw(ci, Rect2(Point2(), get_size()));
|
||||
switch (p_what) {
|
||||
case NOTIFICATION_DRAW: {
|
||||
RID ci = get_canvas_item();
|
||||
Ref<StyleBox> style = get_theme_stylebox(SNAME("panel"));
|
||||
style->draw(ci, Rect2(Point2(), get_size()));
|
||||
} break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue