成就可以领的时候的处理
This commit is contained in:
parent
bd805dfa9a
commit
fd8151dfa6
@ -581,6 +581,7 @@ function MainCityUI:initBounty()
|
|||||||
self.bountyBanner:addClickListener(function()
|
self.bountyBanner:addClickListener(function()
|
||||||
ModuleManager.BountyManager:showBountyMainUI()
|
ModuleManager.BountyManager:showBountyMainUI()
|
||||||
end)
|
end)
|
||||||
|
self.bountyRewardSpine = self.uiMap["main_ui.top_node.bounty_node.banner.spine"]
|
||||||
self.bountyBannerInfo = self.uiMap["main_ui.top_node.bounty_node.banner.info"]
|
self.bountyBannerInfo = self.uiMap["main_ui.top_node.bounty_node.banner.info"]
|
||||||
self.bountyBannerDescTx = self.uiMap["main_ui.top_node.bounty_node.banner.desc"]
|
self.bountyBannerDescTx = self.uiMap["main_ui.top_node.bounty_node.banner.desc"]
|
||||||
self.bountyBannerSlider = self.uiMap["main_ui.top_node.bounty_node.banner.info.progress_bg.slider"]
|
self.bountyBannerSlider = self.uiMap["main_ui.top_node.bounty_node.banner.info.progress_bg.slider"]
|
||||||
@ -613,11 +614,14 @@ function MainCityUI:refreshBounty()
|
|||||||
end
|
end
|
||||||
self.bountyNode:setVisible(true)
|
self.bountyNode:setVisible(true)
|
||||||
if DataManager.BountyData:getIfCanClaimReward() then
|
if DataManager.BountyData:getIfCanClaimReward() then
|
||||||
local bannerName = DataManager.BountyData:getRewardBannerName()
|
self.bountyRewardSpine:setVisible(true)
|
||||||
self.bountyBanner:setSprite(GConst.ATLAS_PATH.BOUNTY, bannerName)
|
self.bountyRewardSpine:playAnim("idle", true)
|
||||||
|
self.bountyRewardSpine:getSkeletonGraphic().enabled = true
|
||||||
self.bountyBannerInfo:setVisible(false)
|
self.bountyBannerInfo:setVisible(false)
|
||||||
self.bountyBannerDescTx:setText(I18N:getGlobalText(I18N.GlobalConst.COLLET_REWARDS))
|
self.bountyBannerDescTx:setText(I18N:getGlobalText(I18N.GlobalConst.COLLET_REWARDS))
|
||||||
else
|
else
|
||||||
|
self.bountyRewardSpine:setVisible(false)
|
||||||
|
self.bountyRewardSpine:getSkeletonGraphic().enabled = false
|
||||||
local bannerName = DataManager.BountyData:getBannerName()
|
local bannerName = DataManager.BountyData:getBannerName()
|
||||||
self.bountyBanner:setSprite(GConst.ATLAS_PATH.BOUNTY, bannerName)
|
self.bountyBanner:setSprite(GConst.ATLAS_PATH.BOUNTY, bannerName)
|
||||||
self.bountyBannerInfo:setVisible(true)
|
self.bountyBannerInfo:setVisible(true)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user