Table of Contents

Class PanelManager

Namespace
Fallencake.UI
Assembly
Fallencake.UI.dll

Modular Panel Manager. Handles switching between panels with optional popup animations, editor-friendly preview, and button synchronization.

[AddComponentMenu("Modular UI/Panel Manager")]
public class PanelManager : MonoBehaviour
Inheritance
object
Object
Component
Behaviour
MonoBehaviour
PanelManager

Fields

OnPanelChanged

public PanelManager.PanelChangeEvent OnPanelChanged

Field Value

PanelManager.PanelChangeEvent

Panels

public List<PanelData> Panels

Field Value

List<PanelData>

currentPanelIndex

public int currentPanelIndex

Field Value

int

Properties

DeactivateUnselectedPanelsInEditor

Deactivate unselected panels in editor mode (runtime always deactivates).

public bool DeactivateUnselectedPanelsInEditor { get; set; }

Property Value

bool

IsActivePanelOnTop

Move active panel to top of hierarchy during animated transitions.

public bool IsActivePanelOnTop { get; set; }

Property Value

bool

IsAnimatedPanelSwitch

Enable animated transitions between panels using PopupTweenAnimator.

public bool IsAnimatedPanelSwitch { get; set; }

Property Value

bool

initializeButtons

Automatically initialize buttons.

public bool initializeButtons { get; set; }

Property Value

bool

Methods

AddNewItem()

public void AddNewItem()

GetCurrentPanelIndex()

Gets the currently selected panel index

public int GetCurrentPanelIndex()

Returns

int

Current panel index

GetPanelCount()

Gets the total number of panels

public int GetPanelCount()

Returns

int

Number of panels

HideCurrentButton()

public void HideCurrentButton()

HideCurrentPanel()

public void HideCurrentPanel()

Initialize()

public void Initialize()

NextPanel()

public void NextPanel()

OpenFirstTab()

public void OpenFirstTab()

OpenPanel(string)

public void OpenPanel(string newPanel)

Parameters

newPanel string

OpenPanelByIndex(int)

public void OpenPanelByIndex(int index)

Parameters

index int

PrevPanel()

public void PrevPanel()

RefreshPanelStates()

Public method to manually trigger panel state update. Respects the IsAnimatedPanelSwitch setting for proper behavior.

public void RefreshPanelStates()

SelectPanel(int)

Public method to select panel by index

public void SelectPanel(int panelIndex)

Parameters

panelIndex int

Index of panel to select

ShowCurrentButton()

public void ShowCurrentButton()

ShowCurrentPanel()

public void ShowCurrentPanel()