From 0c420e840ba01af81a4257a9a4b5fc2090e33985 Mon Sep 17 00:00:00 2001 From: xiekaidong Date: Mon, 5 Jun 2023 20:06:51 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E7=89=B9=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/ui/battle/battle_skill_select_comp.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lua/app/ui/battle/battle_skill_select_comp.lua b/lua/app/ui/battle/battle_skill_select_comp.lua index 153d6457..2d6cb7fb 100644 --- a/lua/app/ui/battle/battle_skill_select_comp.lua +++ b/lua/app/ui/battle/battle_skill_select_comp.lua @@ -20,7 +20,7 @@ end function BattleSkillSelectComp:_display() local uiMap = self:getUIMap() local bg2 = uiMap["battle_select_skill_comp.bg_2"] - bg2:setVisible(self.onlyCommonSkill) + bg2:setActive(self.onlyCommonSkill) local bg = uiMap["battle_select_skill_comp.bg_1"] if ModuleManager.BattleManager.battleController then bg:setVisible(false) @@ -58,13 +58,16 @@ function BattleSkillSelectComp:_addListeners() self.canvasGroup = uiMap["battle_select_skill_comp.skill_node"]:getComponent(GConst.TYPEOF_UNITY_CLASS.CANVAS_GROUP) self.canvasGroup.alpha = 1 self.bg = uiMap["battle_select_skill_comp.bg_1"] + self.bg2 = uiMap["battle_select_skill_comp.bg_2"] uiMap["battle_select_skill_comp.look_btn"]:addTouchListener(function(eventType, x, y) if eventType == GConst.TOUCH_EVENT.DOWN or eventType == GConst.TOUCH_EVENT.DRAG then self.canvasGroup.alpha = 0.3 self.bg:setVisible(false) + self.bg2:setVisible(false) else self.canvasGroup.alpha = 1 self.bg:setVisible(true) + self.bg2:setVisible(true) end end) end From d4cf1c58fd12c0554d23363cf09d0be33b2a3c60 Mon Sep 17 00:00:00 2001 From: xiekaidong Date: Mon, 5 Jun 2023 20:08:36 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/game.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lua/app/game.lua b/lua/app/game.lua index 4a659c01..06e3b69e 100644 --- a/lua/app/game.lua +++ b/lua/app/game.lua @@ -401,6 +401,10 @@ if NOT_PUBLISH then end if (Input.GetKeyDown(KeyCode.RightArrow) or Input.GetKeyDown(KeyCode.LeftArrow)) and Input.GetKey(KeyCode.LeftControl) then + if not ModuleManager.DevToolManager.set_board_info then + Logger.logHighlight("请先去gm面板设置浏览的棋盘信息!") + return + end local configName = ModuleManager.DevToolManager.set_board_info.config local idx = ModuleManager.DevToolManager.set_board_info.idx or 0 if not configName then