【图鉴优化】取消图鉴界面的全部分类
parent
8b60b15dd6
commit
f8e5364152
|
@ -102,7 +102,8 @@ function HandBookHeroAndEquipListPanel:InitComponent()
|
||||||
self.UpView = SubUIManager.Open(SubUIConfig.UpView, self.gameObject.transform)
|
self.UpView = SubUIManager.Open(SubUIConfig.UpView, self.gameObject.transform)
|
||||||
|
|
||||||
self.selectBtn = Util.GetGameObject(self.gameObject, "Tabs/selectBtn")
|
self.selectBtn = Util.GetGameObject(self.gameObject, "Tabs/selectBtn")
|
||||||
for i = 0, 6 do
|
Util.GetGameObject(self.transform, "Tabs/grid/Btn" .. 0):SetActive(false)
|
||||||
|
for i = 1, 6 do
|
||||||
tabs[i] = Util.GetGameObject(self.transform, "Tabs/grid/Btn" .. i)
|
tabs[i] = Util.GetGameObject(self.transform, "Tabs/grid/Btn" .. i)
|
||||||
end
|
end
|
||||||
self.Tabs = Util.GetGameObject(self.gameObject, "Tabs")
|
self.Tabs = Util.GetGameObject(self.gameObject, "Tabs")
|
||||||
|
@ -114,7 +115,7 @@ function HandBookHeroAndEquipListPanel:BindEvent()
|
||||||
Util.AddClick(self.btnBack, function()
|
Util.AddClick(self.btnBack, function()
|
||||||
self:ClosePanel()
|
self:ClosePanel()
|
||||||
end)
|
end)
|
||||||
for i = 0, 6 do
|
for i = 1, 6 do
|
||||||
Util.AddClick(tabs[i], function()
|
Util.AddClick(tabs[i], function()
|
||||||
if i == proId then
|
if i == proId then
|
||||||
proId=ProIdConst.All
|
proId=ProIdConst.All
|
||||||
|
@ -709,11 +710,8 @@ end
|
||||||
function HandBookHeroAndEquipListPanel:SetSelectBtn()
|
function HandBookHeroAndEquipListPanel:SetSelectBtn()
|
||||||
PlayerManager.headBookListTag = proId
|
PlayerManager.headBookListTag = proId
|
||||||
-- self.selectBtn:SetActive(proId ~= ProIdConst.All)
|
-- self.selectBtn:SetActive(proId ~= ProIdConst.All)
|
||||||
if proId ~= ProIdConst.All then
|
self.selectBtn.transform:SetParent(tabs[proId].transform)
|
||||||
self.selectBtn.transform.localPosition = tabs[proId].transform.localPosition
|
self.selectBtn.transform.localPosition = Vector3.zero
|
||||||
else
|
|
||||||
self.selectBtn.transform.localPosition = Vector3.New(-336, 0, 0)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
function HandBookHeroAndEquipListPanel:SortHeroNatural(heroList)
|
function HandBookHeroAndEquipListPanel:SortHeroNatural(heroList)
|
||||||
table.sort(heroList, function(a, b)
|
table.sort(heroList, function(a, b)
|
||||||
|
|
Loading…
Reference in New Issue