【灵脉秘境】提交

dev_chengFeng
ZhangBiao 2021-11-18 14:39:50 +08:00
parent 7f0720554f
commit a2a5d0f192
3 changed files with 13 additions and 4 deletions

View File

@ -1553,6 +1553,15 @@ function TimeStampToDateStr3(second)
return string.format("%02d:%02d:%02d", hour, minute, sec)
end
function TimeStampToDateStr5(timestamp)
local date = os.date("*t", timestamp)
local cdate = os.date("*t", GetTimeStamp())
if date.year == cdate.year and date.month == cdate.month and date.day == cdate.day then
return string.format("%02d:%02d:%02d", date.hour, date.min, date.sec)
end
return string.format(Language[12056], date.year, date.month, date.day, date.hour, date.min)
end
--- 根据id获取资源
function GetResourcePath(id)
return GetLanguageStrById(ConfigManager.GetConfigData(ConfigName.ArtResourcesConfig, id).Name)

View File

@ -43,10 +43,10 @@ function this:SetSingleData(_go,_data,_index)
local time = Util.GetGameObject(_go,"Time"):GetComponent("Text")
local desc = Util.GetGameObject(_go,"Desc"):GetComponent("Text")
time.text = TimeStampToDateStr3(_data.time)
if _data.type == 1 then
time.text = TimeStampToDateStr5(_data.time)
if _data.type == 0 then
desc.text = string.format("经过一番激烈的战斗,最终击败%s占领%s开始收集灵脉资源",PracticeManager.SetNameColor(_data.defName,_data.practiceLevel),lodeConfig[_data.lingMaiId].Name)
elseif _data.type == 2 then
elseif _data.type == 1 then
desc.text = string.format("大战过后,我方神将不敌%s丢失%s",PracticeManager.SetNameColor(_data.defName,_data.practiceLevel),lodeConfig[_data.lingMaiId].Name)
end
end

View File

@ -153,7 +153,7 @@ function LingMaiMiJingPanel:SetMydata()
self.TextTip:SetActive(true)
self.rewardGrid:SetActive(false)
end
self.battleTime.text = string.format("剩余挑战次数:%s",5)
self.battleTime.text = string.format("剩余挑战次数:%s",PrivilegeManager.GetPrivilegeRemainValue(2030))
ForceRebuildLayout(self.bottom.transform)
end