private void RenderInternal(int windowId) { using (new GUILayout.HorizontalScope("Box")) { if (tabs.Count == 1) { GUILayout.Label(tabs.First().Key, "tabActive"); } else { foreach (DebuggerTab tab in tabs.Values) { if (GUILayout.Button(tab.Name, ActiveTab == tab ? "tabActive" : "tab")) { ActiveTab = tab; } } } } Render(); if (CanDragWindow) { GUI.DragWindow(); } }
public DebuggerTab AddTab(DebuggerTab tab) { Validate.NotNull(tab); tabs.Add(tab.Name, tab); return(tab); }
public DebuggerTab AddTab(string name, Action render) { DebuggerTab tab = new DebuggerTab(name, render); tabs.Add(name, tab); return(tab); }
public DebuggerTab AddTab(DebuggerTab tab) { tabs.Add(tab.Name, tab); return(tab); }