| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using UnityEngine; |
| | | public class BoneFieldWin : UIBase |
| | |
| | | |
| | | DisplayFBInfo(nPCConfig, dungeonConfig, nowPassLineID); |
| | | DisplayChallengeButton(dungeonConfig, fbInfo); |
| | | DisplaySweepButton(); |
| | | DisplaySweepButton(dungeonConfig); |
| | | DisplayAdsButton(aDAwardConfig); |
| | | DisplaySkillWordsList(lineupConfig); |
| | | DisplayItemCellList(challengeItemCells1, dungeonConfig.PassAwardList); |
| | |
| | | |
| | | |
| | | |
| | | public void DisplaySweepButton() |
| | | public void DisplaySweepButton(DungeonConfig dungeonConfig) |
| | | { |
| | | if (!BoneFieldManager.Instance.TryGetShowSweepCount(out showSweepMaxCount, out showrealRemainSweepCount)) |
| | | return; |
| | | bool isSweepCountOk = showrealRemainSweepCount > 0; |
| | | imgSweepNo.SetActive(!isSweepCountOk); |
| | | btnSweep.interactable = isSweepCountOk; |
| | | imgSweepRed.SetActive(isSweepCountOk); |
| | | long myFightPower = PlayerDatas.Instance.baseData.FightPower; |
| | | 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)); |
| | | |
| | | } |
| | | |
| | | public void DisplayAdsButton(ADAwardConfig aDAwardConfig) |