Update - 1.13.2.128
EN: 1.13.2.128 CN: 1.13.2.128 JP: 1.13.2.132 KR: 1.13.2.134
This commit is contained in:
@@ -534,7 +534,6 @@ function ChapterLineCtrl:CheckLineReasonable(grid)
|
||||
local goLeftBorder = grid:Find("goLeftBorder")
|
||||
local uiCamera = GameCameraStackManager.Instance.uiCamera
|
||||
if grid.gameObject.activeInHierarchy == false then
|
||||
return
|
||||
end
|
||||
if self.tbShortenedLines == nil then
|
||||
self.tbShortenedLines = {}
|
||||
@@ -563,6 +562,10 @@ function ChapterLineCtrl:CheckLineReasonable(grid)
|
||||
local lineWidthScreen = lineRect.sizeDelta.x
|
||||
local newSizeDelta = screenDist
|
||||
if not (math.abs(screenDist - lineWidthScreen) <= 18) then
|
||||
if 1 > lineRect.pivot.x then
|
||||
lineRect.pivot = Vector2(1, 0.5)
|
||||
lineRect.anchoredPosition = Vector2(0, 0)
|
||||
end
|
||||
if screenDist > lineWidthScreen then
|
||||
lineRect.sizeDelta = Vector2(newSizeDelta, lineRect.sizeDelta.y)
|
||||
elseif screenDist < lineWidthScreen then
|
||||
@@ -1060,8 +1063,9 @@ function ChapterLineCtrl:CacheChapterBranchNode()
|
||||
end
|
||||
function ChapterLineCtrl:IsAllStoryCompleted()
|
||||
for k, v in ipairs(self.tbGridList) do
|
||||
if self.maxStoryDepth == v.depth and self.curChosenStory == v.grid.name then
|
||||
local avgId = v.grid.name
|
||||
local avgId = v.grid.name
|
||||
local cfg = AvgData:GetStoryCfgData(avgId)
|
||||
if cfg.IsLast and self.curChosenStory == v.grid.name then
|
||||
local nStoryId = AvgData.CFG_Story[avgId]
|
||||
return AvgData:IsStoryReaded(nStoryId)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user