四灵修改提交

dev_chengFeng
jiaoyangna 2021-03-01 20:26:43 +08:00
parent 7d9cee89ab
commit b9cad9a855
3 changed files with 7 additions and 6 deletions

View File

@ -61,7 +61,7 @@ function this.GetHeros(limitLevel)
return heros
end
function this.SortHeroDatas1(data)
function this.SortHeroDatas(data)
for i = 1 ,#data do
if not HeroManager.IsHaveHero(data[i].dynamicId) then
data[i].fourElementSortId = 1

View File

@ -48,7 +48,6 @@ function this:BindEvent()
this:BtnClick(i)
end)
end
BindRedPointObject(redTrailType[curType],Util.GetGameObject(tabs[#tabs], "redPoint"))
end
function this:BtnClick(i)
@ -85,6 +84,7 @@ function this:OnShow(_parent,...)
rate = tonumber(string.format("%.2f",ConfigManager.GetConfigData(ConfigName.CampTowerSetting,1).HelpFightMax / 10000))
canHelpPower = heightPower*rate
this:BtnClick(1)
BindRedPointObject(redTrailType[curType],Util.GetGameObject(tabs[#tabs], "redPoint"))
end
function this:SortHeros(data)
@ -179,6 +179,7 @@ end
function this:OnClose()
curIndex = 0
ClearRedPointObject(redTrailType[curType],Util.GetGameObject(tabs[#tabs], "redPoint"))
end
function this:OnDestroy()
@ -191,7 +192,7 @@ function this:OnDestroy()
this.ScrollView = nil
end
itemList = {}
ClearRedPointObject(redTrailType[curType],Util.GetGameObject(tabs[#tabs], "redPoint"))
end
return this

View File

@ -130,9 +130,9 @@ function MonsterCampMainPanel:SetSingleTrailData(go,data)
title.sprite = Util.LoadSprite(FourElementNameImage[data.fourElementType])
curwave.text = (data.monsterWave + 1)..""
if data.canFightTime >= campTowerSetting.TimesStoreMax then
canFightWave.text = string.format("可挑战层数:<color = #%s>%s</color>","FFD695",data.canFightTime)
canFightWave.text = string.format("<color=#%s>可挑战层数:%s</color>","FFD695",data.canFightTime)
else
canFightWave.text = string.format("可挑战层数:<color = #%s>%s</color>","FFEED3",data.canFightTime)
canFightWave.text = string.format("<color=#%s>可挑战层数:%s</color>","FFEED3",data.canFightTime)
end
openTime.text = this:GetOpenTime(data.fourElementType).."开启"