【灵脉秘境】纪录换行问题修改
parent
fbb58dbfdc
commit
6cd26e96af
|
@ -34,7 +34,7 @@ function this:OnShow(_parent)
|
|||
self.empty:SetActive(false)
|
||||
for i = 1, #self.data do
|
||||
if self.data[i].type == 1 then
|
||||
PlayerPrefs.SetString(PlayerManager.uid.."LingMai",self.data[1].time)
|
||||
PlayerPrefs.SetString(PlayerManager.uid.."LingMai",self.data[i].time)
|
||||
break
|
||||
end
|
||||
end
|
||||
|
@ -59,7 +59,7 @@ function this:SetSingleData(_go,_data,_index)
|
|||
|
||||
time.text = string.format( "[%s]",TimeStampToDateStr5(_data.time))
|
||||
if _data.type == 0 then
|
||||
desc.text = string.format("经过一番激烈的战斗,最终击败%s %s,占领%s,开始收集灵脉资源",tostring(_data.defServerName),PracticeManager.SetNameColor(_data.defName,_data.practiceLevel),lodeConfig[_data.lingMaiId].Name)
|
||||
desc.text = string.format("经过一番激烈的战斗,最终击败(%s)%s,占领%s,开始收集灵脉资源",tostring(_data.defServerName),PracticeManager.SetNameColor(_data.defName,_data.practiceLevel),lodeConfig[_data.lingMaiId].Name)
|
||||
elseif _data.type == 1 then
|
||||
desc.text = string.format("大战过后,我方神将不敌(%s)%s,丢失%s",tostring(_data.defServerName),PracticeManager.SetNameColor(_data.defName,_data.practiceLevel),lodeConfig[_data.lingMaiId].Name)
|
||||
end
|
||||
|
|
|
@ -154,8 +154,8 @@ function this.CheckRedPoint()
|
|||
PlayerPrefs.SetString(PlayerManager.uid.."LingMai", "")
|
||||
end
|
||||
for i = 1, #this.recordData do
|
||||
if PlayerPrefs.GetString(PlayerManager.uid.."LingMai") ~= tostring(this.recordData[i].time) and this.recordData[i].type == 1 then
|
||||
return true
|
||||
if this.recordData[i].type == 1 then
|
||||
return PlayerPrefs.GetString(PlayerManager.uid.."LingMai") ~= tostring(this.recordData[i].time)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue