英雄收集文案fix、武器升级动效显示fix
This commit is contained in:
parent
5a7249a545
commit
29a149dab5
@ -17,7 +17,7 @@ function CollectionHeroCell:init()
|
|||||||
ModuleManager.CollectionManager:reqHeroPoint(self.heroData.id)
|
ModuleManager.CollectionManager:reqHeroPoint(self.heroData.id)
|
||||||
EventManager:dispatchEvent(EventManager.CUSTOM_EVENT.COLLECTION_CLICK_GET_POINT, self.imgIcon:getPosition())
|
EventManager:dispatchEvent(EventManager.CUSTOM_EVENT.COLLECTION_CLICK_GET_POINT, self.imgIcon:getPosition())
|
||||||
else
|
else
|
||||||
GFunc.showToast(I18N:getGlobalText(I18N.GlobalConst.BATTLE_DESC_8))
|
GFunc.showToast(I18N:getGlobalText(I18N.GlobalConst.COLLECTION_DESC_12))
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
self:bind(DataManager.CollectionData, "dirtyHero", function()
|
self:bind(DataManager.CollectionData, "dirtyHero", function()
|
||||||
|
|||||||
@ -56,6 +56,9 @@ function ArmorInfoComp:init()
|
|||||||
self.btnAttr:addClickListener(function()
|
self.btnAttr:addClickListener(function()
|
||||||
ModuleManager.TipsManager:showDescTips(DataManager.EquipData:getEquip(self.heroEntity:getCfgId(), self.selectPart):getAttrDesc(), self.btnAttr)
|
ModuleManager.TipsManager:showDescTips(DataManager.EquipData:getEquip(self.heroEntity:getCfgId(), self.selectPart):getAttrDesc(), self.btnAttr)
|
||||||
end)
|
end)
|
||||||
|
self:bind(DataManager.BagData.ItemData, "dirty", function()
|
||||||
|
self:refresh()
|
||||||
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
function ArmorInfoComp:setUI(ui)
|
function ArmorInfoComp:setUI(ui)
|
||||||
|
|||||||
@ -139,9 +139,6 @@ function HeroDetailUI:onLoadRootComplete()
|
|||||||
self:addEventListener(EventManager.CUSTOM_EVENT.GO_DUNGEON_UI, function()
|
self:addEventListener(EventManager.CUSTOM_EVENT.GO_DUNGEON_UI, function()
|
||||||
self:closeUI()
|
self:closeUI()
|
||||||
end)
|
end)
|
||||||
self:bind(DataManager.BagData.ItemData, "dirty", function()
|
|
||||||
self:refreshShow()
|
|
||||||
end)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function HeroDetailUI:updateSide()
|
function HeroDetailUI:updateSide()
|
||||||
|
|||||||
@ -53,6 +53,9 @@ function HeroInfoComp:init()
|
|||||||
self.btnAttr:addClickListener(function()
|
self.btnAttr:addClickListener(function()
|
||||||
UIManager:showUI("app/ui/hero/hero_attr_ui", {heroEntity = self.heroEntity})
|
UIManager:showUI("app/ui/hero/hero_attr_ui", {heroEntity = self.heroEntity})
|
||||||
end)
|
end)
|
||||||
|
self:bind(DataManager.BagData.ItemData, "dirty", function()
|
||||||
|
self:refresh()
|
||||||
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
function HeroInfoComp:setHeroData(heroEntity, onlyLook)
|
function HeroInfoComp:setHeroData(heroEntity, onlyLook)
|
||||||
|
|||||||
@ -53,6 +53,10 @@ function WeaponInfoComp:setHeroData(heroEntity)
|
|||||||
self:bind(self.weaponEntity, "isDirty", function()
|
self:bind(self.weaponEntity, "isDirty", function()
|
||||||
self:refresh()
|
self:refresh()
|
||||||
end)
|
end)
|
||||||
|
self:bind(DataManager.BagData.ItemData, "dirty", function()
|
||||||
|
self:refresh()
|
||||||
|
end)
|
||||||
|
self:playEffect()
|
||||||
end
|
end
|
||||||
|
|
||||||
function WeaponInfoComp:refresh()
|
function WeaponInfoComp:refresh()
|
||||||
@ -170,8 +174,6 @@ function WeaponInfoComp:refresh()
|
|||||||
self.btnUp:removeRedPoint()
|
self.btnUp:removeRedPoint()
|
||||||
self.btnUp:setSprite(GConst.ATLAS_PATH.COMMON, BTN_ICON[2])
|
self.btnUp:setSprite(GConst.ATLAS_PATH.COMMON, BTN_ICON[2])
|
||||||
end
|
end
|
||||||
|
|
||||||
self:playEffect()
|
|
||||||
end
|
end
|
||||||
|
|
||||||
-- 播放动效
|
-- 播放动效
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user