您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

47 行
1.3 KiB

  1. using System;
  2. using CIG.Translation;
  3. using SUISSEngine;
  4. using UnityEngine;
  5. using UnityEngine.UI;
  6. public class ReceiveRewardPopupView : PopupBaseView
  7. {
  8. public override void OnBlackOverlayClicked()
  9. {
  10. }
  11. public void SetCurrencyReward(Currencies currency)
  12. {
  13. bool flag = CIGUtilities.HasCash(currency);
  14. bool flag2 = CIGUtilities.HasGold(currency);
  15. this._goldOnlyRewardImage.SetActive(flag2 && !flag);
  16. this._cashOnlyRewardImage.SetActive(!flag2 && flag);
  17. this._goldAndCashRewardImage.SetActive(flag2 && flag);
  18. this._goldRewardContainer.gameObject.SetActive(flag2);
  19. this._cashRewardContainer.gameObject.SetActive(flag);
  20. this._goldAmountLabel.LocalizedString = Localization.Integer(currency.GetValue("Gold"));
  21. this._cashAmountLabel.LocalizedString = Localization.Integer(currency.GetValue("Cash"));
  22. }
  23. [SerializeField]
  24. private GameObject _goldOnlyRewardImage;
  25. [SerializeField]
  26. private GameObject _cashOnlyRewardImage;
  27. [SerializeField]
  28. private GameObject _goldAndCashRewardImage;
  29. [SerializeField]
  30. private LayoutGroup _goldRewardContainer;
  31. [SerializeField]
  32. private LayoutGroup _cashRewardContainer;
  33. [SerializeField]
  34. private LocalizedText _goldAmountLabel;
  35. [SerializeField]
  36. private LocalizedText _cashAmountLabel;
  37. }