显示修改
This commit is contained in:
parent
1ca93be7f6
commit
13851fb403
@ -77,14 +77,14 @@ function ArmorInfoComp:refreshSelectArmor()
|
||||
local armorEntity = DataManager.EquipData:getEquip(self.heroEntity:getCfgId(), self.selectPart)
|
||||
self.txCurName:setText(armorEntity:getName())
|
||||
self.imgCurBg:setSprite(GConst.ATLAS_PATH.ICON_EQUIP, "frame_" .. armorEntity:getStage())
|
||||
-- self.imgCurIcon:setSprite(GConst.ATLAS_PATH.ICON_EQUIP, tostring(armorEntity:getIconId()))
|
||||
self.imgCurIcon:setSprite(GConst.ATLAS_PATH.ICON_EQUIP, tostring(armorEntity:getIconId()))
|
||||
self.txCurLevel:setText("+".. armorEntity:getLevel())
|
||||
|
||||
-- next
|
||||
local armorNextEntity = armorEntity:getNextLevelEntity()
|
||||
self.txNextName:setText(armorNextEntity:getName())
|
||||
self.imgNextBg:setSprite(GConst.ATLAS_PATH.ICON_EQUIP, "frame_" .. armorNextEntity:getStage())
|
||||
-- self.imgNextIcon:setSprite(GConst.ATLAS_PATH.ICON_EQUIP, tostring(armorNextEntity:getIconId()))
|
||||
self.imgNextIcon:setSprite(GConst.ATLAS_PATH.ICON_EQUIP, tostring(armorNextEntity:getIconId()))
|
||||
self.txNextLevel:setText("+".. armorNextEntity:getLevel())
|
||||
|
||||
-- 基础属性
|
||||
@ -182,7 +182,7 @@ function ArmorInfoComp:refreshPart(index)
|
||||
imgSelect:setActive(part == self.selectPart)
|
||||
imgSelect:setSprite(GConst.ATLAS_PATH.ICON_EQUIP, "frame_select_" .. math.floor(stage / 2) + stage % 2)
|
||||
imgBg:setSprite(GConst.ATLAS_PATH.ICON_EQUIP, "frame_" .. stage)
|
||||
-- imgIcon:setSprite(GConst.ATLAS_PATH.ICON_EQUIP, tostring(armorEntity:getIconId()))
|
||||
imgIcon:setSprite(GConst.ATLAS_PATH.ICON_EQUIP, tostring(armorEntity:getIconId()))
|
||||
imgType:setSprite(GConst.ATLAS_PATH.ICON_EQUIP, stage <= 1 and "frame_dec_1" or "frame_dec_2")
|
||||
txLevel:setText("+".. armorEntity:getLevel())
|
||||
end
|
||||
|
||||
@ -42,7 +42,7 @@ function WeaponInfoComp:refresh()
|
||||
local nextWeaponEntity = self.weaponEntity:getNextLevelEntity()
|
||||
|
||||
self.txName:setText(self.weaponEntity:getName())
|
||||
-- self.imgWeapon:setSprite(GConst.ATLAS_PATH.COMMON, self.weaponEntity:getIcon())
|
||||
self.imgWeapon:setSprite(GConst.ATLAS_PATH.ICON_EQUIP, tostring(self.weaponEntity:getIconId()))
|
||||
self.txLevel:setText(I18N:getGlobalText(I18N.GlobalConst.EQUIP_DESC_3) .. self.weaponEntity:getLevel().."/"..self.weaponEntity:getMaxLevel())
|
||||
self.txAttr:setText(self.weaponEntity:getAttrDesc())
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user