예제 #1
0
 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();
     }
 }
예제 #2
0
 protected virtual void OnSidebarGUI()
 {
     listScroll = LudiqGUI.List(listScroll, flexible, pageOptions, currentPage, newPage => currentPage = (Page)newPage);
 }