Update - 2.1.0.147

EN: 2.1.0.147
CN: 2.1.0.147
JP: 2.1.0.149
KR: 2.1.0.154
This commit is contained in:
SL1900
2026-11-13 12:00:00 +09:00
parent c84dd6f891
commit da1d2be9fc
822 changed files with 1752348 additions and 1554 deletions
@@ -90,11 +90,16 @@ function UnchartedMapStoryCtrl:RefreshStoryList()
self._bInit = true
end, true, true, true)
end
local v2OddPos = Vector2(0, 20.7)
local v2EvenPos = Vector2(0, 111)
function UnchartedMapStoryCtrl:OnRefreshGrid(goGrid, nIndex)
local trNormal = goGrid.transform:Find("Normal")
trNormal.gameObject:SetActive(true)
local nGridIndex = nIndex + 1
local bOdd = nGridIndex % 2 ~= 0
local trpivot = goGrid.transform:Find("pivot")
trpivot.gameObject:SetActive(true)
trpivot.anchoredPosition = bOdd and v2OddPos or v2EvenPos
goGrid.transform:Find("Branch").gameObject:SetActive(false)
self:RefreshGridInfo(trNormal.gameObject, nIndex + 1)
self:RefreshGridInfo(trpivot.transform:Find("Normal").gameObject, nIndex + 1)
end
function UnchartedMapStoryCtrl:RefreshGridInfo(goGrid, nIndex)
local nStoryId = self._tbAllStory[nIndex]
@@ -123,22 +128,25 @@ function UnchartedMapStoryCtrl:RefreshGridInfo(goGrid, nIndex)
local bRead = self._objStoryData:IsStoryReaded(nStoryId)
local bOpen, nOpenTime = self._objStoryData:IsOpen(mapStoryCfg.StoryId, self._nActId)
local bAvailable = bOpen and bUnlock
self:SetPngSprite(imgStory, bAvailable and mapStoryCfg.Icon or "Icon/ActivityStory/ep_event_13_00")
self:SetPngSprite(imgStory, bAvailable and mapStoryCfg.Icon or "Icon/ActivityStory/ep_event13_00")
NovaAPI.SetTMPText(txtIndex, mapStoryCfg.Index)
NovaAPI.SetTMPText(txtTitle, mapStoryCfg.Title)
NovaAPI.SetTMPText(txtComplete, ConfigTable.GetUIText("RoguelikeBuild_Manage_FilterPass"))
NovaAPI.SetTMPText(trStoryTitle:Find("txtPlot"):GetComponent("TMP_Text"), ConfigTable.GetUIText("Story_StoryTitle"))
NovaAPI.SetTMPText(trBattleTitle:Find("txtPlot"):GetComponent("TMP_Text"), ConfigTable.GetUIText("Story_BattleTitle"))
trStoryTitle.gameObject:SetActive(bAvailable and not mapStoryCfg.IsBattle)
trBattleTitle.gameObject:SetActive(bAvailable and mapStoryCfg.IsBattle)
trStoryTitle.gameObject:SetActive(not mapStoryCfg.IsBattle)
trBattleTitle.gameObject:SetActive(mapStoryCfg.IsBattle)
trRoot:Find("goNotOpen").gameObject:SetActive(not bOpen)
trRoot:Find("goLockState").gameObject:SetActive(bOpen and not bUnlock)
trTextRoot:Find("goLocktxtState").gameObject:SetActive(bOpen and not bUnlock)
trTitle.gameObject:SetActive(bAvailable)
trTitle.gameObject:SetActive(bOpen)
trComplete.gameObject:SetActive(bAvailable and bRead)
trTime.gameObject:SetActive(not bOpen)
txtTitle.gameObject:SetActive(bAvailable)
if bRead then
animNormal:Play("svStory_idle", 0, 0)
animNormal:Play("svStory_in_read", 0, 0)
else
animNormal:Play("svStory_in", 0, 0)
end
if not bOpen then
NovaAPI.SetTMPText(txtTime, self:GetRemainTimeStr(nOpenTime, mapStoryCfg.DayOpen))
@@ -168,10 +176,6 @@ function UnchartedMapStoryCtrl:RefreshGridInfo(goGrid, nIndex)
btnGrid.onClick:AddListener(function()
self:OnClickStory(nStoryId)
end)
local objAnimator = goGrid:GetComponent("Animator")
if objAnimator ~= nil then
objAnimator:Play(bAvailable and "svStory_in" or "svStoryNotOpen_in")
end
end
function UnchartedMapStoryCtrl:OnClickStory(nStoryId)
if self._bCantClick then