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 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