PatronPanelUI

Overview

Header-side panel that shows ability racks for the currently selected personality and a Reroll button (Mobster-only). Auto-hides when the Event panel opens and re-shows when it closes.

Serialized

  • IntVariable selectedPersonality
  • ChairmanEventEvent openEventPanel
  • VoidEvent eventPanelClosed
  • DOTweenAnimation hidePanelTween
  • GameObject mobsterAbilityRack, schemerAbilityRack, suberfugeAbilityRack, rerollButton

Behavior

  • Start()
    • Initialize from selectedPersonality (fallback 0 if -1) and register listeners.
    • Subscribe to openEventPanelhide, and eventPanelClosedshow.
  • OnHideShowButtonPressed() toggles the panel using HidePatronPanel tween id.
  • OnPersonalityChanged(int p) toggles which rack is visible and shows Reroll only for Mobster.
  • OnDestroy() unregisters all listeners.