This commit is contained in:
puxuan 2025-10-31 21:25:35 +08:00
parent de202e83a9
commit 2999ef9f0d
4 changed files with 29 additions and 29 deletions

View File

@ -69,27 +69,27 @@ function ArenaBuyTicketUI:onRefresh()
local maxAdBuy = GFunc.getConstIntValue("arena_notes_ad_times") local maxAdBuy = GFunc.getConstIntValue("arena_notes_ad_times")
if gemBuyCount < maxGemBuy then if gemBuyCount < maxGemBuy then
self.buyBtn1:setTouchEnable(true) self.buyBtn1:setTouchEnable(true)
self.checkImg1:setVisible(false) self.checkImg1:setActive(false)
self.iconImg1:setVisible(true) self.iconImg1:setActive(true)
self.numTx1:setVisible(true) self.numTx1:setActive(true)
else else
self.buyBtn1:setTouchEnable(false) self.buyBtn1:setTouchEnable(false)
self.checkImg1:setVisible(true) self.checkImg1:setActive(true)
self.iconImg1:setVisible(false) self.iconImg1:setActive(false)
self.numTx1:setVisible(false) self.numTx1:setActive(false)
end end
GFunc.setAdsSprite(self.iconImg2, false) GFunc.setAdsSprite(self.iconImg2, false)
if adBuyCount < maxAdBuy then if adBuyCount < maxAdBuy then
self.buyBtn2:setTouchEnable(true) self.buyBtn2:setTouchEnable(true)
self.checkImg2:setVisible(false) self.checkImg2:setActive(false)
self.iconImg2:setVisible(true) self.iconImg2:setActive(true)
self.numTx2:setVisible(true) self.numTx2:setActive(true)
else else
self.buyBtn2:setTouchEnable(false) self.buyBtn2:setTouchEnable(false)
self.checkImg2:setVisible(true) self.checkImg2:setActive(true)
self.iconImg2:setVisible(false) self.iconImg2:setActive(false)
self.numTx2:setVisible(false) self.numTx2:setActive(false)
end end
self.descTx1:setText(I18N:getGlobalText(I18N.GlobalConst.TODAY_REMAIN_TIMES, maxGemBuy - gemBuyCount)) self.descTx1:setText(I18N:getGlobalText(I18N.GlobalConst.TODAY_REMAIN_TIMES, maxGemBuy - gemBuyCount))

View File

@ -320,13 +320,13 @@ function BattleResultUI:refreshArenaBoxNode()
if self.isWin then if self.isWin then
-- 胜利宝箱 -- 胜利宝箱
self.arenaBoxNode:setSprite(GConst.ATLAS_PATH.ARENA, "arena_bg_6") self.arenaBoxNode:setSprite(GConst.ATLAS_PATH.ARENA, "arena_banner_1")
self.arenaBoxImgIcon:setSprite(GConst.ATLAS_PATH.UI_SHOP, "shop_chest_5") -- self.arenaBoxImgIcon:setSprite(GConst.ATLAS_PATH.UI_SHOP, "shop_chest_5")
self.arenaBoxTxTitle:setText(I18N:getGlobalText(I18N.GlobalConst.ARENA_DESC_33)) self.arenaBoxTxTitle:setText(I18N:getGlobalText(I18N.GlobalConst.ARENA_DESC_33))
else else
-- 鼓励宝箱 -- 鼓励宝箱
self.arenaBoxNode:setSprite(GConst.ATLAS_PATH.ARENA, "arena_bg_5") self.arenaBoxNode:setSprite(GConst.ATLAS_PATH.ARENA, "arena_banner_2")
self.arenaBoxImgIcon:setSprite(GConst.ATLAS_PATH.UI_SHOP, "shop_chest_4") -- self.arenaBoxImgIcon:setSprite(GConst.ATLAS_PATH.UI_SHOP, "shop_chest_4")
self.arenaBoxTxTitle:setText(I18N:getGlobalText(I18N.GlobalConst.ARENA_DESC_34)) self.arenaBoxTxTitle:setText(I18N:getGlobalText(I18N.GlobalConst.ARENA_DESC_34))
end end
ModuleManager.ArenaManager:markAdBox(self.isWin) ModuleManager.ArenaManager:markAdBox(self.isWin)

View File

@ -68,27 +68,27 @@ function BuyVitUI:onRefresh()
local maxAdBuy = GFunc.getConstIntValue("stamina_ad_times") local maxAdBuy = GFunc.getConstIntValue("stamina_ad_times")
if gemBuyCount < maxGemBuy then if gemBuyCount < maxGemBuy then
self.buyBtn1:setTouchEnable(true) self.buyBtn1:setTouchEnable(true)
self.checkImg1:setVisible(false) self.checkImg1:setActive(false)
self.iconImg1:setVisible(true) self.iconImg1:setActive(true)
self.numTx1:setVisible(true) self.numTx1:setActive(true)
else else
self.buyBtn1:setTouchEnable(false) self.buyBtn1:setTouchEnable(false)
self.checkImg1:setVisible(true) self.checkImg1:setActive(true)
self.iconImg1:setVisible(false) self.iconImg1:setActive(false)
self.numTx1:setVisible(false) self.numTx1:setActive(false)
end end
GFunc.setAdsSprite(self.iconImg2, false) GFunc.setAdsSprite(self.iconImg2, false)
if adBuyCount < maxAdBuy then if adBuyCount < maxAdBuy then
self.buyBtn2:setTouchEnable(true) self.buyBtn2:setTouchEnable(true)
self.checkImg2:setVisible(false) self.checkImg2:setActive(false)
self.iconImg2:setVisible(true) self.iconImg2:setActive(true)
self.numTx2:setVisible(true) self.numTx2:setActive(true)
else else
self.buyBtn2:setTouchEnable(false) self.buyBtn2:setTouchEnable(false)
self.checkImg2:setVisible(true) self.checkImg2:setActive(true)
self.iconImg2:setVisible(false) self.iconImg2:setActive(false)
self.numTx2:setVisible(false) self.numTx2:setActive(false)
end end
self.descTx1:setText(I18N:getGlobalText(I18N.GlobalConst.TODAY_REMAIN_TIMES, maxGemBuy - gemBuyCount)) self.descTx1:setText(I18N:getGlobalText(I18N.GlobalConst.TODAY_REMAIN_TIMES, maxGemBuy - gemBuyCount))

View File

@ -41,7 +41,7 @@ function ModuleUnlockUI:onLoadRootComplete()
self.moduleIcon = self.uiMap["module_unlock_ui.icon"] self.moduleIcon = self.uiMap["module_unlock_ui.icon"]
self.titleTx = self.uiMap["module_unlock_ui.bg.spine_title.title_tx"] self.titleTx = self.uiMap["module_unlock_ui.bg.spine_title.title_tx"]
self.spineTitle = self.uiMap["module_unlock_ui.bg.spine_title"] self.spineTitle = self.uiMap["module_unlock_ui.bg.spine_title"]
self.spineCircle = self.uiMap["module_unlock_ui.icon.spine_circle"] self.spineCircle = self.uiMap["module_unlock_ui.spine_circle"]
self.spineStar = self.uiMap["module_unlock_ui.spine_star"] self.spineStar = self.uiMap["module_unlock_ui.spine_star"]
self.uiMap["module_unlock_ui.bg.continue"]:setText(I18N:getGlobalText(I18N.GlobalConst.CLICK_TO_CONTINUE)) self.uiMap["module_unlock_ui.bg.continue"]:setText(I18N:getGlobalText(I18N.GlobalConst.CLICK_TO_CONTINUE))
self.titleTx:setText(I18N:getGlobalText(I18N.GlobalConst.FUNC_UNLOCK)) self.titleTx:setText(I18N:getGlobalText(I18N.GlobalConst.FUNC_UNLOCK))