四灵修改提交
parent
7d9cee89ab
commit
b9cad9a855
|
@ -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
|
||||
|
|
|
@ -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
|
|
@ -129,10 +129,10 @@ function MonsterCampMainPanel:SetSingleTrailData(go,data)
|
|||
local openTime = Util.GetGameObject(go, "openTime"):GetComponent("Text")
|
||||
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)
|
||||
if data.canFightTime >= campTowerSetting.TimesStoreMax then
|
||||
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).."开启"
|
||||
|
|
Loading…
Reference in New Issue