【鸿蒙阵修改】

dev_chengFeng
guowei 2021-01-25 16:27:28 +08:00
parent 5f89898dbb
commit d9d20b7468
2 changed files with 14 additions and 11 deletions

View File

@ -143,20 +143,22 @@ function HongMengEnvoyPanel:BindEvent()
end end
local data = HarmonyManager:GetHongMengUpData() local data = HarmonyManager:GetHongMengUpData()
Gold = BagManager.GetTotalItemNum(UpViewRechargeType.Gold)
GrowthAmulet = BagManager.GetTotalItemNum(UpViewRechargeType.GrowthAmulet)
if Gold >= data.LevelUp[1][2] then if Gold >= data.LevelUp[1][2] then
-- body -- body
self.TextGold.text = string.format("<color=#D1D1D1>%d</color>",data.LevelUp[1][2]) self.TextGold.text = string.format("<color=#9e8d6c>%d</color>",data.LevelUp[1][2])
if GrowthAmulet >= data.LevelUp[2][2] then if GrowthAmulet >= data.LevelUp[2][2] then
self.TextGrowthAmulet.text = string.format("<color=#D1D1D1>%d</color>",data.LevelUp[2][2]) self.TextGrowthAmulet.text = string.format("<color=#9e8d6c>%d</color>",data.LevelUp[2][2])
else else
self.TextGrowthAmulet.text = string.format("<color=#E15558>%d</color>",data.LevelUp[2][2]) self.TextGrowthAmulet.text = string.format("<color=#E15558>%d</color>",data.LevelUp[2][2])
end end
else else
self.TextGold.text = string.format("<color=#E15558>%d</color>",data.LevelUp[1][2]) self.TextGold.text = string.format("<color=#E15558>%d</color>",data.LevelUp[1][2])
LogGreen("变色!!!!!!!!!!!! "..data.LevelUp[1][2])
if GrowthAmulet >= data.LevelUp[2][2] then if GrowthAmulet >= data.LevelUp[2][2] then
self.TextGrowthAmulet.text = string.format("<color=#D1D1D1>%d</color>",data.LevelUp[2][2]) self.TextGrowthAmulet.text = string.format("<color=#9e8d6c>%d</color>",data.LevelUp[2][2])
else else
self.TextGrowthAmulet.text = string.format("<color=#E15558>%d</color>",data.LevelUp[2][2]) self.TextGrowthAmulet.text = string.format("<color=#E15558>%d</color>",data.LevelUp[2][2])

View File

@ -216,7 +216,7 @@ function this.SingleBoxDataShow(go,boxData,index)
if HarmonyManager.RefreshOpenBoxPoint() then if HarmonyManager.RefreshOpenBoxPoint() then
-- body -- body
CheckRedPointStatus(RedPointType.HongMeng_OpenBox) CheckRedPointStatus(RedPointType.HongMeng_OpenBox)
print(Gold.."!@@@@@@"..boxData.PropPrice[2]) --print(Gold.."!@@@@@@"..boxData.PropPrice[2])
if Gold > boxData.PropPrice[2] then if Gold > boxData.PropPrice[2] then
-- body -- body
redPoint:SetActive(true) redPoint:SetActive(true)
@ -271,13 +271,14 @@ function this.SingleBoxDataShow(go,boxData,index)
if HarmonyManager.hongmengHeroInfos[i].gridId ==boxData.Id then if HarmonyManager.hongmengHeroInfos[i].gridId ==boxData.Id then
HarmonyManager.hongmengHeroInfos[i].time = 0 HarmonyManager.hongmengHeroInfos[i].time = 0
print("清除数据") print("清除数据")
break
end end
end end
AddImage:SetActive(true) AddImage:SetActive(true)
TimerText.text = "" TimerText.text = ""
end,"取消","确认") end,"取消","确认")
this.RunTimerFun()
end) end)
end end