mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Replace GUI anchor type by a float between 0 and 1
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user