diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-10-21 09:13:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-21 09:13:33 +0200 |
commit | 918f03529f42b3fdebbc6f236012e61288db0c3a (patch) | |
tree | 7569dfe617847c8d051f5626dfb00ed1ec2e33ff /scene | |
parent | c3964b6c835a98db9784aada41574447b6cd5824 (diff) | |
parent | f2b98b41063ff42d40de27979b85cc0dafc70be1 (diff) |
Merge pull request #42957 from Chaosus/remove_print_windowpos
Remove printing of windowpos/screenpos inside MenuButton::pressed
Diffstat (limited to 'scene')
-rw-r--r-- | scene/gui/menu_button.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/scene/gui/menu_button.cpp b/scene/gui/menu_button.cpp index 9b1738ec79..d65e98ea46 100644 --- a/scene/gui/menu_button.cpp +++ b/scene/gui/menu_button.cpp @@ -53,17 +53,9 @@ void MenuButton::_unhandled_key_input(Ref<InputEvent> p_event) { } void MenuButton::pressed() { - { - Window *w = Object::cast_to<Window>(get_viewport()); - if (w && !w->is_embedding_subwindows()) { - print_line("windowpos: " + w->get_position()); - } - } Size2 size = get_size(); Point2 gp = get_screen_position(); - - print_line("screenpos: " + gp); gp.y += get_size().y; popup->set_position(gp); |