From 887400cb76fd362e7a2f305751ced4b5bc9b12fb Mon Sep 17 00:00:00 2001 From: puxuan <413323644@qq.com> Date: Fri, 24 Oct 2025 16:36:33 +0800 Subject: [PATCH] fix bug --- lua/app/module/dungeon/dungeon_const.lua | 2 +- lua/app/ui/battle/battle_result_ui.lua | 8 ++++---- lua/app/ui/battle/battle_skill_select_comp.lua | 8 +++++--- lua/app/ui/dungeon/cell/dungeon_cell.lua | 4 ++-- lua/app/userdata/battle/battle_base_data.lua | 2 +- 5 files changed, 13 insertions(+), 11 deletions(-) diff --git a/lua/app/module/dungeon/dungeon_const.lua b/lua/app/module/dungeon/dungeon_const.lua index 05a56691..59440ae5 100644 --- a/lua/app/module/dungeon/dungeon_const.lua +++ b/lua/app/module/dungeon/dungeon_const.lua @@ -24,7 +24,7 @@ DungeonConst.STR_HELP = { -- banner名称 DungeonConst.IMG_BANNER = { - [DungeonConst.MODULE_KEY_DUNGEON_DAILY] = "supply_banner_1", + [DungeonConst.MODULE_KEY_DUNGEON_DAILY] = "dungeon_banner_3", } -- 副本排行榜类型,客户端自定义 diff --git a/lua/app/ui/battle/battle_result_ui.lua b/lua/app/ui/battle/battle_result_ui.lua index f3bc2b0e..4b9d40c9 100644 --- a/lua/app/ui/battle/battle_result_ui.lua +++ b/lua/app/ui/battle/battle_result_ui.lua @@ -2,7 +2,7 @@ local BattleResultUI = class("BattleResultUI", BaseUI) local UNIT_RESULT_RERPORT_CELL = "app/ui/battle/cell/unit_result_report_cell" local MAX_SCROLL_SHOW_COUNT = 10 -local SCROLL_LINE_HEIGHT = 130 +local SCROLL_LINE_HEIGHT = 98 function BattleResultUI:isFullScreen() return false @@ -405,13 +405,13 @@ function BattleResultUI:refreshRewards() comp.movementType = CS.UnityEngine.UI.ScrollRect.MovementType.Clamped if rewardCount >= 5 then self.rewardScrollRectComp:setPerLineNum(5) - self.rewardScrollRect:setSizeDeltaX(560) + self.rewardScrollRect:setSizeDeltaX(490) elseif rewardCount <= 0 then self.rewardScrollRectComp:setPerLineNum(1) - self.rewardScrollRect:setSizeDeltaX(560) + self.rewardScrollRect:setSizeDeltaX(490) else self.rewardScrollRectComp:setPerLineNum(rewardCount) - self.rewardScrollRect:setSizeDeltaX(112*rewardCount) + self.rewardScrollRect:setSizeDeltaX(98*rewardCount) end end self.rewardScrollRectComp:refillCells(rewardCount) diff --git a/lua/app/ui/battle/battle_skill_select_comp.lua b/lua/app/ui/battle/battle_skill_select_comp.lua index d9fbc8a7..1b4009d0 100644 --- a/lua/app/ui/battle/battle_skill_select_comp.lua +++ b/lua/app/ui/battle/battle_skill_select_comp.lua @@ -4,10 +4,10 @@ local SELECT_SKILL_CELL = "app/ui/battle/cell/battle_select_skill_cell" local BATTLE_COMMON_PATH = "assets/arts/textures/background/battle_common/%s.png" local SKILL_ICON_POS = { - {x =-240, y= 158}, - {x =-240, y= 0}, + {x =-240, y= 154}, + {x =-240, y= -2}, {x =-240, y= -158}, - {x =-240, y= 316}, + {x =-240, y= 310}, } function BattleSkillSelectComp:refresh(skillList, isGodSkill) @@ -100,8 +100,10 @@ function BattleSkillSelectComp:refreshBtns() end local allCount = battleController.battleData:getAllSkillCount() if getAllAdCount > allCount then + adBtn:setAnchoredPositionX(-102) allBtn:setActive(true) else + adBtn:setAnchoredPositionX(0) allBtn:setActive(false) end diff --git a/lua/app/ui/dungeon/cell/dungeon_cell.lua b/lua/app/ui/dungeon/cell/dungeon_cell.lua index 7602d28d..64660652 100644 --- a/lua/app/ui/dungeon/cell/dungeon_cell.lua +++ b/lua/app/ui/dungeon/cell/dungeon_cell.lua @@ -26,7 +26,7 @@ function DungeonCell:init() ModuleManager.TipsManager:showHelpTips(params) end) - self.baseObject:addClickListener(function() + self.contentNode:addClickListener(function() self:onClickGo() end) end @@ -48,7 +48,7 @@ function DungeonCell:refresh(moduleKey) cell:setActive(false) end end - self.baseObject:setSprite(GConst.ATLAS_PATH.UI_SUPPLY, GConst.DungeonConst.IMG_BANNER[self.moduleKey]) + self.baseObject:setSprite(GConst.ATLAS_PATH.UI_DUNGEON, GConst.DungeonConst.IMG_BANNER[self.moduleKey]) if DataManager.DungeonData:isOpen(self.moduleKey) then self.infoNode:setVisible(true) self.lockNode:setVisible(false) diff --git a/lua/app/userdata/battle/battle_base_data.lua b/lua/app/userdata/battle/battle_base_data.lua index 847cb194..e70c6808 100644 --- a/lua/app/userdata/battle/battle_base_data.lua +++ b/lua/app/userdata/battle/battle_base_data.lua @@ -901,7 +901,7 @@ function BattleBaseData:initHeroData(formation) ---- 攻击力 for matchType, attrName in pairs(GConst.MATCH_ATTACK_NAME) do - unitData.attr[attrName] = heroEntity:getTotalAttrValue(attrName) // DEFAULT_FACTOR + unitData.attr[attrName] = heroEntity:getTotalAttrValue(attrName)-- // DEFAULT_FACTOR end ---- 暴击率