public void Show(FollowerDetailView followerDetailView)
 {
     base.gameObject.SetActive(true);
     this.m_followerDetailView             = followerDetailView;
     this.m_areYouSureLabel.text           = StaticDB.GetString("ARE_YOU_SURE", null);
     this.m_activationsRemainingLabel.text = StaticDB.GetString("ACTIVATIONS_LEFT_TODAY", null);
     this.m_activationCostLabel.text       = StaticDB.GetString("CHAMPION_ACTIVATION_COST", null);
     this.m_cancelButtonLabel.text         = StaticDB.GetString("NO", null);
     this.m_okButtonLabel.text             = StaticDB.GetString("YES_ACTIVATE", null);
     if (GarrisonStatus.Gold() < 250)
     {
         this.m_okButtonLabel.text    = StaticDB.GetString("CANT_AFFORD", null);
         this.m_okButton.interactable = false;
     }
     else
     {
         this.m_okButton.interactable = true;
     }
     this.m_activationsRemainingText.text = string.Empty + GarrisonStatus.GetRemainingFollowerActivations();
     this.m_activationCostText.text       = string.Empty + GarrisonStatus.GetFollowerActivationGoldCost();
 }
    private void UpdateChampionButtons(JamGarrisonFollower follower)
    {
        if (this.m_activateChampionButton == null || this.m_deactivateChampionButton == null)
        {
            return;
        }
        bool flag = (follower.Flags & 8) != 0;

        if (flag)
        {
            this.m_activateChampionButton.SetActive(false);
            this.m_deactivateChampionButton.SetActive(false);
        }
        else
        {
            bool flag2 = (follower.Flags & 4) != 0;
            bool flag3 = GarrisonStatus.GetRemainingFollowerActivations() > 0;
            this.m_activateChampionButton.SetActive(flag2 && flag3);
            int numActiveChampions = GeneralHelpers.GetNumActiveChampions();
            int maxActiveChampions = GeneralHelpers.GetMaxActiveChampions();
            this.m_deactivateChampionButton.SetActive(!flag2 && numActiveChampions > maxActiveChampions);
        }
    }