TabletToggle
A class in Root.Township, Alta.Meta.UI.
Toggles a tablet menu between its normal home panel and an extended home panel, swapping which home button and player list back button are shown. Client UI.
- Listed in Menus, UI and platforms
- Inherits or implements
MonoBehaviour
Constructors
| Member | What it is |
|---|---|
TabletToggle() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
7 private and internal fields
| Member | What it is |
|---|---|
private Button button | The toggle's button. Not used by the code itself. |
private GameObject ButtonHome | Home button shown in the normal state. |
private GameObject ButtonHomeExtended | Home button shown in the extended state. |
private Panel home | Panel switched to when going back to the normal state. |
private Panel homeExtended | Panel switched to when going to the extended state. |
private bool isExtended | Whether the tablet is in the extended state now. |
private GameObject PlayerListBack | Back object shown only in the extended state. |
Methods
| Member | What it is |
|---|---|
void tabletToggle() | Flips between the normal and extended state, switching panels and button visibility. |