mirror of
https://github.com/maxartz15/SceneDebugViewer.git
synced 2024-11-24 12:45:31 +01:00
Update SceneDebugViewerWindow.cs
This commit is contained in:
parent
a4eafe007c
commit
50df02b3b0
@ -16,6 +16,8 @@ namespace TAO.SceneDebugViewer.Editor
|
|||||||
|
|
||||||
window = (SceneDebugViewerWindow)GetWindow(typeof(SceneDebugViewerWindow));
|
window = (SceneDebugViewerWindow)GetWindow(typeof(SceneDebugViewerWindow));
|
||||||
window.titleContent = new GUIContent("SDV");
|
window.titleContent = new GUIContent("SDV");
|
||||||
|
window.maxSize = new Vector2(101, window.maxSize.y);
|
||||||
|
window.minSize = new Vector2(101, window.minSize.y);
|
||||||
window.Show();
|
window.Show();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -41,13 +43,24 @@ namespace TAO.SceneDebugViewer.Editor
|
|||||||
|
|
||||||
GUILayout.Space(6);
|
GUILayout.Space(6);
|
||||||
|
|
||||||
// TODO: Horizontal and vertical grid/table selection drawer.
|
for (int i = 0; i < options.Count; i += 2)
|
||||||
foreach (var o in options)
|
|
||||||
{
|
{
|
||||||
if (GUILayout.Button(o.content, GUILayout.Height(44)))
|
GUILayout.BeginHorizontal();
|
||||||
|
|
||||||
|
if (GUILayout.Button(options[i].content, GUILayout.Height(44)))
|
||||||
{
|
{
|
||||||
o.Replace();
|
options[i].Replace();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (i + 1 < options.Count)
|
||||||
|
{
|
||||||
|
if (GUILayout.Button(options[i + 1].content, GUILayout.Height(44)))
|
||||||
|
{
|
||||||
|
options[i + 1].Replace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
GUILayout.EndHorizontal();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user