diff options
| author | Andreas Haas | 2017-03-18 01:53:20 +0100 |
|---|---|---|
| committer | Rémi Verschelde | 2017-03-19 00:44:05 +0100 |
| commit | 3c16e7842faeace00a756dc008f5e424d29704b3 (patch) | |
| tree | 2574b639e8781f9bb2e8e7ca9825332c2877f8fb /editor/editor_node.cpp | |
| parent | 82ad45024fa320cbab3abe7387482b431ecb71b0 (diff) | |
| download | godot-3c16e7842faeace00a756dc008f5e424d29704b3.tar.gz godot-3c16e7842faeace00a756dc008f5e424d29704b3.tar.zst godot-3c16e7842faeace00a756dc008f5e424d29704b3.zip | |
Editor: Fix "About" dialog
Use a HBoxContainer instead of hardcoded positions.
(cherry picked from commit 7ec697695f9a12cbc2338725d887e752022e30f4)
Diffstat (limited to '')
| -rw-r--r-- | editor/editor_node.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 36ca4def9..e11778d61 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -6006,18 +6006,17 @@ EditorNode::EditorNode() { about = memnew(AcceptDialog); about->set_title(TTR("Thanks from the Godot community!")); - //about->get_cancel()->hide(); about->get_ok()->set_text(TTR("Thanks!")); about->set_hide_on_ok(true); + gui_base->add_child(about); + HBoxContainer *hbc = memnew(HBoxContainer); + about->add_child(hbc); Label *about_text = memnew(Label); about_text->set_text(VERSION_FULL_NAME "\n(c) 2008-2017 Juan Linietsky, Ariel Manzur.\n"); - about_text->set_pos(Point2(gui_base->get_icon("Logo", "EditorIcons")->get_size().width + 30, 20)); - gui_base->add_child(about); - about->add_child(about_text); TextureFrame *logo = memnew(TextureFrame); - about->add_child(logo); - logo->set_pos(Point2(20, 20)); logo->set_texture(gui_base->get_icon("Logo", "EditorIcons")); + hbc->add_child(logo); + hbc->add_child(about_text); warning = memnew(AcceptDialog); gui_base->add_child(warning); |
