小兵修改提交
parent
f9d180ea53
commit
efb714863e
|
|
@ -425,6 +425,7 @@ function this.RefreshBossInfo()
|
|||
local nextBossLv=0
|
||||
local curFight=FightPointPassManager.curOpenFight
|
||||
local name=""
|
||||
local nextLv=0
|
||||
LogError("刷星boss显示 curfight==========================================================="..curFight)
|
||||
for k,v in ConfigPairs(fightLevelConfig) do
|
||||
local aa=v
|
||||
|
|
@ -435,36 +436,17 @@ function this.RefreshBossInfo()
|
|||
name=aa.Name
|
||||
end
|
||||
table.insert(levelList,k)
|
||||
|
||||
end
|
||||
if FightPointPassManager.soldierLayerId < aa.OpenRule[1][2] then
|
||||
if nextBossLv==0 then
|
||||
nextBossLv=aa.OpenRule[1][2]
|
||||
name=aa.Name
|
||||
--break
|
||||
end
|
||||
nextLv=v.NextLevel
|
||||
end
|
||||
end
|
||||
end
|
||||
for k,v in ConfigPairs(fightLevelConfig) do
|
||||
local aa=v
|
||||
if k>=curFight then
|
||||
if aa.OpenRule and (aa.OpenRule[1][1]==9 or aa.OpenRule[1][1]==0 ) and FightPointPassManager.soldierLayerId>=aa.OpenRule[1][2] then
|
||||
--LogError("k==================================="..k)
|
||||
if name=="" then
|
||||
name=aa.Name
|
||||
end
|
||||
table.insert(levelList,k)
|
||||
|
||||
end
|
||||
if FightPointPassManager.soldierLayerId < aa.OpenRule[1][2] then
|
||||
if nextBossLv==0 then
|
||||
nextBossLv=aa.OpenRule[1][2]
|
||||
name=aa.Name
|
||||
--break
|
||||
end
|
||||
end
|
||||
end
|
||||
if nextLv==0 then
|
||||
nextLv=curFight
|
||||
end
|
||||
local nextConfig=ConfigManager.GetConfigData(ConfigName.MainLevelConfig,nextLv)
|
||||
if nextConfig then
|
||||
nextBossLv=nextConfig.OpenRule[1][2]
|
||||
name=nextConfig.Name
|
||||
end
|
||||
LogError("nextBossLv====================="..nextBossLv)
|
||||
if #levelList>0 then
|
||||
|
|
|
|||
|
|
@ -222,7 +222,10 @@ function SmallSoldierInfoPanel:ShwoSoliderInfo(go,data,_type)
|
|||
end
|
||||
end
|
||||
if imgStr then
|
||||
img.gameObject:SetActive(true)
|
||||
img.sprite=self.spLoader:LoadSprite(imgStr)
|
||||
else
|
||||
img.gameObject:SetActive(false)
|
||||
end
|
||||
addDamage=addDamage+(newData.attributes[i].value-oldData.attributes[i].value)*propertyConfig[i].Score
|
||||
else
|
||||
|
|
|
|||
|
|
@ -120,9 +120,10 @@ function SmallSoldierLvInfoPanel:OnShow()
|
|||
local lotteryData={}
|
||||
|
||||
curConfig=ConfigManager.GetConfigData(ConfigName.SoldiersLotteryConfig,curLv)
|
||||
local nextConfig=ConfigManager.GetConfigData(ConfigName.SoldiersLotteryConfig,nextLv)
|
||||
local nextConfig=ConfigManager.TryGetConfigData(ConfigName.SoldiersLotteryConfig,nextLv)
|
||||
if nextConfig==nil then
|
||||
nextConfig=curConfig
|
||||
self.nextlv.text="下一等级:"..curLv
|
||||
end
|
||||
|
||||
local qua=0
|
||||
|
|
@ -145,9 +146,17 @@ function SmallSoldierLvInfoPanel:OnShow()
|
|||
data.rightData.pro=nextConfig.Show[i][2]/100 .."%"
|
||||
table.insert(lotteryData,data)
|
||||
end
|
||||
LogError("GetResourcePath(curConfig.Consume[1])=="..GetResourcePath(curConfig.Consume[1]).." "..curConfig.Consume[1])
|
||||
self.costImg.sprite=SetIcon(self.spLoader, curConfig.Consume[1]) --self.spLoader:LoadSprite(GetResourcePath(curConfig.Consume[1]))
|
||||
self.costTxt.text=curConfig.Consume[2]
|
||||
--LogError("GetResourcePath(curConfig.Consume[1])=="..GetResourcePath(curConfig.Consume[1]).." "..curConfig.Consume[1])
|
||||
--self.spLoader:LoadSprite(GetResourcePath(curConfig.Consume[1]))
|
||||
if curConfig.Consume and type(curConfig.Consume[1])~="userdata" then
|
||||
self.costImg.gameObject:SetActive(true)
|
||||
self.costTxt.gameObject:SetActive(true)
|
||||
self.costImg.sprite=SetIcon(self.spLoader, curConfig.Consume[1])
|
||||
self.costTxt.text=curConfig.Consume[2]
|
||||
else
|
||||
self.costImg.gameObject:SetActive(false)
|
||||
self.costTxt.gameObject:SetActive(false)
|
||||
end
|
||||
self.skipObj:SetActive(SmallSoldierManager.upEndTime>0)
|
||||
self.upObj:SetActive(SmallSoldierManager.upEndTime==0)
|
||||
self.skipCostImg.sprite=SetIcon(self.spLoader,tonumber(aaa[1])) --self.spLoader:LoadSprite(GetResourcePath(tonumber(aaa[1])))
|
||||
|
|
|
|||
Loading…
Reference in New Issue