【需求】 鸿蒙阵道具数量优化
parent
00bbbea7e9
commit
e7b2eb579e
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue