コード例 #1
0
 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();
 }