Incorporate min and max zoom limits into the EditorZoomWidget
This commit is contained in:
parent
5c43e4c1ef
commit
44d782681c
5 changed files with 47 additions and 22 deletions
|
|
@ -931,6 +931,7 @@ GenericTilePolygonEditor::GenericTilePolygonEditor() {
|
|||
snap_subdivision->connect("value_changed", callable_mp(this, &GenericTilePolygonEditor::_store_snap_options).unbind(1));
|
||||
|
||||
editor_zoom_widget = memnew(EditorZoomWidget);
|
||||
editor_zoom_widget->setup_zoom_limits(0.125, 128.0);
|
||||
editor_zoom_widget->set_position(Vector2(5, 5));
|
||||
editor_zoom_widget->connect("zoom_changed", callable_mp(this, &GenericTilePolygonEditor::_zoom_changed).unbind(1));
|
||||
editor_zoom_widget->set_shortcut_context(this);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue