2021-04-21 13:12:04 +08:00
|
|
|
|
----- 献祭 -----
|
2020-05-09 13:31:21 +08:00
|
|
|
|
local this = {}
|
|
|
|
|
local sortingOrder=0
|
2021-11-05 15:48:22 +08:00
|
|
|
|
local sort = 0
|
2020-05-09 13:31:21 +08:00
|
|
|
|
local tabSortType = 0
|
|
|
|
|
local tarHero
|
|
|
|
|
local selectHeroData={}--选择的英雄list did = data
|
2020-07-06 16:27:27 +08:00
|
|
|
|
local maxSelectNum = 30--最大选择数量
|
2020-05-09 13:31:21 +08:00
|
|
|
|
function this:InitComponent(gameObject)
|
2021-04-21 13:12:04 +08:00
|
|
|
|
this.spLoader = SpriteLoader.New()
|
2020-05-09 13:31:21 +08:00
|
|
|
|
--上部内容
|
|
|
|
|
this.helpBtn=Util.GetGameObject(gameObject,"Content/Resolve_Dismantle/HelpBtn")
|
|
|
|
|
this.helpPos=this.helpBtn:GetComponent("RectTransform").localPosition
|
|
|
|
|
--回溯按钮
|
|
|
|
|
this.confirmBtn=Util.GetGameObject(gameObject,"Content/Resolve_Dismantle/ConfirmBtn")
|
2023-09-28 17:05:40 +08:00
|
|
|
|
Util.GetGameObject(this.confirmBtn,"Image"):GetComponent("Image").sprite = this.spLoader:LoadSprite("UI_hz_ls_03")
|
2020-05-09 13:31:21 +08:00
|
|
|
|
this.shopBtn=Util.GetGameObject(gameObject,"Content/Resolve_Dismantle/shopBtn")
|
2023-09-28 17:05:40 +08:00
|
|
|
|
this.shopBtn:GetComponent("Image").sprite = this.spLoader:LoadSprite("UI_hz_shenjiang_32")
|
2020-05-09 13:31:21 +08:00
|
|
|
|
this.selectText = Util.GetGameObject(gameObject,"Content/Resolve_Dismantle/selectNumText"):GetComponent("Text")
|
|
|
|
|
this.selectBtn = Util.GetGameObject(gameObject,"Content/Resolve_Dismantle/btns/selectBtn")
|
|
|
|
|
this.noSelectBtn = Util.GetGameObject(gameObject,"Content/Resolve_Dismantle/btns/noSelectBtn")
|
|
|
|
|
this.cardPre = Util.GetGameObject(gameObject,"item")
|
|
|
|
|
this.scrollbar = Util.GetGameObject(gameObject,"Content/Resolve_Dismantle/Scrollbar"):GetComponent("Scrollbar")
|
2020-06-03 19:09:01 +08:00
|
|
|
|
this.Empty = Util.GetGameObject(gameObject,"Content/Resolve_Dismantle/Empty")
|
2020-05-09 13:31:21 +08:00
|
|
|
|
|
|
|
|
|
local v21 = Util.GetGameObject(gameObject, "Content/Resolve_Dismantle/ItemListRoot"):GetComponent("RectTransform").rect
|
|
|
|
|
this.ScrollView = SubUIManager.Open(SubUIConfig.ScrollCycleView, Util.GetGameObject(gameObject, "Content/Resolve_Dismantle/ItemListRoot").transform,
|
2023-09-28 17:05:40 +08:00
|
|
|
|
this.cardPre, this.scrollbar, Vector2.New(v21.width, v21.height), 1, 5, Vector2.New(23,15))
|
2020-05-09 13:31:21 +08:00
|
|
|
|
this.ScrollView.moveTween.MomentumAmount = 1
|
|
|
|
|
this.ScrollView.moveTween.Strength = 1
|
2020-07-16 10:49:01 +08:00
|
|
|
|
maxSelectNum = tonumber(ConfigManager.GetConfigData(ConfigName.SpecialConfig,54).Value)
|
2020-05-09 13:31:21 +08:00
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
function this:BindEvent()
|
|
|
|
|
Util.AddClick(this.helpBtn,function()
|
|
|
|
|
UIManager.OpenPanel(UIName.HelpPopup,HELP_TYPE.Resolve_Dismantle,this.helpPos.x,this.helpPos.y)
|
|
|
|
|
end)
|
|
|
|
|
Util.AddClick(this.confirmBtn,function()
|
|
|
|
|
if tonumber(LengthOfTable(selectHeroData))==0 then
|
2021-03-02 16:53:12 +08:00
|
|
|
|
PopupTipPanel.ShowTip(Language[11736])
|
2020-12-17 10:41:00 +08:00
|
|
|
|
|
2020-05-09 13:31:21 +08:00
|
|
|
|
else
|
2021-01-05 14:29:33 +08:00
|
|
|
|
|
2020-05-09 13:31:21 +08:00
|
|
|
|
UIManager.OpenPanel(UIName.GeneralPopup,GENERAL_POPUP_TYPE.ResolveDismantle,
|
|
|
|
|
HeroManager.GetHeroReturnItems(selectHeroData,GENERAL_POPUP_TYPE.ResolveDismantle),selectHeroData)
|
|
|
|
|
end
|
|
|
|
|
end)
|
|
|
|
|
Util.AddClick(this.selectBtn, function()
|
|
|
|
|
this.QuickSelectListData(1)
|
|
|
|
|
if LengthOfTable(selectHeroData) > 0 then
|
|
|
|
|
this.noSelectBtn.gameObject:SetActive(true)
|
|
|
|
|
end
|
|
|
|
|
end)
|
|
|
|
|
Util.AddClick(this.noSelectBtn, function()
|
|
|
|
|
this.QuickSelectListData(2)
|
|
|
|
|
this.noSelectBtn.gameObject:SetActive(false)
|
|
|
|
|
end)
|
|
|
|
|
Util.AddClick(this.shopBtn, function()
|
|
|
|
|
local isActive, errorTip = ShopManager.IsActive(SHOP_TYPE.SOUL_CONTRACT_SHOP)
|
|
|
|
|
if not isActive then
|
2021-03-02 16:53:12 +08:00
|
|
|
|
PopupTipPanel.ShowTip(errorTip or Language[10574])
|
2020-05-09 13:31:21 +08:00
|
|
|
|
return
|
|
|
|
|
end
|
|
|
|
|
UIManager.OpenPanel(UIName.MainShopPanel, SHOP_TYPE.SOUL_CONTRACT_SHOP)
|
|
|
|
|
end)
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
function this:AddListener()
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
function this:RemoveListener()
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
function this:OnShow(...)
|
2021-02-26 14:52:59 +08:00
|
|
|
|
local args={...}
|
2021-11-05 15:48:22 +08:00
|
|
|
|
sort = args[1]
|
2021-01-05 14:29:33 +08:00
|
|
|
|
sortingOrder = PlayerManager.now_index or 0
|
2021-11-05 15:48:22 +08:00
|
|
|
|
this.SortTypeClick(sort,sortingOrder,args[3],args[4])
|
2021-01-05 14:29:33 +08:00
|
|
|
|
|
2020-05-09 13:31:21 +08:00
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
--展示数据
|
2021-11-05 15:48:22 +08:00
|
|
|
|
function this.SortTypeClick(sortingOrder,_sortType,isTop,isAni)
|
|
|
|
|
sort = sortingOrder
|
2020-05-09 13:31:21 +08:00
|
|
|
|
tabSortType=_sortType
|
|
|
|
|
selectHeroData={}
|
2020-07-13 11:15:53 +08:00
|
|
|
|
tarHero=HeroManager.GetAllHeroDataMsinusUpWar(_sortType,2)
|
2023-09-28 17:05:40 +08:00
|
|
|
|
this.selectText.text = "0/"..maxSelectNum
|
2020-05-09 13:31:21 +08:00
|
|
|
|
this.noSelectBtn.gameObject:SetActive(false)
|
|
|
|
|
this.SortHeroDatas(tarHero)
|
2020-06-03 19:09:01 +08:00
|
|
|
|
this.Empty:SetActive(#tarHero <= 0)
|
2020-05-09 13:31:21 +08:00
|
|
|
|
this.ScrollView:SetData(tarHero, function (index, go)
|
|
|
|
|
this.SingleHeroDataShow(go, tarHero[index])
|
2021-02-26 14:52:59 +08:00
|
|
|
|
end,isTop,isAni)
|
2020-12-29 19:13:14 +08:00
|
|
|
|
-- this.ScrollView:ForeachItemGO(function(index, go)
|
|
|
|
|
-- Timer.New(function()
|
|
|
|
|
-- go.gameObject:SetActive(true)
|
|
|
|
|
-- PlayUIAnim(go.gameObject)
|
|
|
|
|
-- end, 0.001 * (index - 1)):Start()
|
|
|
|
|
-- end)
|
2020-05-09 13:31:21 +08:00
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
--英雄单个数据展示
|
|
|
|
|
function this.SingleHeroDataShow(go,_heroData)
|
|
|
|
|
local heroData = _heroData
|
|
|
|
|
local _go = go
|
2021-04-21 13:12:04 +08:00
|
|
|
|
Util.GetGameObject(_go.transform, "frame"):GetComponent("Image").sprite = this.spLoader:LoadSprite(GetHeroQuantityImageByquality(heroData.heroConfig.Quality,heroData.star))
|
2021-02-20 17:55:52 +08:00
|
|
|
|
Util.GetGameObject(_go.transform, "Text"):GetComponent("Text").text = SubString2(GetLanguageStrById(heroData.heroConfig.ReadingName),8)
|
2021-04-21 13:12:04 +08:00
|
|
|
|
Util.GetGameObject(_go.transform, "icon"):GetComponent("Image").sprite = this.spLoader:LoadSprite(heroData.icon)
|
|
|
|
|
Util.GetGameObject(_go.transform, "posIcon"):SetActive(false)--:GetComponent("Image").sprite = this.spLoader:LoadSprite(heroData.professionIcon)
|
2022-03-28 18:18:19 +08:00
|
|
|
|
Util.GetGameObject(_go.transform, "proIcon"):GetComponent("Image").sprite = this.spLoader:LoadSprite(GetProStrImageByProNum(heroData.changeProId))
|
2021-04-21 13:12:04 +08:00
|
|
|
|
--Util.GetGameObject(_go.transform, "heroStage"):GetComponent("Image").sprite = this.spLoader:LoadSprite(HeroStageSprite[heroData.heroConfig.HeroStage])
|
2020-05-09 13:31:21 +08:00
|
|
|
|
local starGrid = Util.GetGameObject(_go.transform, "star")
|
2021-10-26 16:00:31 +08:00
|
|
|
|
local star,starType = heroData.GetStar(1)
|
2021-10-27 12:50:15 +08:00
|
|
|
|
local starSize = Vector2.New(32.5,32.5)
|
|
|
|
|
local starScale = -15
|
|
|
|
|
if starType == 3 then
|
2021-11-04 09:27:56 +08:00
|
|
|
|
starSize = Vector2.New(1,-15.6)
|
|
|
|
|
starScale = -13
|
2021-11-03 10:13:44 +08:00
|
|
|
|
elseif starType == 2 then
|
|
|
|
|
starSize = Vector2.New(60,57)
|
2021-10-27 12:50:15 +08:00
|
|
|
|
end
|
|
|
|
|
SetHeroStars(this.spLoader, starGrid, star,starType,starSize,starScale)
|
2022-01-20 11:41:20 +08:00
|
|
|
|
SetHeroFlyEffect(Util.GetGameObject(_go.transform, "GameObject"),this.spLoader,heroData.star,sort,1,2,20)
|
2021-11-05 15:48:22 +08:00
|
|
|
|
Util.SetParticleSortLayer(starGrid, sort + 1)
|
2020-05-09 13:31:21 +08:00
|
|
|
|
local choosed =Util.GetGameObject(_go.transform, "choosed")
|
|
|
|
|
local formationMask =Util.GetGameObject(_go.transform, "formationMask")
|
2021-04-21 13:12:04 +08:00
|
|
|
|
Util.GetGameObject(_go.transform, "formationMask/formationImage/upImage"):GetComponent("Image").sprite = this.spLoader:LoadSprite("t_tongyong-yishangzheng_zh")
|
2020-08-10 11:30:27 +08:00
|
|
|
|
formationMask:SetActive(heroData.isFormation ~= "" and heroData.isFormations[1] ~= FormationTypeDef.EXPEDITION)
|
2020-12-17 10:41:00 +08:00
|
|
|
|
local lockMask =Util.GetGameObject(_go.transform, "lockMask")
|
2020-05-09 13:31:21 +08:00
|
|
|
|
lockMask:SetActive(heroData.lockState == 1)
|
|
|
|
|
choosed:SetActive(selectHeroData[heroData.dynamicId] ~= nil)
|
|
|
|
|
local cardclickBtn = Util.GetGameObject(_go.transform, "icon")
|
2023-09-28 17:05:40 +08:00
|
|
|
|
this.selectText.text = LengthOfTable(selectHeroData).."/"..maxSelectNum
|
2020-12-17 10:41:00 +08:00
|
|
|
|
local GongMingMask = Util.GetGameObject(_go.transform, "GongMingMask")
|
2020-12-18 16:37:56 +08:00
|
|
|
|
GongMingMask:SetActive(false)--最后检测是否共鸣
|
|
|
|
|
Util.GetGameObject(_go.transform, "lv/Text"):GetComponent("Text").text = "<color=#FFFFFF>"..heroData.lv.."</color>"
|
2020-12-17 10:41:00 +08:00
|
|
|
|
|
2020-12-18 16:37:56 +08:00
|
|
|
|
if heroData.lockState == 1 or (heroData.isFormation ~= "" and heroData.isFormations[1] ~= FormationTypeDef.EXPEDITION) then
|
2020-12-17 10:41:00 +08:00
|
|
|
|
else
|
2020-12-18 16:37:56 +08:00
|
|
|
|
if HarmonyManager.IsChangeColor(_heroData.dynamicId) then
|
|
|
|
|
Util.GetGameObject(_go.transform, "lv/Text"):GetComponent("Text").text = "<color=#0f0>"..heroData.lv.."</color>"
|
|
|
|
|
GongMingMask:SetActive(true)
|
2020-12-29 20:36:37 +08:00
|
|
|
|
|
2021-01-11 16:08:56 +08:00
|
|
|
|
elseif HarmonyManager:IsEnvoy(_heroData.dynamicId) and HarmonyManager:HongMengTowerUpLimit() ~= 0 then
|
2021-01-18 17:43:11 +08:00
|
|
|
|
if HarmonyManager.GetSingleAdditionsData(HarmonyAddType.AddLv).heroTid == 0 then
|
2020-12-29 20:36:37 +08:00
|
|
|
|
-- body
|
|
|
|
|
Util.GetGameObject(_go.transform, "lv/Text"):GetComponent("Text").text = "<color=#ffbe22>"..heroData.lv.."</color>"
|
|
|
|
|
GongMingMask:SetActive(true)
|
|
|
|
|
end
|
|
|
|
|
|
2020-12-18 16:37:56 +08:00
|
|
|
|
end
|
2020-12-17 10:41:00 +08:00
|
|
|
|
end
|
2020-12-18 16:37:56 +08:00
|
|
|
|
Util.AddOnceClick(GongMingMask, function()
|
2021-03-04 15:16:23 +08:00
|
|
|
|
PopupTipPanel.ShowTip(Language[12184])
|
2020-12-18 16:37:56 +08:00
|
|
|
|
end)
|
2020-05-09 13:31:21 +08:00
|
|
|
|
Util.AddOnceClick(cardclickBtn, function()
|
|
|
|
|
if selectHeroData[heroData.dynamicId] then
|
|
|
|
|
choosed:SetActive(false)
|
|
|
|
|
selectHeroData[heroData.dynamicId] = nil
|
2023-09-28 17:05:40 +08:00
|
|
|
|
this.selectText.text = LengthOfTable(selectHeroData).."/"..maxSelectNum
|
2020-05-09 13:31:21 +08:00
|
|
|
|
this.noSelectBtn.gameObject:SetActive(LengthOfTable(selectHeroData)>0)
|
|
|
|
|
return
|
|
|
|
|
end
|
2020-07-06 16:27:27 +08:00
|
|
|
|
if LengthOfTable(selectHeroData) >= maxSelectNum then
|
2021-03-02 16:53:12 +08:00
|
|
|
|
PopupTipPanel.ShowTip(string.format(Language[11737],maxSelectNum))
|
2020-07-06 16:27:27 +08:00
|
|
|
|
return
|
|
|
|
|
end
|
2021-10-26 16:00:31 +08:00
|
|
|
|
LogGreen("heroData:"..heroData.dynamicId)
|
2020-05-09 13:31:21 +08:00
|
|
|
|
selectHeroData[heroData.dynamicId]=heroData
|
|
|
|
|
choosed:SetActive(true)
|
2023-09-28 17:05:40 +08:00
|
|
|
|
this.selectText.text = LengthOfTable(selectHeroData).."/"..maxSelectNum
|
2020-05-09 13:31:21 +08:00
|
|
|
|
this.noSelectBtn.gameObject:SetActive(LengthOfTable(selectHeroData)>0)
|
|
|
|
|
end)
|
|
|
|
|
|
|
|
|
|
Util.AddOnceClick(formationMask, function()
|
|
|
|
|
if heroData.isFormation ~= "" then
|
|
|
|
|
-- 复位角色的状态
|
2021-03-02 16:53:12 +08:00
|
|
|
|
MsgPanel.ShowTwo(Language[11738]..heroData.isFormation..Language[11739], nil, function()
|
2020-05-09 13:31:21 +08:00
|
|
|
|
if heroData.isFormations[1] then
|
|
|
|
|
if heroData.isFormations[1] == FormationTypeDef.FORMATION_NORMAL then
|
|
|
|
|
UIManager.OpenPanel(UIName.FormationPanelV2, FORMATION_TYPE.SAVE_FORMATION)
|
|
|
|
|
elseif heroData.isFormations[1] == FormationTypeDef.FORMATION_ARENA_DEFEND then
|
|
|
|
|
JumpManager.GoJump(8001)
|
2020-08-27 09:40:25 +08:00
|
|
|
|
-- elseif heroData.isFormations[1] == FormationTypeDef.FORMATION_ENDLESS_MAP then
|
|
|
|
|
-- JumpManager.GoJump(57001)
|
2020-08-15 00:08:25 +08:00
|
|
|
|
elseif heroData.isFormations[1] == FormationTypeDef.ARENA_TOM_MATCH then
|
2020-08-25 17:50:52 +08:00
|
|
|
|
-- JumpManager.GoJump(57001)
|
|
|
|
|
UIManager.OpenPanel(UIName.ArenaTopMatchPanel)
|
2021-07-13 17:40:25 +08:00
|
|
|
|
elseif heroData.isFormations[1] == FormationTypeDef.JUMPSERVER_HIGHTLADDER then
|
|
|
|
|
UIManager.OpenPanel(UIName.FormationPanelV2, FORMATION_TYPE.JUMPSERVER_HIGHTLADDER)
|
2020-05-09 13:31:21 +08:00
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end)
|
|
|
|
|
return
|
|
|
|
|
end
|
|
|
|
|
end)
|
|
|
|
|
Util.AddOnceClick(lockMask, function()
|
|
|
|
|
if heroData.lockState == 1 then
|
2021-03-02 16:53:12 +08:00
|
|
|
|
MsgPanel.ShowTwo(Language[11740], nil, function()
|
2020-05-09 13:31:21 +08:00
|
|
|
|
NetManager.HeroLockEvent(heroData.dynamicId,0,function ()
|
2021-03-02 16:53:12 +08:00
|
|
|
|
PopupTipPanel.ShowTip(Language[11741])
|
2020-05-09 13:31:21 +08:00
|
|
|
|
HeroManager.UpdateSingleHeroLockState(heroData.dynamicId,0)
|
|
|
|
|
lockMask:SetActive(false)
|
|
|
|
|
end)
|
|
|
|
|
end)
|
|
|
|
|
return
|
|
|
|
|
end
|
|
|
|
|
end)
|
|
|
|
|
end
|
|
|
|
|
--英雄排序
|
|
|
|
|
function this.SortHeroDatas(_heroDatas)
|
|
|
|
|
--上阵最优先,星级优先,同星级等级优先,同星级同等级按sortId排序。排序时降序排序。
|
|
|
|
|
table.sort(_heroDatas, function(a, b)
|
|
|
|
|
if a ==nil or b == nil then
|
|
|
|
|
return
|
|
|
|
|
end
|
2020-08-10 11:30:27 +08:00
|
|
|
|
if (a.isFormation == "" or (a.isFormation ~= "" and a.isFormations[1] == FormationTypeDef.EXPEDITION)) and (b.isFormation == "" or (b.isFormation ~= "" and b.isFormations[1] == FormationTypeDef.EXPEDITION)) then
|
2020-05-09 13:31:21 +08:00
|
|
|
|
if a.lockState == b.lockState then
|
2020-12-18 16:37:56 +08:00
|
|
|
|
if a.isHarmonyGongMing == b.isHarmonyGongMing then
|
|
|
|
|
if a.heroConfig.Natural ==b.heroConfig.Natural then
|
2022-02-18 15:31:50 +08:00
|
|
|
|
if a.star == b.star then
|
|
|
|
|
local aGodLv = GodSoulManager.GetGodSoulLv(a.dynamicId)
|
|
|
|
|
local bGodLv = GodSoulManager.GetGodSoulLv(b.dynamicId)
|
|
|
|
|
if aGodLv == bGodLv then
|
2022-02-18 15:32:42 +08:00
|
|
|
|
if a.lv == b.lv then
|
|
|
|
|
return a.heroConfig.Id > b.heroConfig.Id
|
|
|
|
|
else
|
|
|
|
|
return a.lv < b.lv
|
|
|
|
|
end
|
2020-12-18 16:37:56 +08:00
|
|
|
|
else
|
2022-02-18 15:31:50 +08:00
|
|
|
|
return aGodLv < bGodLv
|
2020-12-18 16:37:56 +08:00
|
|
|
|
end
|
2020-05-09 13:31:21 +08:00
|
|
|
|
else
|
2022-02-18 15:31:50 +08:00
|
|
|
|
return a.star < b.star
|
|
|
|
|
end
|
2020-05-09 13:31:21 +08:00
|
|
|
|
else
|
2020-12-18 16:37:56 +08:00
|
|
|
|
return a.heroConfig.Natural < b.heroConfig.Natural
|
2020-05-09 13:31:21 +08:00
|
|
|
|
end
|
|
|
|
|
else
|
2020-12-18 16:37:56 +08:00
|
|
|
|
return a.isHarmonyGongMing < b.isHarmonyGongMing
|
2020-05-09 13:31:21 +08:00
|
|
|
|
end
|
|
|
|
|
else
|
|
|
|
|
return a.lockState < b.lockState
|
|
|
|
|
end
|
|
|
|
|
else
|
2020-08-10 11:30:27 +08:00
|
|
|
|
return (a.isFormation == "" or (a.isFormation ~= "" and a.isFormations[1] == FormationTypeDef.EXPEDITION)) and (not b.isFormation ~= "" and b.isFormations[1] ~= FormationTypeDef.EXPEDITION)
|
2020-05-09 13:31:21 +08:00
|
|
|
|
end
|
|
|
|
|
end)
|
|
|
|
|
end
|
|
|
|
|
--快速选择英雄 或者 装备
|
|
|
|
|
function this.QuickSelectListData(type)
|
|
|
|
|
if type == 1 then
|
|
|
|
|
selectHeroData={}
|
|
|
|
|
for k, v in pairs(tarHero) do
|
2023-10-31 14:38:02 +08:00
|
|
|
|
if LengthOfTable(selectHeroData)<maxSelectNum and (v.isFormation == "" or (v.isFormation ~= "" and v.isFormations[1] == FormationTypeDef.EXPEDITION)) and v.lockState == 0 and v.star < 16 then
|
2020-05-09 13:31:21 +08:00
|
|
|
|
selectHeroData[v.dynamicId]=v
|
|
|
|
|
else
|
|
|
|
|
break
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
this.ScrollView:SetData(tarHero, function (index, go)
|
|
|
|
|
this.SingleHeroDataShow(go, tarHero[index])
|
2021-02-26 14:52:59 +08:00
|
|
|
|
end,true,true)
|
2020-05-09 13:31:21 +08:00
|
|
|
|
else
|
|
|
|
|
selectHeroData={}
|
|
|
|
|
this.ScrollView:SetData(tarHero, function (index, go)
|
|
|
|
|
this.SingleHeroDataShow(go, tarHero[index])
|
2021-02-26 14:52:59 +08:00
|
|
|
|
end,true,true)
|
2020-05-09 13:31:21 +08:00
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
function this:OnClose()
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
function this:OnDestroy()
|
2021-04-21 13:12:04 +08:00
|
|
|
|
this.spLoader:Destroy()
|
2020-05-09 13:31:21 +08:00
|
|
|
|
end
|
|
|
|
|
|
2021-04-21 13:12:04 +08:00
|
|
|
|
return this
|
|
|
|
|
|