复活优化
This commit is contained in:
parent
ca0762659b
commit
2e6541445e
@ -380,7 +380,7 @@ function BattleControllerDungeonRune:tryShowRebirth(callback)
|
||||
if callback then
|
||||
callback()
|
||||
end
|
||||
end, true)
|
||||
end, true, self.dungeonRuneRemainRoundCount <= 0)
|
||||
return true
|
||||
end
|
||||
end
|
||||
|
||||
@ -25,8 +25,8 @@ function DungeonRuneManager:showTaskUI(id)
|
||||
UIManager:showUI("app/ui/dungeon_rune/dungeon_rune_task_ui", params)
|
||||
end
|
||||
|
||||
function DungeonRuneManager:showRebirthUI(adCallback, closeCallback, isHpOver)
|
||||
UIManager:showUI("app/ui/dungeon_rune/dungeon_rune_rebirth_ui",{adCallback = adCallback, refuseCallback = closeCallback, isHpOver = isHpOver})
|
||||
function DungeonRuneManager:showRebirthUI(adCallback, closeCallback, isHpOver, roundIsOver)
|
||||
UIManager:showUI("app/ui/dungeon_rune/dungeon_rune_rebirth_ui",{adCallback = adCallback, refuseCallback = closeCallback, isHpOver = isHpOver, roundIsOver = roundIsOver})
|
||||
end
|
||||
|
||||
function DungeonRuneManager:showRoundTipUI(round)
|
||||
|
||||
@ -13,6 +13,7 @@ function DungeonRuneRebirthUI:ctor(params)
|
||||
self.adCallback = params.adCallback
|
||||
self.refuseCallback = params.refuseCallback
|
||||
self.isHpOver = params.isHpOver
|
||||
self.roundIsOver = params.roundIsOver
|
||||
end
|
||||
|
||||
function DungeonRuneRebirthUI:onLoadRootComplete()
|
||||
@ -26,10 +27,13 @@ function DungeonRuneRebirthUI:_display()
|
||||
local desc1
|
||||
local desc2
|
||||
if self.isHpOver then
|
||||
desc1 = I18N:getGlobalText(I18N.GlobalConst.DUNGEON_RUNE_TIP_3)
|
||||
desc2 = I18N:getGlobalText(I18N.GlobalConst.DUNGEON_RUNE_TIP_4)
|
||||
else
|
||||
desc1 = I18N:getGlobalText(I18N.GlobalConst.DUNGEON_RUNE_TIP_6)
|
||||
desc2 = I18N:getGlobalText(I18N.GlobalConst.DUNGEON_RUNE_TIP_4)
|
||||
if self.roundIsOver then
|
||||
desc1 = I18N:getGlobalText(I18N.GlobalConst.DUNGEON_RUNE_TIP_3)
|
||||
end
|
||||
else
|
||||
desc1 = I18N:getGlobalText(I18N.GlobalConst.DUNGEON_RUNE_TIP_3)
|
||||
desc2 = I18N:getGlobalText(I18N.GlobalConst.DUNGEON_RUNE_TIP_5)
|
||||
end
|
||||
uiMap["dungeon_rune_rebirth_ui.title_bg_img.content_tx"]:setText(desc1)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user