| | |
| | | using System.Collections; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using UnityEngine; |
| | | using UnityEngine.UI; |
| | | |
| | |
| | | [SerializeField] Image call10ItemIcon; |
| | | [SerializeField] Text call10Text; |
| | | [SerializeField] Button closeBtn; |
| | | [SerializeField] Text callTip; |
| | | |
| | | |
| | | protected override void InitComponent() |
| | |
| | | { |
| | | UIManager.Instance.OpenWindow<HeroCallScoreWin>(); |
| | | }); |
| | | |
| | | |
| | | ruleBtn.AddListener(() => |
| | | { |
| | | UIManager.Instance.OpenWindow<HeroCallRuleWin>(); |
| | |
| | | } |
| | | else |
| | | { |
| | | call1Text.text = Language.Get("L1100", item.ItemName, UIHelper.AppendColor(funcSet.CostItemCountList[0] > itemCount ? TextColType.Red :TextColType.LightWhite, funcSet.CostItemCountList[0].ToString())); |
| | | call1Text.text = Language.Get("L1100", item.ItemName, UIHelper.AppendColor(funcSet.CostItemCountList[0] > itemCount ? TextColType.Red : TextColType.LightWhite, funcSet.CostItemCountList[0].ToString())); |
| | | } |
| | | call10Text.text = Language.Get("L1100", item.ItemName, UIHelper.AppendColor(funcSet.CostItemCountList[1] > itemCount ? TextColType.Red : TextColType.LightWhite, funcSet.CostItemCountList[1].ToString())); |
| | | |
| | | scoreText.text = UIHelper.GetMoneyCnt(51) + "/" + TreasureSetConfig.Get((int)HappXBTitle.HeroCallScore).CostMoneyList[0]; |
| | | |
| | | if (UIHelper.GetMoneyCnt(51) >= TreasureSetConfig.Get((int)HappXBTitle.HeroCallScore).CostMoneyList[0]) |
| | | { |
| | | { |
| | | scoreTween.SetActive(true); |
| | | } |
| | | else |
| | |
| | | } |
| | | |
| | | RefreshFreeTime(); |
| | | |
| | | //再招募{0}次后必得{1}武将 |
| | | List<int> qualityList = new List<int>(); |
| | | var needCount = HappyXBModel.Instance.GetNextXBCountForBigAward((int)HappXBTitle.HeroCallAdvanced, out qualityList); |
| | | List<string> qualityStrList = new List<string>(); |
| | | for (int i = 0; i < qualityList.Count; i++) |
| | | { |
| | | qualityStrList.Add(UIHelper.AppendColor(qualityList[i], Language.Get("equipQualityFormat", Language.Get("CommonQuality" + qualityList[i])))); |
| | | } |
| | | callTip.text = Language.Get("HeroCall6", needCount, string.Join(Language.Get("L1130"), qualityStrList.ToArray())); |
| | | } |
| | | |
| | | //每秒刷新免费CD的倒计时 |