aboutsummaryrefslogtreecommitdiff
path: root/scene/gui/dialogs.cpp
diff options
context:
space:
mode:
authorGilles Roudiere2017-07-06 09:16:27 +0200
committerGilles Roudiere2017-08-13 21:20:13 +0200
commit0d35d4d53b12197bea3650293bbc342fc0b57139 (patch)
treeafd384ffb3f6a8511fb7f052a0ef7da7256bfc05 /scene/gui/dialogs.cpp
parent9575dbdf788e8a5154b3ec2f66913e731ac02850 (diff)
downloadgodot-0d35d4d53b12197bea3650293bbc342fc0b57139.tar.gz
godot-0d35d4d53b12197bea3650293bbc342fc0b57139.tar.zst
godot-0d35d4d53b12197bea3650293bbc342fc0b57139.zip
Diffstat (limited to 'scene/gui/dialogs.cpp')
-rw-r--r--scene/gui/dialogs.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/gui/dialogs.cpp b/scene/gui/dialogs.cpp
index dedf44d40..d576ff1db 100644
--- a/scene/gui/dialogs.cpp
+++ b/scene/gui/dialogs.cpp
@@ -215,7 +215,7 @@ void WindowDialog::_notification(int p_what) {
close_button->set_pressed_texture(get_icon("close", "WindowDialog"));
close_button->set_hover_texture(get_icon("close_highlight", "WindowDialog"));
close_button->set_anchor(MARGIN_LEFT, ANCHOR_END);
- close_button->set_begin(Point2(get_constant("close_h_ofs", "WindowDialog"), -get_constant("close_v_ofs", "WindowDialog")));
+ close_button->set_begin(Point2(-get_constant("close_h_ofs", "WindowDialog"), -get_constant("close_v_ofs", "WindowDialog")));
} break;
case NOTIFICATION_MOUSE_EXIT: {
@@ -546,7 +546,7 @@ AcceptDialog::AcceptDialog() {
label->set_anchor(MARGIN_RIGHT, ANCHOR_END);
label->set_anchor(MARGIN_BOTTOM, ANCHOR_END);
label->set_begin(Point2(margin, margin));
- label->set_end(Point2(margin, button_margin + 10));
+ label->set_end(Point2(-margin, -button_margin - 10));
//label->set_autowrap(true);
add_child(label);