Merge branch 'fang/皮肤' into dev_20230815

This commit is contained in:
Fang 2023-08-09 16:47:20 +08:00
commit 6de4b6dbc4
2 changed files with 3 additions and 1 deletions

View File

@ -116,7 +116,7 @@ function CollectionCell:showSkin()
self.imgType:setSprite(GConst.ATLAS_PATH.HERO, "hero_skin_"..self.collectionData.qlt, function()
self.imgType:getComponent(GConst.TYPEOF_UNITY_CLASS.UI_IMAGE):SetNativeSize()
end)
self.txName:setText(ModuleManager.HeroManager:getHeroName(self.collectionData.id))
self.txName:setText(DataManager.SkinData:getName(self.collectionData.id))
self.txMax:setText(I18N:getGlobalText(I18N.GlobalConst.BTN_DONE))
-- 刷新点数状态

View File

@ -186,6 +186,7 @@ end
function CollectionUI:showHeroCollect()
self.collectType = GConst.CollectionConst.TYPE.HERO
self.btnHelp:setActive(true)
self.selectHero:setActive(true)
self.selectSkin:setActive(false)
self.txTitle:setText(I18N:getGlobalText(I18N.GlobalConst.COLLECTION_DESC_1))
@ -196,6 +197,7 @@ end
function CollectionUI:showSkinCollect()
self.collectType = GConst.CollectionConst.TYPE.SKIN
self.btnHelp:setActive(false)
self.selectHero:setActive(false)
self.selectSkin:setActive(true)
self.txTitle:setText(I18N:getGlobalText(I18N.GlobalConst.SKIN_COLLECT))