Skip to main content

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.

Constructors​

MemberWhat it is
TabletToggle()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

7 private and internal fields
MemberWhat it is
private Button buttonThe toggle's button. Not used by the code itself.
private GameObject ButtonHomeHome button shown in the normal state.
private GameObject ButtonHomeExtendedHome button shown in the extended state.
private Panel homePanel switched to when going back to the normal state.
private Panel homeExtendedPanel switched to when going to the extended state.
private bool isExtendedWhether the tablet is in the extended state now.
private GameObject PlayerListBackBack object shown only in the extended state.

Methods​

MemberWhat it is
void tabletToggle()Flips between the normal and extended state, switching panels and button visibility.