【测试战斗】皮肤加入本地数据保存
parent
bdf45413bc
commit
d3a276cdca
|
@ -86,9 +86,9 @@ function RoleSetView:LoadFromConfig()
|
|||
self.passivity.text = self:GetLocalData(3)
|
||||
self.skill.text = self:GetLocalData(4)
|
||||
self.superSkill.text = self:GetLocalData(5)
|
||||
self.skin.text="0"
|
||||
self.skin.text = self:GetLocalData(6)
|
||||
for propIndex, prop in ipairs(self.propList) do
|
||||
prop.text = self:GetLocalData(propIndex + 5)
|
||||
prop.text = self:GetLocalData(propIndex + 6)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -107,6 +107,7 @@ function RoleSetView:saveToLocal()
|
|||
str = str .. "|"..(self.data.passivity or "")
|
||||
str = str .. "|"..(self.data.skill or "")
|
||||
str = str .. "|"..(self.data.superSkill or "")
|
||||
str = str .. "|"..(self.data.skinId or "")
|
||||
for propIndex, prop in ipairs(self.data.props) do
|
||||
str = str .. "|"..(prop or "")
|
||||
end
|
||||
|
@ -160,9 +161,9 @@ function RoleSetView:Show(camp, pos, data, func)
|
|||
self.passivity.text = data.passivity or self:GetLocalData(3)
|
||||
self.skill.text = data.skill or self:GetLocalData(4)
|
||||
self.superSkill.text = data.superSkill or self:GetLocalData(5)
|
||||
self.skin.text=data.skinId or 0
|
||||
self.skin.text = data.skinId or self:GetLocalData(6)
|
||||
for propIndex, prop in ipairs(self.propList) do
|
||||
prop.text = data.props[propIndex] or self:GetLocalData(propIndex + 5)
|
||||
prop.text = data.props[propIndex] or self:GetLocalData(propIndex + 6)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue