【修行】提交
parent
810139a324
commit
beb2d5b56c
|
@ -117,8 +117,6 @@ end
|
|||
|
||||
--设置下方神印信息界面
|
||||
function PracticeImprint:ShowSingleImprintInfoLayout(_serverData,_configData)
|
||||
|
||||
LogYellow("_imprintId:".._serverData.id.." subId:".._serverData.subId)
|
||||
--title显示
|
||||
if _configData.Type == 0 then
|
||||
self.leftTitle.text = string.format("通用神印·%s",_configData.Name)
|
||||
|
@ -134,7 +132,6 @@ function PracticeImprint:ShowSingleImprintInfoLayout(_serverData,_configData)
|
|||
self.rightInfo:SetActive(false)
|
||||
elseif _configData.Type == 1 then
|
||||
self.rightInfo:SetActive(true)
|
||||
-- self.curHeroId = PracticeManager.ImprintServerData[_configData.Id].subId
|
||||
end
|
||||
if _serverData.state == 0 then
|
||||
self.doBtnText.text = "选择神印"
|
||||
|
@ -159,7 +156,6 @@ function PracticeImprint:ShowSingleImprintInfoLayout(_serverData,_configData)
|
|||
return
|
||||
end
|
||||
end
|
||||
-- LogRed("old:"..tostring(old).." new:"..tostring(new).." sub:"..tostring(sub))
|
||||
NetManager.PracticeImprintRequest(old,new,tostring(sub),function ()
|
||||
self:Refresh(true,true,function ()
|
||||
self.ImprintInfo:SetActive(true)
|
||||
|
@ -182,16 +178,11 @@ function PracticeImprint:ShowSingleImprintInfoLayout(_serverData,_configData)
|
|||
if _serverData and _configData.Type == 1 then
|
||||
self.Add:SetActive(true)
|
||||
self.Hero:SetActive(false)
|
||||
-- LogRed("Id:"..tostring(_serverData.id).." _serverData.subId:"..tostring(_serverData.subId))
|
||||
-- LogRed(tostring(not _serverData.subId))
|
||||
-- LogRed(tostring(_serverData.subId ~= nil))
|
||||
-- LogRed(tostring(tostring(_serverData.subId) ~= ""))
|
||||
if _serverData.subId ~= nil and _serverData.subId ~= "" and _serverData.subId ~= "nil" then
|
||||
self.Add:SetActive(false)
|
||||
self.Hero:SetActive(true)
|
||||
--英雄图标
|
||||
heroData = HeroManager.GetSingleHeroData(tostring(_serverData.subId))
|
||||
-- LogGreen("heroData:"..tostring(heroData))
|
||||
frame.sprite = Util.LoadSprite(GetHeroQuantityImageByquality(heroData.heroConfig.Quality,heroData.star))
|
||||
icon.sprite = Util.LoadSprite(heroData.icon)
|
||||
lv.text = heroData.lv
|
||||
|
@ -206,8 +197,6 @@ function PracticeImprint:ShowSingleImprintInfoLayout(_serverData,_configData)
|
|||
lv.text = _heroData.lv
|
||||
proIcon.sprite = Util.LoadSprite(GetProStrImageByProNum(_heroData.heroConfig.PropertyName))
|
||||
SetHeroStars(starGrid, _heroData.star)
|
||||
-- self.curHeroId = tostring(_heroData.dynamicId)
|
||||
|
||||
--刷新
|
||||
self:Refresh(true,true,function ()
|
||||
self.ImprintInfo:SetActive(true)
|
||||
|
|
|
@ -110,7 +110,6 @@ function Practice:OnOpen()
|
|||
end
|
||||
|
||||
function Practice:OnSortingOrderChange()
|
||||
-- Util.AddParticleSortLayer(self.effect, self.sortingOrder - orginLayer)
|
||||
orginLayer = self.sortingOrder
|
||||
-- 头像层级
|
||||
if self.playerInfoView then
|
||||
|
@ -121,7 +120,7 @@ end
|
|||
function Practice:OnShow()
|
||||
FormationManager.RefreshMainFormationPower()
|
||||
self.curLevelConfig = PracticeManager.GetCurConfigData()
|
||||
LogYellow("PracticeLevel:"..tostring(PracticeManager.PracticeLevel))
|
||||
LogYellow("当前修行等级Id:"..tostring(PracticeManager.PracticeLevel))
|
||||
oldPower = FormationManager.GetFormationPower(FormationTypeDef.FORMATION_NORMAL)
|
||||
oldBigLevel = PracticeManager.PracticeBigLevel
|
||||
self:RefreshMid()
|
||||
|
|
Loading…
Reference in New Issue