回合数提示
This commit is contained in:
parent
1ef1f34c7a
commit
1687c7fcea
@ -181,6 +181,9 @@ function BattleControllerDungeonRune:enterRoundBegin()
|
|||||||
end
|
end
|
||||||
|
|
||||||
self.dungeonRuneRemainRoundCount = self.dungeonRuneRemainRoundCount - 1
|
self.dungeonRuneRemainRoundCount = self.dungeonRuneRemainRoundCount - 1
|
||||||
|
if self.isBossChapter and self.dungeonRuneRemainRoundCount <= 4 then
|
||||||
|
ModuleManager.DungeonRuneManager:showRoundTipUI(self.dungeonRuneRemainRoundCount + 1)
|
||||||
|
end
|
||||||
if self.battleUI then
|
if self.battleUI then
|
||||||
local desc = self.dungeonRuneRemainRoundCount + 1
|
local desc = self.dungeonRuneRemainRoundCount + 1
|
||||||
if not self.isBossChapter then
|
if not self.isBossChapter then
|
||||||
|
|||||||
@ -29,6 +29,10 @@ function DungeonRuneManager:showRebirthUI(adCallback, closeCallback, isHpOver)
|
|||||||
UIManager:showUI("app/ui/dungeon_rune/dungeon_rune_rebirth_ui",{adCallback = adCallback, refuseCallback = closeCallback, isHpOver = isHpOver})
|
UIManager:showUI("app/ui/dungeon_rune/dungeon_rune_rebirth_ui",{adCallback = adCallback, refuseCallback = closeCallback, isHpOver = isHpOver})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function DungeonRuneManager:showRoundTipUI(round)
|
||||||
|
UIManager:showUI("app/ui/dungeon_rune/dungeon_rune_round_tip_ui",{round = round, aniType = UIManager.ANI_TYPE.NON})
|
||||||
|
end
|
||||||
|
|
||||||
function DungeonRuneManager:reqFight(id)
|
function DungeonRuneManager:reqFight(id)
|
||||||
local runeData = DataManager.DungeonData:getDungeonDataByType(ModuleManager.MODULE_KEY.RUNES_OPEN)
|
local runeData = DataManager.DungeonData:getDungeonDataByType(ModuleManager.MODULE_KEY.RUNES_OPEN)
|
||||||
if not runeData:canFight(id) then
|
if not runeData:canFight(id) then
|
||||||
|
|||||||
43
lua/app/ui/dungeon_rune/dungeon_rune_round_tip_ui.lua
Normal file
43
lua/app/ui/dungeon_rune/dungeon_rune_round_tip_ui.lua
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
local DungeonRuneRoundTipUI = class("DungeonRuneRoundTipUI", BaseUI)
|
||||||
|
|
||||||
|
function DungeonRuneRoundTipUI:ctor(params)
|
||||||
|
self.round = params.round
|
||||||
|
end
|
||||||
|
|
||||||
|
function DungeonRuneRoundTipUI:isFullScreen()
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
|
||||||
|
function DungeonRuneRoundTipUI:getPrefabPath()
|
||||||
|
return "assets/prefabs/ui/dungeon_rune/dungeon_rune_round_tip_ui.prefab"
|
||||||
|
end
|
||||||
|
|
||||||
|
function DungeonRuneRoundTipUI:onClose()
|
||||||
|
if self.aniSequence then
|
||||||
|
self.aniSequence:Kill()
|
||||||
|
self.aniSequence = nil
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
function DungeonRuneRoundTipUI:onLoadRootComplete()
|
||||||
|
self:_display()
|
||||||
|
end
|
||||||
|
|
||||||
|
function DungeonRuneRoundTipUI:_display()
|
||||||
|
local uiMap = self.root:genAllChildren()
|
||||||
|
uiMap["dungeon_rune_round_tip_ui.desc_node.desc"]:setText(self.round)
|
||||||
|
|
||||||
|
local node = uiMap["dungeon_rune_round_tip_ui.desc_node"]
|
||||||
|
self.aniSequence = self.root:createBindTweenSequence()
|
||||||
|
self.aniSequence:AppendCallback(function()
|
||||||
|
node:setVisible(false)
|
||||||
|
end)
|
||||||
|
self.aniSequence:Append(node:getTransform():DOScale(1, 0.2))
|
||||||
|
self.aniSequence:AppendInterval(0.3)
|
||||||
|
self.aniSequence:Append(node:getTransform():DOScale(0, 0.5))
|
||||||
|
self.aniSequence:AppendCallback(function()
|
||||||
|
self:closeUI()
|
||||||
|
end)
|
||||||
|
end
|
||||||
|
|
||||||
|
return DungeonRuneRoundTipUI
|
||||||
10
lua/app/ui/dungeon_rune/dungeon_rune_round_tip_ui.lua.meta
Normal file
10
lua/app/ui/dungeon_rune/dungeon_rune_round_tip_ui.lua.meta
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 39d5d9762f8366f4499402f59f7f33b5
|
||||||
|
ScriptedImporter:
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
script: {fileID: 11500000, guid: 3b8b241bab4a4ac9a22fcce9c64f1242, type: 3}
|
||||||
Loading…
x
Reference in New Issue
Block a user