优化页面背包和图鉴
parent
d74663bdd7
commit
dfb8e416db
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -28,13 +28,13 @@ function BagPanel:InitComponent()
|
|||
for i = 1, 13 do
|
||||
tabs1[i] = Util.GetGameObject(self.transform, "Grid/box/Btn" .. i)
|
||||
tabs1RedPoint[i] = Util.GetGameObject(self.transform, "Grid/box/Btn" .. i .. "/redPoint")
|
||||
tabs1[i]:GetComponent("Image").sprite = this.spLoader:LoadSprite("X1_zhanling_pata_bt_04")
|
||||
tabs1[i]:GetComponent("Image").sprite = this.spLoader:LoadSprite("X1_tongyong_fenlan_weixuanzhong")
|
||||
end
|
||||
if not this.playerInfoView then
|
||||
this.playerInfoView = SubUIManager.Open(SubUIConfig.PlayerInfoView, this.transform)
|
||||
end
|
||||
this.selectBtn1 = Util.GetGameObject(self.gameObject, "selectBtn")
|
||||
this.selectBtn1:GetComponent("Image").sprite = this.spLoader:LoadSprite("X1_zhanling_pata_bt_03")
|
||||
this.selectBtn1:GetComponent("Image").sprite = this.spLoader:LoadSprite("x1_haoyou_biaoqian_xuanzhong")
|
||||
this.BtView = SubUIManager.Open(SubUIConfig.BtView, self.gameObject.transform)
|
||||
this.UpView = SubUIManager.Open(SubUIConfig.UpView, self.gameObject.transform)
|
||||
this.fenJieBtn = Util.GetGameObject(self.gameObject, "fenJieBtn")
|
||||
|
|
|
@ -24,6 +24,8 @@ local blueGridList={}
|
|||
|
||||
local proId=0--0 全部 1 火 2风 3 水 4 地 5 光 6 暗
|
||||
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 orginLayer = 0
|
||||
local orginLayer2 = 0
|
||||
|
||||
|
@ -48,6 +50,14 @@ function HandBookHeroAndEquipListPanel:InitComponent()
|
|||
-- mat.material.shader=poolManager:LoadAsset("UI-Particle-Add_1",poolManager.AssetType.Other)
|
||||
-- end
|
||||
-- end
|
||||
for i = 0, 6 do
|
||||
tabs[i] = Util.GetGameObject(self.transform, "Tabs/grid/box/Btn" .. i)
|
||||
local nameTxt = Util.GetGameObject(self.transform, "Tabs/grid/box/Btn" .. i .. "/Text"):GetComponent("Text")
|
||||
nameTxt.text = PropertyType[i]
|
||||
if tabsImg[i + 1] then
|
||||
tabs[i]:GetComponent("Image").sprite = self.spLoader:LoadSprite(tabsImg[i + 1])
|
||||
end
|
||||
end
|
||||
self.card:GetComponent("RectTransform").localScale = Vector3.New(1,1,1)
|
||||
Util.GetGameObject(self.card, "choosed").gameObject:SetActive(false)
|
||||
Util.GetGameObject(self.card, "redAndLock").gameObject:SetActive(false)
|
||||
|
|
Loading…
Reference in New Issue