@@ -73,8 +73,8 @@ public override void Init()
73
73
74
74
m_name = m_object . name ;
75
75
m_scene = string . IsNullOrEmpty ( m_object . scene . name )
76
- ? "None"
77
- : m_object . scene . name ;
76
+ ? "None"
77
+ : m_object . scene . name ;
78
78
79
79
Update ( ) ;
80
80
}
@@ -121,7 +121,7 @@ public override void Update()
121
121
122
122
private void DestroyOnException ( Exception e )
123
123
{
124
- MelonLogger . Log ( $ "{ e . GetType ( ) } , { e . Message } ") ;
124
+ MelonLogger . Log ( $ "Exception drawing GameObject Window: { e . GetType ( ) } , { e . Message } ") ;
125
125
DestroyWindow ( ) ;
126
126
}
127
127
@@ -169,7 +169,7 @@ public override void WindowFunction(int windowID)
169
169
GUILayout . BeginArea ( new Rect ( 5 , 25 , rect . width - 10 , rect . height - 35 ) , GUI . skin . box ) ;
170
170
}
171
171
172
- scroll = GUILayout . BeginScrollView ( scroll , GUI . skin . scrollView ) ;
172
+ scroll = UIHelpers . BeginScrollView ( scroll ) ;
173
173
174
174
GUILayout . BeginHorizontal ( null ) ;
175
175
GUILayout . Label ( "Scene: <color=cyan>" + ( m_scene == "" ? "n/a" : m_scene ) + "</color>" , null ) ;
@@ -220,7 +220,7 @@ public override void WindowFunction(int windowID)
220
220
221
221
GameObjectControls ( ) ;
222
222
223
- GUILayout . EndScrollView ( ) ;
223
+ UIHelpers . EndScrollView ( ) ;
224
224
225
225
if ( ! WindowManager . TabView )
226
226
{
@@ -237,8 +237,8 @@ public override void WindowFunction(int windowID)
237
237
238
238
private void TransformList ( Rect m_rect )
239
239
{
240
- GUILayout . BeginVertical ( GUI . skin . box , null ) ; // new GUILayoutOption[] { GUILayout.Height(250) });
241
- m_transformScroll = GUILayout . BeginScrollView ( m_transformScroll , GUI . skin . scrollView ) ;
240
+ GUILayout . BeginVertical ( GUI . skin . box , null ) ;
241
+ m_transformScroll = UIHelpers . BeginScrollView ( m_transformScroll ) ;
242
242
243
243
GUILayout . Label ( "<b><size=15>Children</size></b>" , null ) ;
244
244
@@ -287,14 +287,14 @@ private void TransformList(Rect m_rect)
287
287
GUILayout . Label ( "<i>None</i>" , null ) ;
288
288
}
289
289
290
- GUILayout . EndScrollView ( ) ;
290
+ UIHelpers . EndScrollView ( ) ;
291
291
GUILayout . EndVertical ( ) ;
292
292
}
293
293
294
294
private void ComponentList ( Rect m_rect )
295
295
{
296
- GUILayout . BeginVertical ( GUI . skin . box , null ) ; // new GUILayoutOption[] { GUILayout.Height(250) });
297
- m_compScroll = GUILayout . BeginScrollView ( m_compScroll , GUI . skin . scrollView ) ;
296
+ GUILayout . BeginVertical ( GUI . skin . box , null ) ;
297
+ m_compScroll = UIHelpers . BeginScrollView ( m_compScroll ) ;
298
298
GUILayout . Label ( "<b><size=15>Components</size></b>" , null ) ;
299
299
300
300
GUILayout . BeginHorizontal ( null ) ;
@@ -369,7 +369,7 @@ private void ComponentList(Rect m_rect)
369
369
}
370
370
}
371
371
372
- GUILayout . EndScrollView ( ) ;
372
+ UIHelpers . EndScrollView ( ) ;
373
373
374
374
GUILayout . EndVertical ( ) ;
375
375
}
0 commit comments