界面处理
This commit is contained in:
parent
b2a829741b
commit
bc42d8e4a8
@ -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 = {
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user