特训修改
parent
9dc98ad4ce
commit
ed1d27394e
|
|
@ -7713,14 +7713,15 @@ function NetManager.TrainingUnlockSkillRequest(_heroid,_unlockId,pockemensId,mag
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
if pockemensId then
|
if pockemensId then
|
||||||
|
|
||||||
for i = 1, #pockemensId do
|
for i = 1, #pockemensId do
|
||||||
data.pokemonIds:append(tostring(pockemensId[i]))
|
data.pokemonIds:append(tostring(pockemensId[i]))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
if magicSoldierIds then
|
||||||
|
for i = 1, #magicSoldierIds do
|
||||||
|
data.magicSoldierIds:append(tostring(magicSoldierIds[i]))
|
||||||
|
end
|
||||||
|
end
|
||||||
--data.incarnationCards= incarnationCards
|
--data.incarnationCards= incarnationCards
|
||||||
if item then
|
if item then
|
||||||
if item.itemtype==56 then
|
if item.itemtype==56 then
|
||||||
|
|
|
||||||
|
|
@ -74,9 +74,13 @@ function SpecailTrainingInfoPopup:OnShow()
|
||||||
HeroManager.GetHeroTrainingAddPro(self._curHerodata.dynamicId)
|
HeroManager.GetHeroTrainingAddPro(self._curHerodata.dynamicId)
|
||||||
self.ScrollView:SetData(self.showList, function(index, go)
|
self.ScrollView:SetData(self.showList, function(index, go)
|
||||||
self:SetSingleData(index,go,self.showList[index])
|
self:SetSingleData(index,go,self.showList[index])
|
||||||
|
LayoutRebuilder.ForceRebuildLayoutImmediate(go.transform)
|
||||||
end)
|
end)
|
||||||
ForceRebuildLayout(self.GameObject.transform)
|
--ForceRebuildLayout(self.GameObject.transform)
|
||||||
|
UnityEngine.UI.LayoutRebuilder.ForceRebuildLayoutImmediate(self.GameObject.transform)
|
||||||
|
UnityEngine.UI.LayoutRebuilder.ForceRebuildLayoutImmediate(self.GameObject.transform)
|
||||||
self.ScrollView:SetIndex(1)
|
self.ScrollView:SetIndex(1)
|
||||||
|
LayoutRebuilder.ForceRebuildLayoutImmediate(self.GameObject.transform)
|
||||||
end
|
end
|
||||||
--
|
--
|
||||||
--_data=TrainingConfig
|
--_data=TrainingConfig
|
||||||
|
|
@ -165,7 +169,7 @@ function SpecailTrainingInfoPopup:SetSingleData(index,_go,_data)
|
||||||
local Button = Util.GetGameObject( singleAttList[i][1],"Button")
|
local Button = Util.GetGameObject( singleAttList[i][1],"Button")
|
||||||
Util.AddOnceClick(Button,function()
|
Util.AddOnceClick(Button,function()
|
||||||
if not CheckFunctionOpen(FUNCTION_OPEN_TYPE.TrainBuild) then
|
if not CheckFunctionOpen(FUNCTION_OPEN_TYPE.TrainBuild) then
|
||||||
PopupTipPanel.ShowTip("功能未开启")
|
PopupTipPanel.ShowTip("特训建筑功能未开启")
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
if (ActTimeCtrlManager.SingleFuncState(FUNCTION_OPEN_TYPE.TrainBuild)) then
|
if (ActTimeCtrlManager.SingleFuncState(FUNCTION_OPEN_TYPE.TrainBuild)) then
|
||||||
|
|
@ -241,7 +245,7 @@ function SpecailTrainingInfoPopup:SetSingleData(index,_go,_data)
|
||||||
Util.GetGameObject( singleAttList[i][1],"Progress/Image"):GetComponent("RectTransform").sizeDelta = Vector3.New(360*size,25,0)
|
Util.GetGameObject( singleAttList[i][1],"Progress/Image"):GetComponent("RectTransform").sizeDelta = Vector3.New(360*size,25,0)
|
||||||
Util.GetGameObject( singleAttList[i][1],"Progress/Text"):GetComponent("Text").text = string.format("%s/%s",curExp,trainExp)
|
Util.GetGameObject( singleAttList[i][1],"Progress/Text"):GetComponent("Text").text = string.format("%s/%s",curExp,trainExp)
|
||||||
-- ForceRebuildLayout( singleAttList[i][1].transform)
|
-- ForceRebuildLayout( singleAttList[i][1].transform)
|
||||||
|
LayoutRebuilder.ForceRebuildLayoutImmediate(singleAttList[i][1].transform)
|
||||||
singleAttList[i][1]:SetActive(true)
|
singleAttList[i][1]:SetActive(true)
|
||||||
end
|
end
|
||||||
local activeIsOpen=false
|
local activeIsOpen=false
|
||||||
|
|
@ -296,21 +300,28 @@ function SpecailTrainingInfoPopup:SetSingleData(index,_go,_data)
|
||||||
end
|
end
|
||||||
if tData.Level<=curLevel then
|
if tData.Level<=curLevel then
|
||||||
|
|
||||||
|
|
||||||
if #selectSkillUnlockItems1==0 or #selectSkillUnlockItems2==0 then
|
if #selectSkillUnlockItems1==0 or #selectSkillUnlockItems2==0 then
|
||||||
PopupTipPanel.ShowTip(Language[10054])
|
PopupTipPanel.ShowTip(Language[10054])
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
local item={}
|
local item={}
|
||||||
local pokemenons={}
|
local pokemenons={}
|
||||||
|
local godWeapon={}
|
||||||
|
--local noHeroList={}
|
||||||
if selectSkillUnlockItems1[1].type==3 then
|
if selectSkillUnlockItems1[1].type==3 then
|
||||||
for i=1,#selectSkillUnlockItems1 do
|
for i=1,#selectSkillUnlockItems1 do
|
||||||
local t=selectSkillUnlockItems1[i]
|
local t=selectSkillUnlockItems1[i]
|
||||||
local pockemen={}
|
local pockemen={}
|
||||||
pokemenons[i]=selectSkillUnlockItems1[i].dynamicId
|
pokemenons[i]=selectSkillUnlockItems1[i].dynamicId
|
||||||
end
|
end
|
||||||
|
--noHeroList=pokemenons
|
||||||
|
elseif selectSkillUnlockItems1[1].type==4 then
|
||||||
|
for i=1,#selectSkillUnlockItems1 do
|
||||||
|
local t=selectSkillUnlockItems1[i]
|
||||||
|
local pockemen={}
|
||||||
|
godWeapon[i]=selectSkillUnlockItems1[i].dynamicId
|
||||||
|
end
|
||||||
|
--noHeroList=godWeapon
|
||||||
else
|
else
|
||||||
item.id=selectSkillUnlockItems1[1].itemData.id
|
item.id=selectSkillUnlockItems1[1].itemData.id
|
||||||
item.itemNum=1
|
item.itemNum=1
|
||||||
|
|
@ -332,7 +343,8 @@ function SpecailTrainingInfoPopup:SetSingleData(index,_go,_data)
|
||||||
|
|
||||||
local magicSoldierIds={}
|
local magicSoldierIds={}
|
||||||
magicSoldierIds[1]=""
|
magicSoldierIds[1]=""
|
||||||
NetManager.TrainingUnlockSkillRequest( self._curHerodata.dynamicId,tData.Id,pokemenons,nil,TrainingUnlockSkillHeroItem,item,function (msg)
|
--LogError("111111111111111111111111111111111111111111111111111111111111111111111111111 noHeroList=="..#noHeroList.." TrainingUnlockSkillHeroItem=="..#TrainingUnlockSkillHeroItem)
|
||||||
|
NetManager.TrainingUnlockSkillRequest( self._curHerodata.dynamicId,tData.Id,pokemenons,godWeapon,TrainingUnlockSkillHeroItem,item,function (msg)
|
||||||
UIManager.OpenPanel(UIName.RewardItemPopup, msg.drop, 1)
|
UIManager.OpenPanel(UIName.RewardItemPopup, msg.drop, 1)
|
||||||
if #TrainingUnlockSkillHeroItem>0 then
|
if #TrainingUnlockSkillHeroItem>0 then
|
||||||
local t={}
|
local t={}
|
||||||
|
|
@ -341,9 +353,14 @@ function SpecailTrainingInfoPopup:SetSingleData(index,_go,_data)
|
||||||
end
|
end
|
||||||
HeroManager.DeleteHeroDatas(t)
|
HeroManager.DeleteHeroDatas(t)
|
||||||
end
|
end
|
||||||
|
selectSkillUnlockItems1={}
|
||||||
|
selectSkillUnlockItems2={}
|
||||||
if pokemenons and #pokemenons>0 then
|
if pokemenons and #pokemenons>0 then
|
||||||
PokemonManager.RemovePokemonData(pokemenons)
|
PokemonManager.RemovePokemonData(pokemenons)
|
||||||
|
end
|
||||||
|
if godWeapon and #godWeapon>0 then
|
||||||
|
--PokemonManager.RemovePokemonData(pokemenons)
|
||||||
|
GodWeaponManager.RemoveWeaponData(godWeapon)
|
||||||
end
|
end
|
||||||
if self.OpenType==1 then
|
if self.OpenType==1 then
|
||||||
if CheckListIsContainValue1(self._curHerodata.HeroTraining.unlockIds,tData.Id) then
|
if CheckListIsContainValue1(self._curHerodata.HeroTraining.unlockIds,tData.Id) then
|
||||||
|
|
@ -369,8 +386,12 @@ function SpecailTrainingInfoPopup:SetSingleData(index,_go,_data)
|
||||||
self.ScrollView:SetData(self.showList, function(index, go)
|
self.ScrollView:SetData(self.showList, function(index, go)
|
||||||
self:SetSingleData(index,go,self.showList[index])
|
self:SetSingleData(index,go,self.showList[index])
|
||||||
end)
|
end)
|
||||||
ForceRebuildLayout(_go.transform)
|
--ForceRebuildLayout(_go.transform)
|
||||||
ForceRebuildLayout(self.GameObject.transform)
|
UnityEngine.UI.LayoutRebuilder.ForceRebuildLayoutImmediate(_go.transform)
|
||||||
|
UnityEngine.UI.LayoutRebuilder.ForceRebuildLayoutImmediate(_go.transform)
|
||||||
|
--ForceRebuildLayout(self.GameObject.transform)
|
||||||
|
UnityEngine.UI.LayoutRebuilder.ForceRebuildLayoutImmediate(self.GameObject.transform)
|
||||||
|
UnityEngine.UI.LayoutRebuilder.ForceRebuildLayoutImmediate(self.GameObject.transform)
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
@ -406,6 +427,8 @@ function SpecailTrainingInfoPopup:SetSingleData(index,_go,_data)
|
||||||
tmpData[i].type=1---Item 栏位
|
tmpData[i].type=1---Item 栏位
|
||||||
if tData.NeedItem1[i][1]== 21 then
|
if tData.NeedItem1[i][1]== 21 then
|
||||||
tmpData[i].type=3
|
tmpData[i].type=3
|
||||||
|
elseif tData.NeedItem1[i][1]== 53 then
|
||||||
|
tmpData[i].type=4
|
||||||
end
|
end
|
||||||
if tData.NeedItem1[i][1]== 56 then
|
if tData.NeedItem1[i][1]== 56 then
|
||||||
tmpData[i].Name= ItemBaseTypeName[tData.NeedItem1[i][2]]
|
tmpData[i].Name= ItemBaseTypeName[tData.NeedItem1[i][2]]
|
||||||
|
|
@ -436,14 +459,13 @@ function SpecailTrainingInfoPopup:SetSingleData(index,_go,_data)
|
||||||
local itemIcon= Util.GetGameObject(singleSkillList[i],"hero/icon"):GetComponent("Image")
|
local itemIcon= Util.GetGameObject(singleSkillList[i],"hero/icon"):GetComponent("Image")
|
||||||
if curData.type==1 then
|
if curData.type==1 then
|
||||||
Util.GetGameObject(singleSkillList[i],"Name"):GetComponent("Text").text=GetQuantityStrByquality(curData.data[3])..curData.Name
|
Util.GetGameObject(singleSkillList[i],"Name"):GetComponent("Text").text=GetQuantityStrByquality(curData.data[3])..curData.Name
|
||||||
itemIcon.sprite=self.spLoader:LoadSprite("r_characterbg_blue")
|
itemIcon.sprite=self.spLoader:LoadSprite("UI_hz_beibao_duigoudi")
|
||||||
|
|
||||||
elseif curData.type==2 then
|
elseif curData.type==2 then
|
||||||
Util.GetGameObject(singleSkillList[i],"Name"):GetComponent("Text").text=NumToChinese[curData.heroGroupData[1]].."星"..curData.Name
|
Util.GetGameObject(singleSkillList[i],"Name"):GetComponent("Text").text=NumToChinese[curData.heroGroupData[1]].."星"..curData.Name
|
||||||
itemIcon.sprite=self.spLoader:LoadSprite("r_hero_jinjie-touxiang2")
|
itemIcon.sprite=self.spLoader:LoadSprite("UI_hz_zhonghe05_70")
|
||||||
else
|
else
|
||||||
Util.GetGameObject(singleSkillList[i],"Name"):GetComponent("Text").text=GetQuantityStrByquality(curData.data[3])..curData.Name
|
Util.GetGameObject(singleSkillList[i],"Name"):GetComponent("Text").text=GetQuantityStrByquality(curData.data[3])..curData.Name
|
||||||
itemIcon.sprite=self.spLoader:LoadSprite("r_characterbg_blue")
|
itemIcon.sprite=self.spLoader:LoadSprite("UI_hz_beibao_duigoudi")
|
||||||
end
|
end
|
||||||
local needNum= Util.GetGameObject(singleSkillList[i],"hero/lvbg/CountText"):GetComponent("Text")
|
local needNum= Util.GetGameObject(singleSkillList[i],"hero/lvbg/CountText"):GetComponent("Text")
|
||||||
local neednum=1
|
local neednum=1
|
||||||
|
|
@ -480,7 +502,7 @@ function SpecailTrainingInfoPopup:SetSingleData(index,_go,_data)
|
||||||
selectSkillUnlockItems1[i]=selectItems[i]
|
selectSkillUnlockItems1[i]=selectItems[i]
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
itemIcon.sprite=self.spLoader:LoadSprite("r_characterbg_blue")
|
itemIcon.sprite=self.spLoader:LoadSprite("UI_hz_beibao_duigoudi")
|
||||||
add:SetActive(true)
|
add:SetActive(true)
|
||||||
needNum.text="0".."/"..neednum
|
needNum.text="0".."/"..neednum
|
||||||
end
|
end
|
||||||
|
|
@ -490,10 +512,11 @@ function SpecailTrainingInfoPopup:SetSingleData(index,_go,_data)
|
||||||
|
|
||||||
if selectHeroOrItems[1].type==1 then
|
if selectHeroOrItems[1].type==1 then
|
||||||
itemIcon.sprite=self.spLoader:LoadSprite(selectHeroOrItems[1].icon)
|
itemIcon.sprite=self.spLoader:LoadSprite(selectHeroOrItems[1].icon)
|
||||||
|
needNum.text=#selectHeroOrItems.."/"..neednum
|
||||||
else
|
else
|
||||||
local itemConfig = ConfigManager.TryGetConfigData(ConfigName.ItemConfig,selectHeroOrItems[1].id)
|
local itemConfig = ConfigManager.TryGetConfigData(ConfigName.ItemConfig,selectHeroOrItems[1].id)
|
||||||
if not itemConfig then return end
|
if not itemConfig then return end
|
||||||
|
|
||||||
-- icon.sprite = self.spLoader:LoadSprite(GetResourcePath(itemConfig.ResourceID))
|
-- icon.sprite = self.spLoader:LoadSprite(GetResourcePath(itemConfig.ResourceID))
|
||||||
itemIcon.sprite=self.spLoader:LoadSprite(GetResourcePath(itemConfig.ResourceID))
|
itemIcon.sprite=self.spLoader:LoadSprite(GetResourcePath(itemConfig.ResourceID))
|
||||||
needNum.text=#selectHeroOrItems.."/"..neednum
|
needNum.text=#selectHeroOrItems.."/"..neednum
|
||||||
|
|
@ -530,6 +553,23 @@ function SpecailTrainingInfoPopup:SetSingleData(index,_go,_data)
|
||||||
add:SetActive(true)
|
add:SetActive(true)
|
||||||
needNum.text="0".."/"..neednum
|
needNum.text="0".."/"..neednum
|
||||||
end
|
end
|
||||||
|
elseif curData.type==4 then
|
||||||
|
selectSkillUnlockItems1={}
|
||||||
|
if #selectItems>0 then
|
||||||
|
LogError("selectItems======================"..#selectItems.." selectItems[1].type==="..selectItems[1].type.."selectItems[1].id=="..selectItems[1].id)
|
||||||
|
local itemConfig = ConfigManager.TryGetConfigData(ConfigName.ItemConfig,selectItems[1].id)
|
||||||
|
if not itemConfig then return end
|
||||||
|
itemIcon.sprite=self.spLoader:LoadSprite(GetResourcePath(itemConfig.ResourceID))
|
||||||
|
needNum.text=#selectItems.."/"..neednum
|
||||||
|
for i=1 ,#selectItems do
|
||||||
|
selectSkillUnlockItems1[i]=selectItems[i]
|
||||||
|
end
|
||||||
|
add:SetActive(false)
|
||||||
|
else
|
||||||
|
itemIcon.sprite=self.spLoader:LoadSprite("UI_hz_zhonghe05_70")
|
||||||
|
add:SetActive(true)
|
||||||
|
needNum.text="0".."/"..neednum
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
@ -543,8 +583,8 @@ function SpecailTrainingInfoPopup:SetSingleData(index,_go,_data)
|
||||||
SkillContent:SetActive(false)
|
SkillContent:SetActive(false)
|
||||||
end
|
end
|
||||||
|
|
||||||
ForceRebuildLayout(_go.transform)
|
--ForceRebuildLayout(_go.transform)
|
||||||
ForceRebuildLayout(self.GameObject.transform)
|
LayoutRebuilder.ForceRebuildLayoutImmediate(_go.transform)
|
||||||
_go:SetActive(true)
|
_go:SetActive(true)
|
||||||
end
|
end
|
||||||
function SpecailTrainingInfoPopup:SetSingleData2(index,_go,_data)
|
function SpecailTrainingInfoPopup:SetSingleData2(index,_go,_data)
|
||||||
|
|
|
||||||
|
|
@ -141,7 +141,29 @@ function TrainingItemListPanel:OnOpen(_curData,_func,NeedNum,selectItems1,select
|
||||||
|
|
||||||
-- heroOrItemDataList[i]=itemDatas[i]
|
-- heroOrItemDataList[i]=itemDatas[i]
|
||||||
end
|
end
|
||||||
|
elseif _curData.type == 4 then
|
||||||
|
local pokemonList = GodWeaponManager.GetNoUpZhenWeapons()
|
||||||
|
local index=0
|
||||||
|
for i=1,#pokemonList do
|
||||||
|
local v={}
|
||||||
|
v.dynamicId=pokemonList[i].dynamicId
|
||||||
|
v.pokemonData=pokemonList[i]
|
||||||
|
v.type=4
|
||||||
|
v.index = i--用于祭品选择界面 查看是否选中
|
||||||
|
v.star=pokemonList[i].star
|
||||||
|
v.lv=pokemonList[i].lv
|
||||||
|
local config=pokemonList[i].config
|
||||||
|
v.ischip=0
|
||||||
|
v.icon= GetResourcePath(config.Icon)
|
||||||
|
--LogError("v.id========================================="..v.id)
|
||||||
|
v.id=pokemonList[i].id
|
||||||
|
v.quality=config.Quality
|
||||||
|
v.name=config.Name
|
||||||
|
v.returnCoin=config.CoinReturn
|
||||||
|
v.frame=GetHeroQuantityImageByquality(config.Quality)
|
||||||
|
v.num=1
|
||||||
|
table.insert(heroOrItemDataList,v)
|
||||||
|
end
|
||||||
else
|
else
|
||||||
local titemDatas={}
|
local titemDatas={}
|
||||||
if _curData.NeedHeroOther ~=0 then
|
if _curData.NeedHeroOther ~=0 then
|
||||||
|
|
@ -344,13 +366,7 @@ function this.OnShowSingleCardData(go,heroData)--isSelect 1选择 2 没选择
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
-- local meshs1=starGrid:GetComponentsInChildren(typeof(UnityEngine.ParticleSystem))
|
|
||||||
-- for key, value in pairs(meshs1:ToTable()) do
|
|
||||||
-- local mat=value:GetComponent(typeof(UnityEngine.Renderer))
|
|
||||||
-- if mat.material.shader.name=="UI Particles/Additive" then
|
|
||||||
-- mat.material.shader=poolManager:LoadAsset("UI-Particle-Add_1",poolManager.AssetType.Other)
|
|
||||||
-- end
|
|
||||||
-- end
|
|
||||||
Util.SetParticleSortLayer(starGrid,this.sortingOrder + 1)
|
Util.SetParticleSortLayer(starGrid,this.sortingOrder + 1)
|
||||||
Util.AddOnceClick(cardBtn, function()
|
Util.AddOnceClick(cardBtn, function()
|
||||||
local isSelect = false
|
local isSelect = false
|
||||||
|
|
@ -385,7 +401,7 @@ function this.OnShowSingleCardData(go,heroData)--isSelect 1选择 2 没选择
|
||||||
end, 0.5)
|
end, 0.5)
|
||||||
end
|
end
|
||||||
|
|
||||||
elseif curData.type==3 then
|
elseif curData.type==3 or curData.type==4 then
|
||||||
local choosed = Util.GetGameObject(go.transform, "choosed")
|
local choosed = Util.GetGameObject(go.transform, "choosed")
|
||||||
choosed:SetActive(false)
|
choosed:SetActive(false)
|
||||||
-- if curSelectHeroList[heroData.dynamicId] then
|
-- if curSelectHeroList[heroData.dynamicId] then
|
||||||
|
|
@ -429,36 +445,10 @@ function this.OnShowSingleCardData(go,heroData)--isSelect 1选择 2 没选择
|
||||||
starSize = Vector2.New(1,-13)
|
starSize = Vector2.New(1,-13)
|
||||||
end
|
end
|
||||||
SetHeroStars(this.spLoader, starGrid, star,1,starSize,-15)
|
SetHeroStars(this.spLoader, starGrid, star,1,starSize,-15)
|
||||||
LogError("hero star=="..star)
|
|
||||||
-- local effect=SetHeroFlyEffect(go,this.spLoader,heroData.star,this.sortingOrder+1,1)
|
|
||||||
-- if effect then
|
|
||||||
-- local particles=effect:GetComponentsInChildren(typeof(UnityEngine.ParticleSystem))
|
|
||||||
-- for key, value in pairs(particles:ToTable()) do
|
|
||||||
-- local mat=value:GetComponent(typeof(UnityEngine.Renderer))
|
|
||||||
-- if mat.material.shader.name=="YXZ/Effect/Mix Masking(Without Moving)_alphablend" then
|
|
||||||
-- mat.material.shader=poolManager:LoadAsset("YXZ_MixMaskingWithoutMoving_alphablend_1",poolManager.AssetType.Other)
|
|
||||||
-- end
|
|
||||||
-- end
|
|
||||||
-- end
|
|
||||||
Util.SetParticleSortLayer(starGrid,this.sortingOrder + 1)
|
Util.SetParticleSortLayer(starGrid,this.sortingOrder + 1)
|
||||||
GongMingMask:SetActive(false)--最后检测是否共鸣
|
GongMingMask:SetActive(false)--最后检测是否共鸣
|
||||||
if heroData.lockState == 1 or (heroData.isFormation ~= "" and heroData.isFormation ~= Language[10410]) then
|
|
||||||
else
|
|
||||||
if HarmonyManager.IsChangeColor(heroData.dynamicId) then
|
|
||||||
Util.GetGameObject(go.transform, "lv/Text"):GetComponent("Text").text = "<color=#0f0>"..heroData.lv.."</color>"
|
|
||||||
GongMingMask:SetActive(true)
|
|
||||||
elseif HarmonyManager:IsEnvoy(heroData.dynamicId) and HarmonyManager.GetSingleAdditionsData(HarmonyAddType.AddLv) then
|
|
||||||
if HarmonyManager.GetSingleAdditionsData(HarmonyAddType.AddLv).heroTid == 0 then
|
|
||||||
-- body
|
|
||||||
Util.GetGameObject(go.transform, "lv/Text"):GetComponent("Text").text = "<color=#ffbe22>"..heroData.lv.."</color>"
|
|
||||||
GongMingMask:SetActive(true)
|
|
||||||
end
|
|
||||||
|
|
||||||
end
|
|
||||||
end
|
|
||||||
Util.AddOnceClick(GongMingMask, function()
|
|
||||||
PopupTipPanel.ShowTip(Language[12184])
|
|
||||||
end)
|
|
||||||
Util.AddOnceClick(cardBtn, function()
|
Util.AddOnceClick(cardBtn, function()
|
||||||
local isSelect = false
|
local isSelect = false
|
||||||
local selectIndex = 0
|
local selectIndex = 0
|
||||||
|
|
@ -498,7 +488,7 @@ function this.OnShowSingleCardData(go,heroData)--isSelect 1选择 2 没选择
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
Util.AddLongPressClick(cardBtn, function()
|
Util.AddLongPressClick(cardBtn, function()
|
||||||
UIManager.OpenPanel(UIName.RoleInfoPopup,heroData)
|
--UIManager.OpenPanel(UIName.RoleInfoPopup,heroData)
|
||||||
end, 0.5)
|
end, 0.5)
|
||||||
else
|
else
|
||||||
for i = 1, #currentSelectItems do
|
for i = 1, #currentSelectItems do
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue