parent
c1c057176a
commit
0875314a5d
|
@ -181,7 +181,9 @@ end
|
||||||
function this.ShowTitleAllData()
|
function this.ShowTitleAllData()
|
||||||
curMonsterId = GuildCarDelayManager.bossIndexId
|
curMonsterId = GuildCarDelayManager.bossIndexId
|
||||||
curMonsterIdConFig = ConfigManager.GetConfigData(ConfigName.WorldBossConfig,curMonsterId)
|
curMonsterIdConFig = ConfigManager.GetConfigData(ConfigName.WorldBossConfig,curMonsterId)
|
||||||
Log("BossId:"..curMonsterIdConFig.Boss)
|
--获取上一个boss数据
|
||||||
|
local lastMonsterId,lastMonsterIdConFig = this.GetLastBoss(curMonsterId)
|
||||||
|
Log("curMonsterId:"..curMonsterIdConFig.Boss.." lastMonsterId:"..lastMonsterIdConFig.Boss)
|
||||||
this.name.text = heroConfig[curMonsterIdConFig.Boss].ReadingName
|
this.name.text = heroConfig[curMonsterIdConFig.Boss].ReadingName
|
||||||
this.proImage.sprite=Util.LoadSprite(GetProStrImageByProNum(heroConfig[curMonsterIdConFig.Boss].PropertyName))
|
this.proImage.sprite=Util.LoadSprite(GetProStrImageByProNum(heroConfig[curMonsterIdConFig.Boss].PropertyName))
|
||||||
curProgress = GuildCarDelayManager.progress
|
curProgress = GuildCarDelayManager.progress
|
||||||
|
@ -203,7 +205,7 @@ function this.ShowTitleAllData()
|
||||||
this.timer = nil
|
this.timer = nil
|
||||||
end
|
end
|
||||||
this.timeTextGo:SetActive(true)
|
this.timeTextGo:SetActive(true)
|
||||||
this.timeText2.text = Language[11040]
|
this.timeText2.text = "车迟斗法将于次日0点重置。"
|
||||||
--else
|
--else
|
||||||
elseif curProgress == -1 then
|
elseif curProgress == -1 then
|
||||||
timeText = Language[11041]
|
timeText = Language[11041]
|
||||||
|
@ -220,11 +222,11 @@ function this.ShowTitleAllData()
|
||||||
this.RemainTimeDown(this.timeTextGo,this.timeText,this.timeNumText,GuildCarDelayManager.endTime - GetTimeStamp(),timeText)
|
this.RemainTimeDown(this.timeTextGo,this.timeText,this.timeNumText,GuildCarDelayManager.endTime - GetTimeStamp(),timeText)
|
||||||
end
|
end
|
||||||
if testLiveGO then
|
if testLiveGO then
|
||||||
|
poolManager:UnLoadLive(GetResourcePath(heroConfig[lastMonsterIdConFig.Boss].Live), testLiveGO)
|
||||||
poolManager:UnLoadLive(GetResourcePath(heroConfig[curMonsterIdConFig.Boss].Live), testLiveGO)
|
poolManager:UnLoadLive(GetResourcePath(heroConfig[curMonsterIdConFig.Boss].Live), testLiveGO)
|
||||||
end
|
end
|
||||||
local pos = heroConfig[curMonsterIdConFig.Boss].Position
|
local pos = heroConfig[curMonsterIdConFig.Boss].Position
|
||||||
testLiveGO = poolManager:LoadLive(GetResourcePath(heroConfig[curMonsterIdConFig.Boss].Live), this.live2dRoot.transform, Vector3.one*heroConfig[curMonsterIdConFig.Boss].Scale, Vector3.New(pos[1], pos[2], 0))
|
testLiveGO = poolManager:LoadLive(GetResourcePath(heroConfig[curMonsterIdConFig.Boss].Live), this.live2dRoot.transform, Vector3.one*heroConfig[curMonsterIdConFig.Boss].Scale, Vector3.New(pos[1], pos[2], 0))
|
||||||
LogYellow("############")
|
|
||||||
this.live2dRoot.transform.localScale = Vector3.one*0.8
|
this.live2dRoot.transform.localScale = Vector3.one*0.8
|
||||||
if curMonsterIdConFig.Boss == 10023 then--孙悟空太大了特殊处理了
|
if curMonsterIdConFig.Boss == 10023 then--孙悟空太大了特殊处理了
|
||||||
this.live2dRoot.transform.localPosition = Vector3.New(0,80,0)
|
this.live2dRoot.transform.localPosition = Vector3.New(0,80,0)
|
||||||
|
@ -232,7 +234,19 @@ function this.ShowTitleAllData()
|
||||||
this.live2dRoot.transform.localPosition = Vector3.New(0,170,0)
|
this.live2dRoot.transform.localPosition = Vector3.New(0,170,0)
|
||||||
end
|
end
|
||||||
this.RefrePanelRedPoint()
|
this.RefrePanelRedPoint()
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.GetLastBoss(curBossId)
|
||||||
|
local lastIndex = 0
|
||||||
|
if curBossId == 1 then
|
||||||
|
lastIndex = #ConfigManager.GetConfig(ConfigName.WorldBossConfig)
|
||||||
|
else
|
||||||
|
lastIndex = curBossId - 1
|
||||||
end
|
end
|
||||||
|
local lastMonsterIdConFig = ConfigManager.GetConfigData(ConfigName.WorldBossConfig,lastIndex)
|
||||||
|
return lastMonsterIdConFig.Boss,lastMonsterIdConFig
|
||||||
|
end
|
||||||
|
|
||||||
-- tab节点显示自定义
|
-- tab节点显示自定义
|
||||||
function this.TabAdapter(tab, index, status)
|
function this.TabAdapter(tab, index, status)
|
||||||
local tabLab = Util.GetGameObject(tab, "Text")
|
local tabLab = Util.GetGameObject(tab, "Text")
|
||||||
|
|
Loading…
Reference in New Issue