A class in Root.Township, Alta.Meta.UI.
A UI Panel with a set of Tabs, one active at a time. Client UI.
Constructors
| Member | What it is |
|---|
TabbedPanel() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
5 private and internal fields
| Member | What it is |
|---|
private bool alwaysReturnToStart | If true (default), the panel goes back to the starting tab every time it is enabled. |
private bool isSwitchingToStart | Whether the next OnEnable should switch to the starting tab. |
private static readonly Logger logger | NLog logger for this class. |
private int startingTab | Index in tabs of the tab shown first. |
private Tab[] tabs | The tabs this panel can switch between. |
Properties
| Member | What it is |
|---|
Tab CurrentTab { get; private set; } | The tab that is active now. |
Methods
| Member | What it is |
|---|
void SwitchToTab(Tab tab) | Closes the window's popups, deactivates the current tab and activates the given one. Logs an error if the tab isn't in tabs. |
2 private and internal methods
| Member | What it is |
|---|
private void OnEnable() | Switches to the starting tab; only the first time unless alwaysReturnToStart is set. |
private void IBuildRendererPostBake.PostBake() | Build step that removes null entries from tabs. |