Exemple #1
0
 /// <summary>
 /// Manually set a current page by providing a GUIPage, does not have to be in the list of pages
 /// </summary>
 /// <param name="newCurrentPage"></param>
 public void SetCurrentPage(GUI_Page newCurrentPage)
 {
     if (newCurrentPage != null)
     {
         //Turn the old page off
         this.TogglePageVisibility(this.currentPage);
         this.currentPage = newCurrentPage;
         //Turn the new page on
         this.TogglePageVisibility(newCurrentPage);
     }
 }
 public void TogglePageVisibility(GUI_Page pageToToggle)
 {
     pageToToggle.ToggleVisibilty();
 }
 /// <summary>
 /// Manually set a current page by providing a GUIPage, does not have to be in the list of pages
 /// </summary>
 /// <param name="newCurrentPage"></param>
 public void SetCurrentPage(GUI_Page newCurrentPage)
 {
     if (newCurrentPage != null)
     {
         //Turn the old page off
         this.TogglePageVisibility(this.currentPage);
         this.currentPage = newCurrentPage;
         //Turn the new page on
         this.TogglePageVisibility(newCurrentPage);
     }
 }
Exemple #4
0
 public void TogglePageVisibility(GUI_Page pageToToggle)
 {
     pageToToggle.ToggleVisibilty();
 }