@@ -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\n needle.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\n needle.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