public PartyMemberVisualController pmvc = null; /// <value> Controller for all visuals related to partyMember </value> /// <summary> /// Initialize all the bars of the active partyMember /// </summary> /// <param name="pm"></param> public void DisplayPartyMember(PartyMemberVisualController pmvc) { if (this.pmvc != null) // forget what this was for { this.pmvc.UnsetHPAndMPBar(GetPanelName()); } pmvc.SetHPAndMPBar(GetPanelName(), HPBar, MPBar); //pmvc.SetStatusBar(seBar); this.pmvc = pmvc; }
/// <summary> /// Initialize the stats panel to display the stats of a given partyMember. /// This includes HP, MP, and EXP bars. /// </summary> /// <param name="pmvc"></param> public void Init(PartyMemberVisualController pmvc) { if (this.pmvc != null) { this.pmvc.UnsetEXPBar(PanelConstants.STATSPANEL); this.pmvc.UnsetHPAndMPBar(PanelConstants.STATSPANEL); } this.pmvc = pmvc; pmvc.SetEXPBar(PanelConstants.STATSPANEL, pmEXPBar); pmvc.SetHPAndMPBar(PanelConstants.STATSPANEL, HPBar, MPBar); int[] stats = pmvc.GetStats(); headerBackground.color = pmvc.partyMemberColour; headerText.SetText(pmvc.GetPartyMemberName() + " " + LVLText + " " + stats[0]); nextLVLBackground.color = EventManager.instance.GetSecondaryThemeColour(); SetPartyMemberStats(pmvc.GetStats()); }