替换图片
parent
cd957c7e84
commit
56d75b172a
File diff suppressed because it is too large
Load Diff
|
@ -8,7 +8,7 @@ local teamHero = {}
|
||||||
local roleDatas={}
|
local roleDatas={}
|
||||||
this.isFirstOpen=true
|
this.isFirstOpen=true
|
||||||
local tabs = {}
|
local tabs = {}
|
||||||
local tabsImg = {"z_icon_01_zh", "r_hero_huo 1_zh", "r_hero_feng 1_zh", "r_hero_shui 1_zh", "r_hero_dadi 1_zh","z_icon_qingjinbao"}
|
local tabsImg = {"z_icon_01_zh","r_hero_huo 1_zh", "r_hero_feng 1_zh", "r_hero_shui 1_zh", "r_hero_dadi 1_zh","z_icon_qingjinbao"}
|
||||||
local soulPrintData={}
|
local soulPrintData={}
|
||||||
local orginLayer = 0
|
local orginLayer = 0
|
||||||
local orginLayer2 = 0
|
local orginLayer2 = 0
|
||||||
|
@ -57,12 +57,12 @@ function RoleListPanel:InitComponent()
|
||||||
end
|
end
|
||||||
this.btnPrant = Util.GetGameObject(self.gameObject, "Tabs")
|
this.btnPrant = Util.GetGameObject(self.gameObject, "Tabs")
|
||||||
for i = 0, 6 do
|
for i = 0, 6 do
|
||||||
tabs[i] = Util.GetGameObject(self.transform, "Tabs/grid/box/Btn" .. i)
|
tabs[i] = Util.GetGameObject(self.transform, "Tabs/grid/box/Btn" .. i)
|
||||||
local name=Util.GetGameObject(tabs[i], "Text"):GetComponent("Text")
|
local nameTxt=Util.GetGameObject(self.transform, "Tabs/grid/box/Btn" .. i.."/Text"):GetComponent("Text")
|
||||||
name.text=PropertyType[i]
|
nameTxt.text=PropertyType[i]
|
||||||
-- if tabsImg[i + 1] then
|
if tabsImg[i+1] then
|
||||||
-- Util.GetGameObject(tabs[i], "Image"):GetComponent("Image").sprite = this.spLoader:LoadSprite(tabsImg[i + 1])
|
Util.GetGameObject(tabs[i], "Image"):GetComponent("Image").sprite = self.spLoader:LoadSprite(tabsImg[i+1])
|
||||||
-- end
|
end
|
||||||
end
|
end
|
||||||
this.ShaiXuanBtn = Util.GetGameObject(self.gameObject, "ShaiXuanBtn")
|
this.ShaiXuanBtn = Util.GetGameObject(self.gameObject, "ShaiXuanBtn")
|
||||||
this.ShaiXuanBtnLv = Util.GetGameObject(self.gameObject, "ShaiXuanBtn/Lv")
|
this.ShaiXuanBtnLv = Util.GetGameObject(self.gameObject, "ShaiXuanBtn/Lv")
|
||||||
|
@ -342,7 +342,8 @@ end
|
||||||
function this:SetSelectBtn()
|
function this:SetSelectBtn()
|
||||||
this.selectBtn.transform:SetParent(tabs[proId].transform)
|
this.selectBtn.transform:SetParent(tabs[proId].transform)
|
||||||
this.selectBtn:GetComponent("RectTransform").localPosition = Vector3.zero
|
this.selectBtn:GetComponent("RectTransform").localPosition = Vector3.zero
|
||||||
Util.GetGameObject( this.selectBtn.transform, "Text"):GetComponent("Text").text=Util.GetGameObject( tabs[proId].transform, "Text"):GetComponent("Text").text
|
this.selectBtn.transform:SetAsFirstSibling()
|
||||||
|
-- Util.GetGameObject( this.selectBtn.transform, "Text"):GetComponent("Text").text=Util.GetGameObject( t abs[proId].transform, "Text"):GetComponent("Text").text
|
||||||
end
|
end
|
||||||
|
|
||||||
function this:SortHeroDatas(_heroDatas)
|
function this:SortHeroDatas(_heroDatas)
|
||||||
|
|
Loading…
Reference in New Issue