Skip to content

Commit

Permalink
Merge pull request #89434 from jsjtxietian/center-view
Browse files Browse the repository at this point in the history
Fix center view button appears outside the  GenericTilePolygonEditor
  • Loading branch information
akien-mga committed Mar 13, 2024
2 parents d30aa4b + f59c147 commit 734bd3c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions editor/plugins/tiles/tile_data_editors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -946,8 +946,10 @@ GenericTilePolygonEditor::GenericTilePolygonEditor() {

button_center_view = memnew(Button);
button_center_view->set_anchors_and_offsets_preset(Control::PRESET_TOP_RIGHT, Control::PRESET_MODE_MINSIZE, 5);
button_center_view->set_grow_direction_preset(Control::PRESET_TOP_RIGHT);
button_center_view->connect("pressed", callable_mp(this, &GenericTilePolygonEditor::_center_view));
button_center_view->set_theme_type_variation("FlatButton");
button_center_view->set_tooltip_text(TTR("Center View"));
button_center_view->set_disabled(true);
root->add_child(button_center_view);

Expand Down

0 comments on commit 734bd3c

Please sign in to comment.