From 5b43ae2f27aa3a38ffc98aa25cf8e2678af03f45 Mon Sep 17 00:00:00 2001 From: chenxi Date: Wed, 26 Apr 2023 16:01:25 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=93=E7=AE=97=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/ui/battle/battle_result_ui.lua | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/lua/app/ui/battle/battle_result_ui.lua b/lua/app/ui/battle/battle_result_ui.lua index 3deb90c8..34b2617f 100644 --- a/lua/app/ui/battle/battle_result_ui.lua +++ b/lua/app/ui/battle/battle_result_ui.lua @@ -65,10 +65,12 @@ end function BattleResultUI:refreshVictoryNode() local uiMap = self.root:genAllChildren() - uiMap["battle_result_ui.mask_v"]:setActive(true) - uiMap["battle_result_ui.mask_d"]:setActive(false) - uiMap["battle_result_ui.defeat_node"]:setActive(false) - uiMap["battle_result_ui.victory_node"]:setActive(true) + uiMap["battle_result_ui.mask_v"]:setVisible(true) + uiMap["battle_result_ui.mask_d"]:setVisible(false) + uiMap["battle_result_ui.defeat_node"]:setVisible(false) + uiMap["battle_result_ui.victory_node"]:setVisible(true) + uiMap["battle_result_ui.report_img_v"]:setVisible(true) + uiMap["battle_result_ui.report_img_d"]:setVisible(false) uiMap["battle_result_ui.victory_node.title_bg.desc"]:setText(I18N:getGlobalText(I18N.GlobalConst.BATTLE_DESC_5)) uiMap["battle_result_ui.victory_node.ui_spine_obj"]:playAnimComplete("born", true, true, function() uiMap["battle_result_ui.victory_node.ui_spine_obj"]:playAnim("idle", true, true) @@ -77,10 +79,12 @@ end function BattleResultUI:refreshDefeatNode() local uiMap = self.root:genAllChildren() - uiMap["battle_result_ui.mask_v"]:setActive(true) - uiMap["battle_result_ui.mask_d"]:setActive(false) - uiMap["battle_result_ui.defeat_node"]:setActive(true) - uiMap["battle_result_ui.victory_node"]:setActive(false) + uiMap["battle_result_ui.mask_v"]:setVisible(false) + uiMap["battle_result_ui.mask_d"]:setVisible(true) + uiMap["battle_result_ui.defeat_node"]:setVisible(true) + uiMap["battle_result_ui.victory_node"]:setVisible(false) + uiMap["battle_result_ui.report_img_v"]:setVisible(false) + uiMap["battle_result_ui.report_img_d"]:setVisible(true) uiMap["battle_result_ui.defeat_node.title_bg.desc"]:setText(I18N:getGlobalText(I18N.GlobalConst.BATTLE_DESC_6)) uiMap["battle_result_ui.defeat_node.ui_spine_obj"]:playAnim("idle", false, true) end