【需求】 鸿蒙阵道具数量优化

dev_chengFeng
guowei 2021-03-04 18:27:31 +08:00 committed by DESKTOP-98AVA47\Administrator
parent 00bbbea7e9
commit e7b2eb579e
1 changed files with 6 additions and 5 deletions

View File

@ -38,7 +38,7 @@ function HongMengEnvoyPanel:InitComponent()
local parent = Util.GetGameObject(self.gameObject, "Panel/HongMeng")
local ItemPfb = Util.GetGameObject(self.gameObject, "Panel/HarmonyPanel/item")
--初始化格子中的数据
--初始化格子中的数据
HarmonyManager:InitGongMingDataList()
HarmonyManager:SetTowerInit()
@ -273,14 +273,15 @@ function HongMengEnvoyPanel:UpdateTextColor()
local data = HarmonyManager:GetHongMengUpData()
if Gold >= data.LevelUp[1][2] then
-- 是否变色
self.TextGold.text = string.format("<color=#F1E7E7>%d</color>",data.LevelUp[1][2])
self.TextGold.text = string.format("<color=#F1E7E7>%s</color>",PrintWanNum(data.LevelUp[1][2]))
else
self.TextGold.text = string.format("<color=#E15558>%d</color>",data.LevelUp[1][2])
self.TextGold.text = string.format("<color=#E15558>%s</color>",PrintWanNum(data.LevelUp[1][2]))
end
if GrowthAmulet >= data.LevelUp[2][2] then
self.TextGrowthAmulet.text = string.format("<color=#F1E7E7>%d</color>",data.LevelUp[2][2])
self.TextGrowthAmulet.text = string.format("<color=#F1E7E7>%s</color>",PrintWanNum(data.LevelUp[2][2]))
else
self.TextGrowthAmulet.text = string.format("<color=#E15558>%d</color>",data.LevelUp[2][2])
self.TextGrowthAmulet.text = string.format("<color=#E15558>%s</color>",PrintWanNum(data.LevelUp[2][2]))
end
end
function HongMengEnvoyPanel:UpdateGoldVal()