Skip to content

Commit 253f65e

Browse files
committed
clean up
1 parent c716088 commit 253f65e

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

Editor/Needle/Assets.cs

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -85,19 +85,15 @@ public static void DrawGUIFullLogo(float maxHeight = 32)
8585
var logo = UnityEditor.EditorGUIUtility.isProSkin ? FullLogoDarkMode : FullLogo;
8686
if (logo)
8787
{
88-
// EditorGUILayout.BeginHorizontal();
89-
// GUILayout.FlexibleSpace();
9088
var rect = GUILayoutUtility.GetRect(maxHeight*2f + 10, maxHeight);
9189
rect.width = maxHeight * 2f;
9290
rect.height = maxHeight;
93-
if (Event.current.type == EventType.Repaint)
94-
GUI.DrawTexture(rect, logo, ScaleMode.ScaleToFit);
91+
GUI.DrawTexture(rect, logo, ScaleMode.ScaleToFit);
9592
GUI.Label(rect, new GUIContent(string.Empty, "Compilation Visualizer by\nneedle.tools"), GUIStyle.none);
9693

9794
UnityEditor.EditorGUIUtility.AddCursorRect(rect, MouseCursor.Link);
9895
if (Event.current.type == EventType.MouseUp && rect.Contains(Event.current.mousePosition))
9996
Application.OpenURL("https://needle.tools");
100-
// EditorGUILayout.EndHorizontal();
10197
}
10298
}
10399

@@ -108,20 +104,16 @@ public static void DrawGUILogo()
108104
var logo = Assets.Logo;
109105
if (logo)
110106
{
111-
//EditorGUILayout.BeginHorizontal();
112-
// GUILayout.FlexibleSpace();
113107
var rect = GUILayoutUtility.GetRect(maxHeight+5, maxHeight);
114108
rect.height = maxHeight;
115109
rect.y += 2f;
116110
rect.width = maxHeight;
117-
if (Event.current.type == EventType.Repaint)
118-
GUI.DrawTexture(rect, logo, ScaleMode.ScaleToFit);
111+
GUI.DrawTexture(rect, logo, ScaleMode.ScaleToFit);
119112
GUI.Label(rect, new GUIContent(string.Empty, "Compilation Visualizer by\nneedle.tools"), GUIStyle.none);
120113

121114
UnityEditor.EditorGUIUtility.AddCursorRect(rect, MouseCursor.Link);
122115
if (Event.current.type == EventType.MouseUp && rect.Contains(Event.current.mousePosition))
123116
Application.OpenURL("https://needle.tools");
124-
//EditorGUILayout.EndHorizontal();
125117
}
126118
}
127119
}

0 commit comments

Comments
 (0)