按钮位置不对提交

dev_chengFeng
jiaoyangna 2020-07-25 17:08:20 +08:00
parent a24c1e2016
commit 8bc87ca492
1 changed files with 4 additions and 7 deletions

View File

@ -197,14 +197,14 @@ end
--组合当前选项数据
function this:GetCurSortHeroListData()
local heros = {}
this:SetSelectBtn()
local heros = {}
if proId ~= ProIdConst.All then
heros = HeroManager.GetHeroDataByProperty(proId)
else
heros = tarHero
end
this:SetRoleList(heros)
this:SetSelectBtn()
end
--设置英雄列表数据
@ -270,11 +270,8 @@ function this.SingleHeroDataShow(_go,_heroData)
end)
end
function this:SetSelectBtn()
-- this.selectBtn:SetActive(proId ~= ProIdConst.All)
-- if proId ~= ProIdConst.All then
this.selectBtn.transform.localPosition = tabs[proId].transform.localPosition
--Util.GetGameObject(this.selectBtn.transform, "Text"):GetComponent("Text").text = HeroElementDef[proId]
-- end
this.selectBtn.transform:SetParent(tabs[proId].transform)
this.selectBtn:GetComponent("RectTransform").localPosition = Vector3.zero
end
function this:SortHeroDatas(_heroDatas)
--上阵最优先星级优先同星级等级优先同星级同等级按sortId排序。排序时降序排序。