Add ViewPanner to 2D editor
This commit is contained in:
@@ -643,10 +643,15 @@ void EditorSettings::_load_defaults(Ref<ConfigFile> p_extra_config) {
|
||||
_initial_set("editors/2d/bone_outline_size", 2);
|
||||
_initial_set("editors/2d/viewport_border_color", Color(0.4, 0.4, 1.0, 0.4));
|
||||
_initial_set("editors/2d/constrain_editor_view", true);
|
||||
_initial_set("editors/2d/warped_mouse_panning", true);
|
||||
_initial_set("editors/2d/simple_panning", false);
|
||||
_initial_set("editors/2d/scroll_to_pan", false);
|
||||
_initial_set("editors/2d/pan_speed", 20);
|
||||
|
||||
// Panning
|
||||
// Enum should be in sync with ControlScheme in ViewPanner.
|
||||
EDITOR_SETTING(Variant::INT, PROPERTY_HINT_ENUM, "editors/panning/2d_editor_panning_scheme", 0, "Scroll Zooms,Scroll Pans");
|
||||
EDITOR_SETTING(Variant::INT, PROPERTY_HINT_ENUM, "editors/panning/sub_editor_panning_scheme", 0, "Scroll Zooms,Scroll Pans");
|
||||
EDITOR_SETTING(Variant::INT, PROPERTY_HINT_ENUM, "editors/panning/animation_editors_panning_scheme", 1, "Scroll Zooms,Scroll Pans");
|
||||
_initial_set("editors/panning/simple_panning", false);
|
||||
_initial_set("editors/panning/warped_mouse_panning", true);
|
||||
_initial_set("editors/panning/2d_editor_pan_speed", 20);
|
||||
|
||||
// Tiles editor
|
||||
_initial_set("editors/tiles_editor/display_grid", true);
|
||||
|
||||
Reference in New Issue
Block a user