FairyGUI.Controller
class FairyGUI.Controller
Fields and Properties:
string name- Description: Name of the controller
 
FairyGUI.EventListener onChanged- Description: When controller page changed.
 
int selectedIndex- Description: Get or set the index of the current active page.
 
string selectedPage- Description: Get the name of the current active page.
 
int previsousIndex- Description: Get the index of the Previous page.
 
string previousPage- Description: Get the name of the Previous page.
 
int pageCount- Description: Page count of this controller.
 
Constructors:
FairyGUI.Controller.New()
Methods:
void Dispose()void SetSelectedIndex(int)- Description: Set the current page index without triggering the onChanged event.
 - Parameter value: Page index
 
void SetSelectedPage(string)- Description: Set the current page by name without triggering the onChanged event.
 - Parameter value: Page name
 
string GetPageName(int)- Description: Get page name by an index.
 - Parameter index: Page index
 - Return: Page Name
 
string GetPageId(int)- Description: Get page id by an index.
 - Parameter index: Page index
 - Return: Page Id
 
string GetPageIdByName(string)- Description: Get page id by name.
 - Parameter aName:
 - Return:
 
void AddPage(string)- Description: Add a new page to this controller.
 - Parameter name: Page name
 
void AddPageAt(string, int)- Description: Add a new page to this controller at a certain index.
 - Parameter name: Page name
 - Parameter index: Insert position
 
void RemovePage(string)- Description: Remove a page.
 - Parameter name: Page name
 
void RemovePageAt(int)- Description: Removes a page at a certain index.
 - Parameter index:
 
void ClearPages()- Description: Remove all pages.
 
bool HasPage(string)- Description: Check if the controller has a page.
 - Parameter aName: Page name.
 - Return:
 
void RunActions()