宝物抽卡显示立绘修改

onepiece_demo_arena
wangzhenxing 2023-12-11 17:56:47 +08:00
parent 1e70d9c7f9
commit 09f72d7f65
1 changed files with 4 additions and 4 deletions

View File

@ -152,8 +152,8 @@ function RecruitEquipPanelNew:OnShow(sortingOrder)
end
if self.config.ShopData[2][1] == 1 then
local heroConfig = ConfigManager.GetConfigData(ConfigName.HeroConfig,self.config.ShopData[2][2])
local name = GetResourcePath(heroConfig.Live)
self.liveNode = poolManager:LoadLive(name, self.root.transform, Vector3.one *0.5, Vector3.New(heroConfig.Position[1], heroConfig.Position[2], 0))
local name = GetResourcePath(heroConfig.Painting)
self.liveNode = poolManager:LoadLive(name, self.root.transform, Vector3.one *0.32, Vector3.New(heroConfig.Position[1], heroConfig.Position[2], 0))
self.liveNode.name = name
SetHEeroLiveToward(self.liveNode,heroConfig.Toward)
local SkeletonGraphic = self.liveNode:GetComponent("SkeletonGraphic")
@ -167,7 +167,7 @@ function RecruitEquipPanelNew:UpdataPanel()
-- self.bg1.sprite = self.spLoader:LoadSprite(self.config.Icon[3])
self.bg2.sprite = self.spLoader:LoadSprite(self.config.Icon[4])
self.bg3.sprite = self.spLoader:LoadSprite(self.config.Icon[8])
self.title.sprite = self.spLoader:LoadSprite(self.config.Icon[5])
--self.title.sprite = self.spLoader:LoadSprite(self.config.Icon[5])
--宝箱活动数据
local actconfigs=ActivityGiftManager.GetActivityInfoByType(11901)
if actconfigs then
@ -185,7 +185,7 @@ function RecruitEquipPanelNew:UpdataPanel()
end
end
self.boxNameText.text="宝箱等级:"..wishLv
self.title:SetNativeSize()
--self.title:SetNativeSize()
for i = 1,2 do
self.btns[i].layoutDi.sprite = self.spLoader:LoadSprite(self.config.Icon[6])
end