This commit is contained in:
puxuan 2025-11-07 17:54:47 +08:00
parent 98efb8b71e
commit caf3d892fa
2 changed files with 5 additions and 5 deletions

View File

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

View File

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