protected override void OnContentGUI() { if (pages.Count == 0) { OnEmptyGUI(); } else { LudiqGUI.BeginHorizontal(); listScroll = LudiqGUI.List(listScroll, pageOptions, currentPage, newPage => currentPage = (Page)newPage); GUILayout.Box(GUIContent.none, LudiqStyles.verticalSeparator); currentPage?.DrawContent(); LudiqGUI.EndHorizontal(); } }
protected virtual void OnSidebarGUI() { listScroll = LudiqGUI.List(listScroll, flexible, pageOptions, currentPage, newPage => currentPage = (Page)newPage); }