法宝心愿修改提交

TCX_dev_realOne_master
PC-202302260912\Administrator 2023-11-29 15:57:14 +08:00
parent c48d23a265
commit 46206cf0b3
4 changed files with 20 additions and 6 deletions

View File

@ -162,14 +162,14 @@ function this:SetUpHero()
end
function this:SetHeroList(isTop,isAni)
local heroList = RecruitManager.GetCurHeroTalismanaList(0)
local heroList =RecruitManager.allTailsMans --RecruitManager.GetCurHeroTalismanaList(0)
self.scrollView:SetData(heroList, function (index, item)
this:ShowSingleHero(item, heroList[index],index)
end,not isTop,not isAni)
end
function this:ShowSingleHero(go,data,index)
local equipId=heroConfig[data].EquipTalismana[2]
local equipId=data
local heroData = itemConfig[equipId]
self.itemList[self.curSelect][index] = go
Util.GetGameObject(go, "frame"):GetComponent("Image").sprite = self.spLoader:LoadSprite(GetBgByHeroNatural(heroData.Quantity))
@ -177,7 +177,7 @@ function this:ShowSingleHero(go,data,index)
--Util.GetGameObject(go, "proIcon"):GetComponent("Image").sprite = self.spLoader:LoadSprite(GetProStrImageByProNum(heroData.PropertyName))
Util.GetGameObject(go, "proIcon"):SetActive(false)
Util.GetGameObject(go, "name"):GetComponent("Text").text = heroData.Name
Util.GetGameObject(go, "heroName"):GetComponent("Text").text=heroConfig[data].ReadingName
Util.GetGameObject(go, "heroName"):GetComponent("Text").text= itemConfig[data].Name
local starGrid = Util.GetGameObject(go, "star")
-- SetHeroStars(self.spLoader,starGrid, heroData.Star)
self.maskList[self.curSelect][index] = Util.GetGameObject(go, "choosed")
@ -185,6 +185,7 @@ function this:ShowSingleHero(go,data,index)
Util.SetGray(self.itemList[self.curSelect][index],false)
local value = RecruitManager.CheckCurTalismanaState(equipId)
LogError("value==========================================="..value)
if value == 0 then--上方存在相同阵营
Util.SetGray(self.itemList[self.curSelect][index],true)
Util.AddOnceClick(go,function ()

View File

@ -156,7 +156,14 @@ function WishEquipBuyOnePanel:OnOpen(...)
Util.ClearChild(Util.GetTransform(this.content, "itemContent1"))
this.itemDataList={}
this.itemDataList=BagManager.GetTableByBackDropData(this.drop)
local list=BagManager.GetTableByBackDropData(this.drop)
for k, v in pairs(list) do
if v.sId~=94 then
table.insert(this.itemDataList,v)
end
end
LogError("this.itemDataList==================="..#this.itemDataList)
this.view = SubUIManager.Open(SubUIConfig.ItemView,Util.GetTransform(this.content, "itemContent1"))
this.view:OnOpen(true,this.itemDataList[1],1.4,true,false,false,self.sortingOrder)

View File

@ -147,7 +147,13 @@ function WishEquipBuyTenPanel:OnOpen(...)
this.itemIcon3.sprite=this.spLoader:LoadSprite(artResourcesConfig[ItemConfig[itemId].ResourceID].Name)
local itemDataList={}
itemDataList=BagManager.GetTableByBackDropData(this.drop)
local list=BagManager.GetTableByBackDropData(this.drop)
for k, v in pairs(list) do
if v.sId~=94 then
table.insert(itemDataList,v)
end
end
LogError("itemDataList len==============="..#itemDataList)
this.openTenAgainButton:GetComponent("Button").enabled=false
this.btnBack:GetComponent("Button").enabled=false
callList:Clear()

View File

@ -61,7 +61,7 @@ function WishGemBuyTenPanel:BindEvent()
PopupTipPanel.ShowTip(GetLanguageStrById(ItemConfig[itemId].Name)..Language[10486])
return
end
NetManager.GemNewDrawRequest(this.recruitType,costId,function(msg)
NetManager.GemNewDrawRequest(this.recruitType,10,function(msg)
UIManager.OpenPanel(UIName.WishGemBuyTenPanel,msg.drop,this.recruitType,costId,activityId)
--CheckRedPointStatus(self.config.RpType)
end)