|
|
|
|
|
|
|
|
|
|
bool hasContent = discoverObjects != null && discoverObjects.Count > 0; |
|
|
|
|
|
|
|
// Draw Navigation
|
|
|
|
// Draw Navigation Bar
|
|
|
|
EditorGUI.BeginDisabledGroup(!hasContent); |
|
|
|
using (new GUILayout.AreaScope(new Rect(discoverAsset.WindowWidth - 168, 8, 160, 20))) |
|
|
|
{ |
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
Vector2 globalContentScroll; |
|
|
|
|
|
|
|
globalContentScroll = GUILayout.BeginScrollView(globalContentScroll); |
|
|
|
using (new GUILayout.VerticalScope(Styles.indent)) |
|
|
|
{ |
|
|
|
GUILayout.Label(discoverAsset.Title, Styles.header); |
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
GUILayout.FlexibleSpace(); |
|
|
|
GUILayout.EndScrollView(); |
|
|
|
} |
|
|
|
|
|
|
|
Discover selectedDiscover; |
|
|
|