CellexalVR
1.1.0
A virtual reality platform for the exploration and analysis of single-cell gene expression data
|
Represents a menu that has tabs. Tabs are meant to function much like tabs in a web browser. More...
Public Member Functions | |
virtual void | CreateButtons (string[] categoriesAndNames) |
Creates a number of tabs with buttons from a list of strings. More... | |
virtual T | AddTab< T > (T tabPrefab) |
Adds a tab to this menu. More... | |
virtual void | DestroyTab (string networkName) |
Destroys one tab. More... | |
virtual void | DestroyTabs () |
Destroys all tabs. More... | |
override void | SetMenuActive (bool active) |
Sets this submenu to visible or invisible. More... | |
virtual void | ResetTabButtonPosition () |
Reset the position of where the next tab button should be created. More... | |
void | TurnOffAllTabs () |
Turns off all tabs. More... | |
void | ChangePage (int dir) |
Changes the current tab some number of tabs in a gived direction. More... | |
Public Member Functions inherited from CellexalVR.Menu.SubMenus.SubMenu | |
virtual CellexalButton | FindButton (string name) |
void | SetUnderlyingContentActive (bool active) |
Activate or deactivate the buttons that are underneath this menu. More... | |
Public Attributes | |
Tab | tabPrefab |
GameObject | nextPageButton |
GameObject | prevPageButton |
TextMeshPro | pageNrText |
string[] | categoriesAndNames |
string | currentCategory |
CellexalButton | prefab |
Public Attributes inherited from CellexalVR.Menu.SubMenus.SubMenu | |
ReferenceManager | referenceManager |
GameObject | buttonsToDeactivate |
GameObject | textmeshToDarken |
Protected Member Functions | |
override void | Start () |
Protected Attributes | |
MenuToggler | menuToggler |
List< Tab > | tabs = new List<Tab>() |
Vector3 | tabButtonPos = new Vector3(-0.309f, 1f, 0.325f) |
Vector3 | tabButtonPosOriginal = new Vector3(-0.309f, 1f, 0.325f) |
Vector3 | tabButtonPosInc = new Vector3(0.2f, 0, 0) |
int | buttonsPerTab = 20 |
string[] | names |
string[] | categories |
string[] | orderedNames |
Dictionary< string, List< string > > | categoriesAndNamesDict |
Dictionary< string, List< string > > | orderedNamesCategoriesAndNamesDict |
Protected Attributes inherited from CellexalVR.Menu.SubMenus.SubMenu | |
List< CellexalButton > | cellexalButtons = new List<CellexalButton>() |
Additional Inherited Members | |
Properties inherited from CellexalVR.Menu.SubMenus.SubMenu | |
bool | Active [get, set] |
bool | Attached [get, set] |
Represents a menu that has tabs. Tabs are meant to function much like tabs in a web browser.
|
virtual |
Adds a tab to this menu.
T | The type of the tab. This type must derive from Tab. |
tabPrefab | The prefab used as template. |
T | : | Tab |
void CellexalVR.Menu.SubMenus.MenuWithTabs.ChangePage | ( | int | dir | ) |
Changes the current tab some number of tabs in a gived direction.
dir | The number of tabs to move, negative numbers will move backwards. |
|
virtual |
Creates a number of tabs with buttons from a list of strings.
categoriesAndNames | An array of strings, category and name should be separated with a @, e.g. category_1@name_1
|
Reimplemented in CellexalVR.Menu.SubMenus.ColorByCellStatMenu, CellexalVR.Menu.SubMenus.ColorByIndexMenu, CellexalVR.Menu.SubMenus.AttributeSubMenu, and CellexalVR.Menu.SubMenus.GraphFromMarkersMenu.
|
virtual |
Destroys one tab.
The name of the tab to be destroyed (same as the network name corresponding to the tab).
|
virtual |
Destroys all tabs.
Reimplemented in CellexalVR.Menu.SubMenus.AttributeSubMenu.
|
virtual |
Reset the position of where the next tab button should be created.
|
virtual |
Sets this submenu to visible or invisible.
active | True for visible, false for invisible. |
Reimplemented from CellexalVR.Menu.SubMenus.SubMenu.
void CellexalVR.Menu.SubMenus.MenuWithTabs.TurnOffAllTabs | ( | ) |
Turns off all tabs.