fix bug
This commit is contained in:
parent
98efb8b71e
commit
caf3d892fa
@ -1,7 +1,7 @@
|
|||||||
local HeroInfoComp = class("HeroInfoComp", LuaComponent)
|
local HeroInfoComp = class("HeroInfoComp", LuaComponent)
|
||||||
|
|
||||||
local DEFAULT_FACTOR = GConst.BattleConst.DEFAULT_FACTOR
|
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_HERO = 942
|
||||||
local SIZE_DELTA_Y_LOOK = 802
|
local SIZE_DELTA_Y_LOOK = 802
|
||||||
local LV_CELL = "app/ui/hero/cell/lv_cell"
|
local LV_CELL = "app/ui/hero/cell/lv_cell"
|
||||||
@ -104,8 +104,8 @@ function HeroInfoComp:refreshUpInfo()
|
|||||||
self.btnUp:setActive(true)
|
self.btnUp:setActive(true)
|
||||||
self.btnUp5:setActive(true)
|
self.btnUp5:setActive(true)
|
||||||
local rect = self.baseObject:getRectSize()
|
local rect = self.baseObject:getRectSize()
|
||||||
self.bg7:setAnchoredPositionY(283)
|
self.bg7:setAnchoredPositionY(303)
|
||||||
self.bg7:setSizeDeltaY(rect.height - 620)
|
self.bg7:setSizeDeltaY(rect.height - 640)
|
||||||
|
|
||||||
local cost = {id = self.heroEntity:getLvUpCostId(), num = self.heroEntity:getLvUpMaterialNum() or 0, type = 1}
|
local cost = {id = self.heroEntity:getLvUpCostId(), num = self.heroEntity:getLvUpMaterialNum() or 0, type = 1}
|
||||||
local hadNum = DataManager.BagData.ItemData:getItemNumById(cost.id)
|
local hadNum = DataManager.BagData.ItemData:getItemNumById(cost.id)
|
||||||
|
|||||||
@ -78,8 +78,8 @@ function StarInfoComp:refreshStarBtn()
|
|||||||
self.upBtn:setActive(true)
|
self.upBtn:setActive(true)
|
||||||
self.descTx:setActive(false)
|
self.descTx:setActive(false)
|
||||||
local rect = self.baseObject:getRectSize()
|
local rect = self.baseObject:getRectSize()
|
||||||
self.bg:setAnchoredPositionY(283)
|
self.bg:setAnchoredPositionY(303)
|
||||||
self.bg:setSizeDeltaY(rect.height - 620)
|
self.bg:setSizeDeltaY(rect.height - 640)
|
||||||
|
|
||||||
local cost = {id = self.heroEntity:getStarUpCostId(), num = self.heroEntity:getStarUpMaterialNum() or 0, type = 1}
|
local cost = {id = self.heroEntity:getStarUpCostId(), num = self.heroEntity:getStarUpMaterialNum() or 0, type = 1}
|
||||||
local hadNum = DataManager.BagData.ItemData:getItemNumById(cost.id)
|
local hadNum = DataManager.BagData.ItemData:getItemNumById(cost.id)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user