头像框解锁fix
This commit is contained in:
parent
398880e440
commit
ebaf680eeb
@ -241,7 +241,7 @@ function PlayerInfoUI:refreshDesc()
|
||||
end
|
||||
elseif self.curTag == TAG.FRAME then
|
||||
self.txDesc:setText(DataManager.PlayerData:getFrameDesc(self.selectFrameId))
|
||||
if DataManager.PlayerData:isAvatarUnlock(self.selectFrameId) and DataManager.PlayerData:getUsingFrameId() ~= self.selectFrameId then
|
||||
if DataManager.PlayerData:isFrameUnlock(self.selectFrameId) and DataManager.PlayerData:getUsingFrameId() ~= self.selectFrameId then
|
||||
-- 已解锁,未使用
|
||||
self.btnUse:setTouchEnable(true)
|
||||
self.btnUse:setSprite(GConst.ATLAS_PATH.COMMON, "common_btn_green_1")
|
||||
|
||||
@ -36,6 +36,9 @@ function PlayerData:init(data)
|
||||
self.data.playInfo.usingFrameId = basicInfo.avatar_frame
|
||||
self.data.playInfo.unlockAvatar = data.bag.avatars
|
||||
self.data.playInfo.unlockFrame = data.bag.avatar_frames
|
||||
if EDITOR_MODE then
|
||||
Logger.printTable(self.data.playInfo)
|
||||
end
|
||||
|
||||
-- 体力购买情况初始化
|
||||
local energyLimit = data.energy_limit or GConst.EMPTY_TABLE
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user