安卓返回键
This commit is contained in:
parent
d67a0a8b69
commit
9e75ea15c3
@ -3,6 +3,10 @@ local ActBossRushFundUI = class("ActBossRushFundUI", BaseUI)
|
||||
local FUND_CELL = "app/ui/activity/act_boss_rush/cell/fund_cell"
|
||||
local BTN_ICON = {"common_btn_green_3", "act_bossrush_board_1"}
|
||||
|
||||
function ActBossRushFundUI:onPressBackspace()
|
||||
self:closeUI()
|
||||
end
|
||||
|
||||
function ActBossRushFundUI:isFullScreen()
|
||||
return false
|
||||
end
|
||||
|
||||
@ -1,5 +1,9 @@
|
||||
local ActBossRushPopUI = class("ActBossRushPopUI", BaseUI)
|
||||
|
||||
function ActBossRushPopUI:onPressBackspace()
|
||||
self:closeUI()
|
||||
end
|
||||
|
||||
function ActBossRushPopUI:isFullScreen()
|
||||
return false
|
||||
end
|
||||
|
||||
@ -18,6 +18,10 @@ local PAGE_TX = {
|
||||
[PAGE_TYPE.REWARD] = I18N.GlobalConst.ACT_BOSS_RUSH_DESC_22,
|
||||
}
|
||||
|
||||
function ActBossRushRankUI:onPressBackspace()
|
||||
self:closeUI()
|
||||
end
|
||||
|
||||
function ActBossRushRankUI:isFullScreen()
|
||||
return false
|
||||
end
|
||||
@ -226,7 +230,10 @@ function ActBossRushRankUI:refreshMyRankInfo()
|
||||
local info = DataManager.ActBossRushData:getLastSelfInfo()
|
||||
local canGot = DataManager.ActBossRushData:canGetRankReward()
|
||||
|
||||
if self.curPage == PAGE_TYPE.TODAY or not canGot then
|
||||
if self.curPage == PAGE_TYPE.TODAY then
|
||||
info = DataManager.ActBossRushData:getCurRankSelfInfo()
|
||||
end
|
||||
if self.curPage == PAGE_TYPE.REWARD and not canGot then
|
||||
info = DataManager.ActBossRushData:getCurRankSelfInfo()
|
||||
end
|
||||
local rank = info and info.rank or 0
|
||||
@ -275,6 +282,11 @@ function ActBossRushRankUI:refreshMyRankInfo()
|
||||
for index, cell in ipairs(self.selfRewardCells) do
|
||||
cell:getBaseObject():setActive(false)
|
||||
end
|
||||
if self.curPage == PAGE_TYPE.LAST_DAY then
|
||||
descObj:setText(I18N:getGlobalText(I18N.GlobalConst.ACT_BOSS_RUSH_DESC_20))
|
||||
else
|
||||
descObj:setText(I18N:getGlobalText(I18N.GlobalConst.ACT_BOSS_RUSH_DESC_21))
|
||||
end
|
||||
else
|
||||
imgWave:setVisible(false)
|
||||
imgRound:setVisible(false)
|
||||
|
||||
@ -2,6 +2,10 @@ local ActBossRushShopUI = class("ActBossRushShopUI", BaseUI)
|
||||
|
||||
local SHOP_CELL = "app/ui/activity/act_boss_rush/cell/shop_cell"
|
||||
|
||||
function ActBossRushShopUI:onPressBackspace()
|
||||
self:closeUI()
|
||||
end
|
||||
|
||||
function ActBossRushShopUI:getPrefabPath()
|
||||
return "assets/prefabs/ui/activity/act_boss_rush/act_boss_rush_shop_ui.prefab"
|
||||
end
|
||||
|
||||
@ -6,6 +6,10 @@ function ActBossRushUI:getPrefabPath()
|
||||
return "assets/prefabs/ui/activity/act_boss_rush/act_boss_rush_ui.prefab"
|
||||
end
|
||||
|
||||
function ActBossRushUI:onPressBackspace()
|
||||
self:closeUI()
|
||||
end
|
||||
|
||||
function ActBossRushUI:getCurrencyParams()
|
||||
if self.currencyParams == nil then
|
||||
self.currencyParams = {
|
||||
|
||||
@ -3,6 +3,10 @@ local HeroFundUI = class("HeroFundUI", BaseUI)
|
||||
local FUND_CELL = "app/ui/activity/hero_fund/cell/fund_cell"
|
||||
local BTN_ICON = {"common_btn_green_3", "act_herofund_board_2"}
|
||||
|
||||
function HeroFundUI:onPressBackspace()
|
||||
self:closeUI()
|
||||
end
|
||||
|
||||
function HeroFundUI:isFullScreen()
|
||||
return false
|
||||
end
|
||||
|
||||
@ -1,5 +1,9 @@
|
||||
local CommonExchangeUI = class("CommonExchangeUI", BaseUI)
|
||||
|
||||
function CommonExchangeUI:onPressBackspace()
|
||||
self:closeUI()
|
||||
end
|
||||
|
||||
function CommonExchangeUI:isFullScreen()
|
||||
return false
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user