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