parent
7d034bd884
commit
0ed14423fc
|
|
@ -26,6 +26,7 @@ function RecruitEquipPanelNew:InitComponent()
|
||||||
self.root = Util.GetGameObject(self.panel, "root")
|
self.root = Util.GetGameObject(self.panel, "root")
|
||||||
|
|
||||||
self.rewardBox = Util.GetGameObject(self.panel, "btngroup/rewardBox")
|
self.rewardBox = Util.GetGameObject(self.panel, "btngroup/rewardBox")
|
||||||
|
self.rewardBox.gameObject:SetActive(false)
|
||||||
self.boxIcon = Util.GetGameObject(self.rewardBox, "boxIcon")
|
self.boxIcon = Util.GetGameObject(self.rewardBox, "boxIcon")
|
||||||
self.slider = Util.GetGameObject(self.rewardBox, "Bg/Slider"):GetComponent("Image")
|
self.slider = Util.GetGameObject(self.rewardBox, "Bg/Slider"):GetComponent("Image")
|
||||||
self.sliderText = Util.GetGameObject(self.rewardBox, "progress/Text"):GetComponent("Text")
|
self.sliderText = Util.GetGameObject(self.rewardBox, "progress/Text"):GetComponent("Text")
|
||||||
|
|
@ -53,6 +54,8 @@ function RecruitEquipPanelNew:InitComponent()
|
||||||
self.wishPre = Util.GetGameObject(self.wish, "upHeroPre")
|
self.wishPre = Util.GetGameObject(self.wish, "upHeroPre")
|
||||||
|
|
||||||
self.lsth = Util.GetGameObject(self.gameObject, "btngroup/zqbg")
|
self.lsth = Util.GetGameObject(self.gameObject, "btngroup/zqbg")
|
||||||
|
--self.lsthIcon = Util.GetGameObject(self.gameObject, "btngroup/zqbg/Image"):GetComponent("Image")
|
||||||
|
self.lsthText = Util.GetGameObject(self.gameObject, "btngroup/zqbg/Text"):GetComponent("Text")
|
||||||
self.lsth.gameObject:SetActive(ActivityGiftManager.IsActivityTypeOpen(20015) ~= nil)
|
self.lsth.gameObject:SetActive(ActivityGiftManager.IsActivityTypeOpen(20015) ~= nil)
|
||||||
self.zqbgRed = Util.GetGameObject(self.gameObject, "btngroup/zqbg/red")
|
self.zqbgRed = Util.GetGameObject(self.gameObject, "btngroup/zqbg/red")
|
||||||
BindRedPointObject(RedPointType.WishEquipStore, self.zqbgRed)
|
BindRedPointObject(RedPointType.WishEquipStore, self.zqbgRed)
|
||||||
|
|
@ -171,6 +174,7 @@ function RecruitEquipPanelNew:OnShow(sortingOrder)
|
||||||
self.sortingOrder = sortingOrder
|
self.sortingOrder = sortingOrder
|
||||||
self:OnSortingOrderChange(sortingOrder)
|
self:OnSortingOrderChange(sortingOrder)
|
||||||
self.gameObject:SetActive(true)
|
self.gameObject:SetActive(true)
|
||||||
|
self.lsthText.text = self.config.Sesc
|
||||||
RecruitManager.curWishType = self.config.ShopData[1][1]
|
RecruitManager.curWishType = self.config.ShopData[1][1]
|
||||||
self.singleConfig = ConfigManager.GetConfigDataByDoubleKey(ConfigName.LotterySetting, "LotteryType",
|
self.singleConfig = ConfigManager.GetConfigDataByDoubleKey(ConfigName.LotterySetting, "LotteryType",
|
||||||
self.config.ShopData[1][1], "PerCount", 1)
|
self.config.ShopData[1][1], "PerCount", 1)
|
||||||
|
|
@ -185,10 +189,10 @@ function RecruitEquipPanelNew:OnShow(sortingOrder)
|
||||||
end
|
end
|
||||||
if self.config.ShopData[2][1] == 1 then
|
if self.config.ShopData[2][1] == 1 then
|
||||||
local heroConfig = ConfigManager.GetConfigData(ConfigName.HeroConfig, self.config.ShopData[2][2])
|
local heroConfig = ConfigManager.GetConfigData(ConfigName.HeroConfig, self.config.ShopData[2][2])
|
||||||
local name = GetResourcePath(heroConfig.Live)
|
local name = GetResourcePath(heroConfig.Painting)
|
||||||
self.liveNode = poolManager:LoadLive(name, self.root.transform, Vector3.one * heroConfig.Scale * 18,
|
self.liveNode = poolManager:LoadLive(name, self.root.transform, Vector3.one * heroConfig.Scale,
|
||||||
--Vector3.New(heroConfig.Position[1] - 80, heroConfig.Position[2], 0))
|
Vector3.New(heroConfig.Position[1], heroConfig.Position[2], 0))
|
||||||
Vector3.New(0, 0, 0))
|
--Vector3.New(0, 0, 0))
|
||||||
self.liveNode.name = name
|
self.liveNode.name = name
|
||||||
SetHEeroLiveToward(self.liveNode, heroConfig.Toward)
|
SetHEeroLiveToward(self.liveNode, heroConfig.Toward)
|
||||||
local SkeletonGraphic = self.liveNode:GetComponent("SkeletonGraphic")
|
local SkeletonGraphic = self.liveNode:GetComponent("SkeletonGraphic")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue