diff options
| author | kubecz3k | 2017-08-15 22:55:49 +0200 |
|---|---|---|
| committer | GitHub | 2017-08-15 22:55:49 +0200 |
| commit | 129ebca41d8ed85830580c593eafa2a8637cb5be (patch) | |
| tree | f357e95da9894f88b6c6910a087a710b2a62b64b /editor/code_editor.cpp | |
| parent | aa24ddc59f723ba51ea752d32f092ca5e7b6b9e3 (diff) | |
| parent | 0041e08f747f5d29ca7fbc65eb86175983aa84af (diff) | |
| download | godot-129ebca41d8ed85830580c593eafa2a8637cb5be.tar.gz godot-129ebca41d8ed85830580c593eafa2a8637cb5be.tar.zst godot-129ebca41d8ed85830580c593eafa2a8637cb5be.zip | |
Merge pull request #9889 from groud/control_enhancements
Control node enhancements
Diffstat (limited to 'editor/code_editor.cpp')
| -rw-r--r-- | editor/code_editor.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/editor/code_editor.cpp b/editor/code_editor.cpp index 2e406fb23..07c094511 100644 --- a/editor/code_editor.cpp +++ b/editor/code_editor.cpp @@ -70,7 +70,7 @@ GotoLineDialog::GotoLineDialog() { line = memnew(LineEdit); line->set_anchor(MARGIN_RIGHT, ANCHOR_END); line->set_begin(Point2(15, 22)); - line->set_end(Point2(15, 35)); + line->set_end(Point2(-15, 35)); add_child(line); register_text_enter(line); text_editor = NULL; @@ -887,7 +887,7 @@ FindReplaceDialog::FindReplaceDialog() { replace_text = memnew(LineEdit); replace_text->set_anchor(MARGIN_RIGHT, ANCHOR_END); replace_text->set_begin(Point2(15, 132)); - replace_text->set_end(Point2(15, 135)); + replace_text->set_end(Point2(-15, 135)); //replace_text->set_self_opacity(0.7); replace_mc->add_child(replace_text); @@ -937,8 +937,8 @@ FindReplaceDialog::FindReplaceDialog() { skip->set_anchor(MARGIN_TOP, ANCHOR_END); skip->set_anchor(MARGIN_RIGHT, ANCHOR_END); skip->set_anchor(MARGIN_BOTTOM, ANCHOR_END); - skip->set_begin(Point2(70, button_margin)); - skip->set_end(Point2(10, margin)); + skip->set_begin(Point2(-70, -button_margin)); + skip->set_end(Point2(-10, -margin)); skip->set_text(TTR("Skip")); add_child(skip); skip->connect("pressed", this, "_skip_pressed"); |
