From caf3d892fa87ae2cf97611639036959babaea142 Mon Sep 17 00:00:00 2001 From: puxuan <413323644@qq.com> Date: Fri, 7 Nov 2025 17:54:47 +0800 Subject: [PATCH] fix bug --- lua/app/ui/hero/hero_info_comp.lua | 6 +++--- lua/app/ui/hero/star_info_comp.lua | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lua/app/ui/hero/hero_info_comp.lua b/lua/app/ui/hero/hero_info_comp.lua index 585e5299..e48911d8 100644 --- a/lua/app/ui/hero/hero_info_comp.lua +++ b/lua/app/ui/hero/hero_info_comp.lua @@ -1,7 +1,7 @@ local HeroInfoComp = class("HeroInfoComp", LuaComponent) local DEFAULT_FACTOR = GConst.BattleConst.DEFAULT_FACTOR -local BTN_ICON = {"common_btn_blue_1", "common_btn_yellow_1", "common_btn_grey_1"} +local BTN_ICON = {"common_btn_blue_3", "common_btn_yellow_3", "common_btn_grey_3"} local SIZE_DELTA_Y_HERO = 942 local SIZE_DELTA_Y_LOOK = 802 local LV_CELL = "app/ui/hero/cell/lv_cell" @@ -104,8 +104,8 @@ function HeroInfoComp:refreshUpInfo() self.btnUp:setActive(true) self.btnUp5:setActive(true) local rect = self.baseObject:getRectSize() - self.bg7:setAnchoredPositionY(283) - self.bg7:setSizeDeltaY(rect.height - 620) + self.bg7:setAnchoredPositionY(303) + self.bg7:setSizeDeltaY(rect.height - 640) local cost = {id = self.heroEntity:getLvUpCostId(), num = self.heroEntity:getLvUpMaterialNum() or 0, type = 1} local hadNum = DataManager.BagData.ItemData:getItemNumById(cost.id) diff --git a/lua/app/ui/hero/star_info_comp.lua b/lua/app/ui/hero/star_info_comp.lua index 1fb71efd..39ee343f 100644 --- a/lua/app/ui/hero/star_info_comp.lua +++ b/lua/app/ui/hero/star_info_comp.lua @@ -78,8 +78,8 @@ function StarInfoComp:refreshStarBtn() self.upBtn:setActive(true) self.descTx:setActive(false) local rect = self.baseObject:getRectSize() - self.bg:setAnchoredPositionY(283) - self.bg:setSizeDeltaY(rect.height - 620) + self.bg:setAnchoredPositionY(303) + self.bg:setSizeDeltaY(rect.height - 640) local cost = {id = self.heroEntity:getStarUpCostId(), num = self.heroEntity:getStarUpMaterialNum() or 0, type = 1} local hadNum = DataManager.BagData.ItemData:getItemNumById(cost.id)