| | |
| | | { |
| | | [SerializeField] TextEx txtDifficulty; |
| | | [SerializeField] TextEx txtBossName; |
| | | [SerializeField] ImageEx imgMoneyCount; |
| | | [SerializeField] TextEx txtNeedMoneyCount; |
| | | [SerializeField] TextEx txtTodaySweepCount; |
| | | [SerializeField] TextEx txtTodayAdsCount; |
| | | [SerializeField] TextEx txtFirstFree; |
| | |
| | | imgSweepRed.SetActive(isSweepCountOk && myFightPower < dungeonConfig.FightPower); |
| | | txtFirstFree.SetActive(showSweepMaxCount == showrealRemainSweepCount); |
| | | txtTodaySweepCount.SetActive(showSweepMaxCount > showrealRemainSweepCount); |
| | | txtTodaySweepCount.text = UIHelper.AppendColor(isSweepCountOk ? TextColType.Green : TextColType.Red, Language.Get("BoneField08", showrealRemainSweepCount, showSweepMaxCount)); |
| | | txtTodaySweepCount.text = UIHelper.AppendColor(isSweepCountOk ? TextColType.LightGreen : TextColType.Red, Language.Get("BoneField08", showrealRemainSweepCount, showSweepMaxCount)); |
| | | imgMoneyCount.SetActive(showSweepMaxCount != showrealRemainSweepCount && isSweepCountOk); |
| | | txtNeedMoneyCount.SetActive(showSweepMaxCount != showrealRemainSweepCount && isSweepCountOk); |
| | | if (showSweepMaxCount != showrealRemainSweepCount && isSweepCountOk) |
| | | { |
| | | int dataMapID = BoneFieldManager.Instance.DataMapID; |
| | | DungeonOpenTimeConfig config = DungeonOpenTimeConfig.Get(dataMapID); |
| | | int index = Mathf.Min(Mathf.Max(0, showSweepMaxCount - showrealRemainSweepCount - 1), config.PayMoneyValues.Length - 1); |
| | | int payMoneyValue = config.PayMoneyValues[index]; |
| | | int payMoneyType = config.PayMoneyType; |
| | | imgMoneyCount.SetIconWithMoneyType(payMoneyType); |
| | | txtNeedMoneyCount.text = payMoneyValue.ToString(); |
| | | } |
| | | } |
| | | |
| | | public void DisplayAdsButton(ADAwardConfig aDAwardConfig) |
| | |
| | | bool isShowAds = adsCnt < aDAwardConfig.ADCntMax; |
| | | int remainAdsCount = aDAwardConfig.ADCntMax - adsCnt; |
| | | btnAds.SetActive(isShowAds); |
| | | txtTodayAdsCount.text = UIHelper.AppendColor(isShowAds ? TextColType.Green : TextColType.Red, Language.Get("BoneField09", remainAdsCount, aDAwardConfig.ADCntMax)); ; |
| | | txtTodayAdsCount.text = UIHelper.AppendColor(isShowAds ? TextColType.LightGreen : TextColType.Red, Language.Get("BoneField09", remainAdsCount, aDAwardConfig.ADCntMax)); ; |
| | | } |
| | | |
| | | public void DisplayItemCellList(List<ItemCell> itemCells, int[][] items) |