You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

34 lines
812 B

  1. using System;
  2. using CIG.Translation;
  3. using SUISS.Core;
  4. using SUISSEngine;
  5. using UnityEngine;
  6. public class TooMuchParallelBuildsPopupView : PopupBaseView
  7. {
  8. public void UpdateInfo(Currencies extraCost)
  9. {
  10. this._bodyLabel.LocalizedString = Localization.Format(Localization.Key("too_many_builds"), new ILocalizedString[]
  11. {
  12. Localization.Integer(SingletonMonobehaviour<CIGBuilderManager>.Instance.MaxBuildCount)
  13. });
  14. this._goldLabel.LocalizedString = Localization.Integer(extraCost.GetValue("Gold"));
  15. }
  16. public void OnBuyButtonClicked()
  17. {
  18. ((TooMuchParallelBuildsPopupState)this.State).Buy();
  19. }
  20. public void OnCancelClicked()
  21. {
  22. this.OnCloseClicked();
  23. }
  24. [SerializeField]
  25. private LocalizedText _bodyLabel;
  26. [SerializeField]
  27. private LocalizedText _goldLabel;
  28. }