TCX_LongZhu
parent
0833edefd9
commit
46e6267222
|
|
@ -3468,10 +3468,10 @@ CardPosImageName = {
|
|||
|
||||
PropertyType = {
|
||||
[0] = "全部",
|
||||
[1] = "灼烧",
|
||||
[2] = "暴伤",
|
||||
[3] = "永动",
|
||||
[4] = "控怒",
|
||||
[1] = "不屈意志",
|
||||
[2] = "绝对正义",
|
||||
[3] = "究极力量",
|
||||
[4] = "不灭先锋",
|
||||
[5] = "传奇",
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -52,13 +52,18 @@ function TailsManSouPanel:InitComponent()
|
|||
self.effectHong = Util.GetGameObject(self.gameObject,"bg/effect/UI_effect_RecruitPanel_particle_hong")
|
||||
|
||||
for i = 1, 5 do
|
||||
tabs[i] = Util.GetGameObject(self.transform, "bg/Tabs/grid/Btn" .. i)
|
||||
tabsRedpoints[i] = Util.GetGameObject(tabs[i], "redpoint")
|
||||
local name =Util.GetGameObject(tabs[i], "Text"):GetComponent("Text")
|
||||
name.text = PropertyType[i]
|
||||
if tabsImg[i] then
|
||||
Util.GetGameObject(tabs[i], "Image"):GetComponent("Image").sprite = self.spLoader:LoadSprite(tabsImg[i])
|
||||
if i == 5 then
|
||||
Util.GetGameObject(self.transform, "bg/Tabs/grid/Btn" .. i).gameObject:SetActive(false)
|
||||
else
|
||||
tabs[i] = Util.GetGameObject(self.transform, "bg/Tabs/grid/Btn" .. i)
|
||||
tabsRedpoints[i] = Util.GetGameObject(tabs[i], "redpoint")
|
||||
local name =Util.GetGameObject(tabs[i], "Text"):GetComponent("Text")
|
||||
name.text = PropertyType[i]
|
||||
if tabsImg[i] then
|
||||
Util.GetGameObject(tabs[i], "Image"):GetComponent("Image").sprite = self.spLoader:LoadSprite(tabsImg[i])
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
|
|
@ -68,8 +73,8 @@ function TailsManSouPanel:BindEvent()
|
|||
BindRedPointObject(RedPointType.tailsmanSoul_red,tabsRedpoints[2].gameObject)
|
||||
BindRedPointObject(RedPointType.tailsmanSoul_whiteGold,tabsRedpoints[3].gameObject)
|
||||
BindRedPointObject(RedPointType.tailsmanSoul_blue,tabsRedpoints[4].gameObject)
|
||||
BindRedPointObject(RedPointType.tailsmanSoul_whiteBlue,tabsRedpoints[5].gameObject)
|
||||
for i = 1,5 do
|
||||
--BindRedPointObject(RedPointType.tailsmanSoul_whiteBlue,tabsRedpoints[5].gameObject)
|
||||
for i = 1,4 do
|
||||
Util.AddClick(tabs[i], function()
|
||||
if i == proId then
|
||||
return
|
||||
|
|
@ -245,7 +250,7 @@ function TailsManSouPanel:OnShow()
|
|||
curData = TailsManSoulManager.GetTailsmanSoulDatasByPro(proId)
|
||||
self:RefreshData()
|
||||
addLv=0
|
||||
for i=1,5 do
|
||||
for i=1,4 do
|
||||
local curData = TailsManSoulManager.GetTailsmanSoulDatasByPro(i)
|
||||
for j=1,#curData do
|
||||
--LogError("curData.lv=========="..curData[j].lv)
|
||||
|
|
@ -377,7 +382,7 @@ function TailsManSouPanel:OnDestroy()
|
|||
ClearRedPointObject(RedPointType.tailsmanSoul_red,tabsRedpoints[2].gameObject)
|
||||
ClearRedPointObject(RedPointType.tailsmanSoul_whiteGold,tabsRedpoints[3].gameObject)
|
||||
ClearRedPointObject(RedPointType.tailsmanSoul_blue,tabsRedpoints[4].gameObject)
|
||||
ClearRedPointObject(RedPointType.tailsmanSoul_whiteBlue,tabsRedpoints[5].gameObject)
|
||||
--ClearRedPointObject(RedPointType.tailsmanSoul_whiteBlue,tabsRedpoints[5].gameObject)
|
||||
end
|
||||
|
||||
return TailsManSouPanel
|
||||
Loading…
Reference in New Issue