From bc42d8e4a814b43eb5e4aa9fa16e042c54de511f Mon Sep 17 00:00:00 2001 From: xiekaidong Date: Wed, 23 Aug 2023 17:46:31 +0800 Subject: [PATCH] =?UTF-8?q?=E7=95=8C=E9=9D=A2=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/global/global_const.lua | 1 + lua/app/ui/activity/hero_fund/hero_fund_ui.lua | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lua/app/global/global_const.lua b/lua/app/global/global_const.lua index 412c30d2..15f472b4 100644 --- a/lua/app/global/global_const.lua +++ b/lua/app/global/global_const.lua @@ -221,6 +221,7 @@ GConst.ATLAS_PATH = { UI_DUGEON_ARMOR = "assets/arts/atlas/ui/dungeon_armor.asset", ACT_SUMMER = "assets/arts/atlas/ui/act_summer.asset", TASK = "assets/arts/atlas/ui/task.asset", + ACT_HEROFUND = "assets/arts/atlas/ui/act_herofund.asset", } GConst.TOUCH_EVENT = { diff --git a/lua/app/ui/activity/hero_fund/hero_fund_ui.lua b/lua/app/ui/activity/hero_fund/hero_fund_ui.lua index a372e892..77ea462a 100644 --- a/lua/app/ui/activity/hero_fund/hero_fund_ui.lua +++ b/lua/app/ui/activity/hero_fund/hero_fund_ui.lua @@ -1,7 +1,7 @@ local HeroFundUI = class("HeroFundUI", BaseUI) local FUND_CELL = "app/ui/activity/hero_fund/cell/fund_cell" -local BTN_ICON = {"common_btn_green_3", "common_btn_dark_4"} +local BTN_ICON = {"common_btn_green_3", "act_herofund_board_2"} function HeroFundUI:isFullScreen() return false @@ -84,7 +84,7 @@ function HeroFundUI:refreshBtns() proBuy:setText(DataManager.HeroFundData:getProPrice()) if DataManager.HeroFundData:getProBought() then - probtn:setSprite(GConst.ATLAS_PATH.COMMON, BTN_ICON[2]) + probtn:setSprite(GConst.ATLAS_PATH.ACT_HEROFUND, BTN_ICON[2]) probtn:setTouchEnable(false) proBtntx:setVisible(true) proBuy:setVisible(false) @@ -105,7 +105,7 @@ function HeroFundUI:refreshBtns() utralBuy:setText(DataManager.HeroFundData:getProPrice()) if DataManager.HeroFundData:getUtralBought() then - utralbtn:setSprite(GConst.ATLAS_PATH.COMMON, BTN_ICON[2]) + utralbtn:setSprite(GConst.ATLAS_PATH.ACT_HEROFUND, BTN_ICON[2]) utralbtn:setTouchEnable(false) utralBtntx:setVisible(true) utralBuy:setVisible(false)