| | |
| | | { |
| | | lockImg.SetActive(false); |
| | | int maxValue = 0; |
| | | for (int i = 0; i < config.DailyBootyUpperList.Length; i++) |
| | | { |
| | | if (config.DailyBootyUpperList[i][0] == itemID) |
| | | if (config.DailyBootyUpperList != null) |
| | | { |
| | | for (int i = 0; i < config.DailyBootyUpperList.Length; i++) |
| | | { |
| | | maxValue = config.DailyBootyUpperList[i][1]; |
| | | break; |
| | | if (config.DailyBootyUpperList[i][0] == itemID) |
| | | { |
| | | maxValue = config.DailyBootyUpperList[i][1]; |
| | | break; |
| | | } |
| | | } |
| | | } |
| | | int curValue = 0; |
| | | MainLevelManager.Instance.m_DailyBootyDict.TryGetValue(itemID, out curValue); |
| | | dropValueText.text = UIHelper.AppendColor(curValue >= maxValue ? TextColType.Red : TextColType.Green, |
| | | UIHelper.ReplaceLargeNum(curValue) + "/" + UIHelper.ReplaceLargeNum(maxValue)); |
| | | if (maxValue > 1000000000) |
| | | { |
| | | dropValueText.text = UIHelper.AppendColor(TextColType.Green, UIHelper.ReplaceLargeNum(curValue) + "/" + Language.Get("L1138")); |
| | | } |
| | | else |
| | | { |
| | | dropValueText.text = UIHelper.AppendColor(curValue >= maxValue ? TextColType.Red : TextColType.Green, |
| | | UIHelper.ReplaceLargeNum(curValue) + "/" + UIHelper.ReplaceLargeNum(maxValue)); |
| | | } |
| | | |
| | | } |
| | | } |