魂印修改提交
parent
a76616df31
commit
1bd0fe5562
|
@ -43,17 +43,15 @@ function SoulPrintHandBook:BindEvent()
|
||||||
for i = 1, 4 do
|
for i = 1, 4 do
|
||||||
Util.AddClick(tabs[i], function()
|
Util.AddClick(tabs[i], function()
|
||||||
if (curIndex == i) then
|
if (curIndex == i) then
|
||||||
this.selectBtn:SetActive(false)
|
-- this.selectBtn:SetActive(false)
|
||||||
else
|
-- curIndex = 0
|
||||||
this.selectBtn:SetActive(true)
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
curIndex = i
|
curIndex = i
|
||||||
this.selectBtn.transform.localPosition = tabs[i].transform.localPosition
|
|
||||||
if (not this.selectBtn.activeSelf) then
|
|
||||||
curIndex = 0--没有选定筛选按钮显示全部魂印
|
|
||||||
end
|
|
||||||
this.OnRefresh(curIndex)
|
this.OnRefresh(curIndex)
|
||||||
this.selectBtnText.text = Util.GetGameObject(tabs[i].transform, "Text"):GetComponent("Text").text
|
this:SetSelect()
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -88,9 +86,16 @@ end
|
||||||
|
|
||||||
function SoulPrintHandBook:OnShow()
|
function SoulPrintHandBook:OnShow()
|
||||||
this.GetAllData()
|
this.GetAllData()
|
||||||
curIndex=0
|
curIndex=1
|
||||||
this.OnRefresh(curIndex)
|
this.OnRefresh(curIndex)
|
||||||
this.SetBottomBarIsActive()
|
this.SetBottomBarIsActive()
|
||||||
|
this:SetSelect()
|
||||||
|
end
|
||||||
|
|
||||||
|
function SoulPrintHandBook:SetSelect()
|
||||||
|
this.selectBtn:SetActive(true)
|
||||||
|
this.selectBtn.transform.localPosition = tabs[curIndex].transform.localPosition
|
||||||
|
this.selectBtnText.text = Util.GetGameObject(tabs[curIndex].transform, "Text"):GetComponent("Text").text
|
||||||
end
|
end
|
||||||
function this.GetAllData()
|
function this.GetAllData()
|
||||||
allSoulPrintData = {}
|
allSoulPrintData = {}
|
||||||
|
|
Loading…
Reference in New Issue