|
|
|
@ -23,7 +23,7 @@ namespace Fungus
|
|
|
|
|
View view = objectTransform.gameObject.GetComponent<View>(); |
|
|
|
|
if (view != null) |
|
|
|
|
{ |
|
|
|
|
DrawView(view); |
|
|
|
|
DrawView(view, false); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -123,7 +123,7 @@ namespace Fungus
|
|
|
|
|
{ |
|
|
|
|
View view = target as View; |
|
|
|
|
|
|
|
|
|
DrawView(view); |
|
|
|
|
DrawView(view, true); |
|
|
|
|
|
|
|
|
|
Vector3 pos = view.transform.position; |
|
|
|
|
|
|
|
|
@ -152,7 +152,7 @@ namespace Fungus
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static void DrawView(View view) |
|
|
|
|
public static void DrawView(View view, bool drawInterior) |
|
|
|
|
{ |
|
|
|
|
float height = CalculateLocalViewSize(view); |
|
|
|
|
float widthA = height * (view.primaryAspectRatio.x / view.primaryAspectRatio.y); |
|
|
|
@ -199,6 +199,8 @@ namespace Fungus
|
|
|
|
|
outline.a = 0.5f; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (drawInterior) |
|
|
|
|
{ |
|
|
|
|
// Draw left box |
|
|
|
|
{ |
|
|
|
|
Vector3[] verts = new Vector3[4]; |
|
|
|
@ -231,6 +233,7 @@ namespace Fungus
|
|
|
|
|
|
|
|
|
|
Handles.DrawSolidRectangleWithOutline(verts, transparent, outline ); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Draw outer box |
|
|
|
|
{ |
|
|
|
|