Browse Source

Fixed formating of command list

master
Timothy Ng 9 years ago
parent
commit
54edaf14fe
  1. 4
      Assets/Fungus/Flowchart/Editor/CommandListAdaptor.cs
  2. 8
      Assets/Fungus/Flowchart/Editor/EditorZoomArea.cs
  3. 4
      Assets/Fungus/Flowchart/Editor/FlowchartWindow.cs

4
Assets/Fungus/Flowchart/Editor/CommandListAdaptor.cs

@ -421,8 +421,8 @@ namespace Fungus
}
else
{
summaryRect.x += commandNameWidth;
summaryRect.width -= commandNameWidth;
summaryRect.x += commandNameWidth + 20;
summaryRect.width -= commandNameWidth + 20;
summaryRect.width -= 5;
}

8
Assets/Fungus/Flowchart/Editor/EditorZoomArea.cs

@ -66,11 +66,13 @@ namespace Fungus
GUI.BeginGroup(clippedArea);
_prevGuiMatrix = GUI.matrix;
Matrix4x4 translation = Matrix4x4.TRS(clippedArea.TopLeft(), Quaternion.identity, Vector3.one);
Matrix4x4 translation = Matrix4x4.TRS(clippedArea.TopLeft(), Quaternion.identity, Vector3.one);
Matrix4x4 scale = Matrix4x4.Scale(new Vector3(zoomScale, zoomScale, 1.0f));
GUI.matrix = translation * scale * translation.inverse * GUI.matrix;
return clippedArea;
return clippedArea;
}
public static void End()

4
Assets/Fungus/Flowchart/Editor/FlowchartWindow.cs

@ -559,8 +559,8 @@ namespace Fungus
return;
}
// Select block when node is clicked
if (Event.current.button == 0 &&
// Select block when node is clicked
if (Event.current.button == 0 &&
Event.current.type == EventType.MouseDown &&
!mouseOverVariables)
{

Loading…
Cancel
Save