mirror of
https://github.com/godotengine/godot.git
synced 2025-04-07 00:44:24 +08:00
Merge pull request #77674 from ProbablyWorks/77562-tilemap-center-view-button-offset-fix
Set the grow direction for the "Center View" button in the TileMap editor
This commit is contained in:
commit
dc8a0c3cd1
@ -580,6 +580,7 @@ TileAtlasView::TileAtlasView() {
|
||||
|
||||
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, &TileAtlasView::_center_view));
|
||||
button_center_view->set_flat(true);
|
||||
button_center_view->set_disabled(true);
|
||||
|
Loading…
x
Reference in New Issue
Block a user