From 7698ebef0868ee8d4598dd10a28e4313a1d09249 Mon Sep 17 00:00:00 2001 From: Zach Vinless Date: Sun, 15 Jan 2017 09:46:13 -0800 Subject: [PATCH] Removed "Center View" button from FlowchartEditor --- Assets/Fungus/Scripts/Editor/FlowchartEditor.cs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/Assets/Fungus/Scripts/Editor/FlowchartEditor.cs b/Assets/Fungus/Scripts/Editor/FlowchartEditor.cs index a05b6d2c..564c38c4 100644 --- a/Assets/Fungus/Scripts/Editor/FlowchartEditor.cs +++ b/Assets/Fungus/Scripts/Editor/FlowchartEditor.cs @@ -82,14 +82,6 @@ namespace Fungus.EditorUtils EditorWindow.GetWindow(typeof(FlowchartWindow), false, "Flowchart"); } - GUILayout.Space(10); - - if (GUILayout.Button(new GUIContent("Center View", "Centers the window view at the center of all blocks in the Flowchart"))) - { - // Reset the zoom so we don't have adjust the center position depending on zoom - flowchart.ScrollPos = flowchart.CenterPosition; - flowchart.Zoom = FlowchartWindow.maxZoomValue; - } GUILayout.FlexibleSpace(); GUILayout.EndHorizontal();