- using System;
- using CIG.Translation;
- using SUISSEngine;
- using UnityEngine;
- using UnityEngine.UI;
-
- public class ReceiveRewardPopupView : PopupBaseView
- {
- public override void OnBlackOverlayClicked()
- {
- }
-
- public void SetCurrencyReward(Currencies currency)
- {
- bool flag = CIGUtilities.HasCash(currency);
- bool flag2 = CIGUtilities.HasGold(currency);
- this._goldOnlyRewardImage.SetActive(flag2 && !flag);
- this._cashOnlyRewardImage.SetActive(!flag2 && flag);
- this._goldAndCashRewardImage.SetActive(flag2 && flag);
- this._goldRewardContainer.gameObject.SetActive(flag2);
- this._cashRewardContainer.gameObject.SetActive(flag);
- this._goldAmountLabel.LocalizedString = Localization.Integer(currency.GetValue("Gold"));
- this._cashAmountLabel.LocalizedString = Localization.Integer(currency.GetValue("Cash"));
- }
-
- [SerializeField]
- private GameObject _goldOnlyRewardImage;
-
- [SerializeField]
- private GameObject _cashOnlyRewardImage;
-
- [SerializeField]
- private GameObject _goldAndCashRewardImage;
-
- [SerializeField]
- private LayoutGroup _goldRewardContainer;
-
- [SerializeField]
- private LayoutGroup _cashRewardContainer;
-
- [SerializeField]
- private LocalizedText _goldAmountLabel;
-
- [SerializeField]
- private LocalizedText _cashAmountLabel;
- }
|