Update - 1.9.0.107
EN: 1.9.0.107 CN: 1.9.0.108 JP: 1.9.0.112 KR: 1.9.0.112
This commit is contained in:
@@ -43,6 +43,9 @@ NodeInfoCtrl._mapNodeConfig = {
|
||||
}
|
||||
NodeInfoCtrl._mapEventConfig = {}
|
||||
function NodeInfoCtrl:Refresh(mapNode)
|
||||
if mapNode == nil then
|
||||
return
|
||||
end
|
||||
local mapCfg = ConfigTable.GetData("StarTowerGrowthNode", mapNode.nId)
|
||||
if not mapCfg then
|
||||
return
|
||||
@@ -105,7 +108,9 @@ function NodeInfoCtrl:OnBtnClick_Active(btn)
|
||||
EventManager.Hit(EventId.OpenMessageBox, ConfigTable.GetUIText("STGrowth_NoMat"))
|
||||
return
|
||||
end
|
||||
self._mapNode.btnActiveNode.interactable = false
|
||||
local callback = function()
|
||||
self._mapNode.btnActiveNode.interactable = true
|
||||
self._mapNode.btnActiveNode.gameObject:SetActive(false)
|
||||
self._mapNode.txtActived.gameObject:SetActive(true)
|
||||
self._mapNode.matList:SetActive(false)
|
||||
|
||||
@@ -77,6 +77,7 @@ StarTowerGrowthCtrl._mapEventConfig = {
|
||||
SetGrowthKeyNodeEye = "OnEvent_Eye",
|
||||
GuideSelectNote = "OnEvent_GuideSelectNote"
|
||||
}
|
||||
local GUIDE_CHECK_NODE_ID = 10301
|
||||
function StarTowerGrowthCtrl:InitData()
|
||||
self.nSelectGroupIndex = nil
|
||||
self.nSelectGroupId = nil
|
||||
@@ -197,8 +198,8 @@ function StarTowerGrowthCtrl:RefreshNode()
|
||||
end
|
||||
local wait = function()
|
||||
coroutine.yield(CS.UnityEngine.WaitForSeconds(0.1))
|
||||
local tmpData = PlayerData.StarTower:GetGrowthNode(10301)
|
||||
if tmpData.bActive then
|
||||
local tmpData = PlayerData.StarTower:GetGrowthNode(GUIDE_CHECK_NODE_ID)
|
||||
if tmpData ~= nil and tmpData.bActive then
|
||||
EventManager.Hit("Guide_PassiveCheck_Msg", "Guide_StarTowerGrowthIdActive")
|
||||
end
|
||||
end
|
||||
@@ -229,10 +230,16 @@ function StarTowerGrowthCtrl:ClearNodeContent()
|
||||
end
|
||||
function StarTowerGrowthCtrl:RefreshTip()
|
||||
local mapGroup = self.tbGroup[self.nSelectGroupIndex]
|
||||
if mapGroup == nil then
|
||||
return
|
||||
end
|
||||
self._mapNode.goTip:SetActive(mapGroup.bLock)
|
||||
if mapGroup.bLock then
|
||||
local nCurWorldClass = PlayerData.Base:GetWorldClass()
|
||||
local mapPreGroup = self.tbGroup[mapGroup.nPreGroup]
|
||||
if mapPreGroup == nil then
|
||||
mapPreGroup = {nAllNodeCount = 0, nActiveNodeCount = 0}
|
||||
end
|
||||
local bPreLock = mapPreGroup.nAllNodeCount > mapPreGroup.nActiveNodeCount
|
||||
local bWorldClassLock = nCurWorldClass < mapGroup.nWorldClass
|
||||
local sTips = ""
|
||||
@@ -425,6 +432,9 @@ function StarTowerGrowthCtrl:OnEvent_Unlock()
|
||||
self:RefreshTopBar()
|
||||
local tbNodes = PlayerData.StarTower:GetGrowthNodesByGroup(self.nSelectGroupId)
|
||||
local tbCurNodeMap = self.tbNodeMap[self.nSelectGroupId]
|
||||
if self.nSelectCloumn == nil then
|
||||
return
|
||||
end
|
||||
self:RefreshNodeCloumn(self.nSelectCloumn, tbNodes, tbCurNodeMap)
|
||||
self:RefreshNodeCloumn(self.nSelectCloumn + 1, tbNodes, tbCurNodeMap)
|
||||
local callback = function()
|
||||
@@ -437,8 +447,8 @@ function StarTowerGrowthCtrl:OnEvent_Unlock()
|
||||
self.tbNodeList[self.nSelectCloumn]:PlayActiveAnim(self.nSelectNodeId, callback)
|
||||
local wait = function()
|
||||
coroutine.yield(CS.UnityEngine.WaitForSeconds(0.1))
|
||||
local tmpData = PlayerData.StarTower:GetGrowthNode(10301)
|
||||
if tmpData.bActive then
|
||||
local tmpData = PlayerData.StarTower:GetGrowthNode(GUIDE_CHECK_NODE_ID)
|
||||
if tmpData ~= nil and tmpData.bActive then
|
||||
EventManager.Hit("Guide_PassiveCheck_Msg", "Guide_StarTowerGrowthIdActive")
|
||||
end
|
||||
end
|
||||
|
||||
@@ -76,7 +76,7 @@ function StarTowerGrowthPreviewWindowCtrl:RefreshEffectDetail()
|
||||
if tbNodes ~= nil then
|
||||
for k, v in pairs(tbNodes) do
|
||||
local mapNodeData = ConfigTable.GetData("StarTowerGrowthNode", v.nId)
|
||||
if mapNodeData ~= nil and v.bActive and mapNodeData.Clientlvl <= self.curSelectDiff then
|
||||
if mapNodeData ~= nil and v.bActive and mapNodeData.Clientlvl <= self.curSelectDiff and mapNodeData.EffectClient ~= nil and mapNodeData.Priority ~= nil then
|
||||
if self.tbCurNodes[mapNodeData.EffectClient] == nil then
|
||||
self.tbCurNodes[mapNodeData.EffectClient] = mapNodeData
|
||||
elseif mapNodeData.Priority > self.tbCurNodes[mapNodeData.EffectClient].Priority then
|
||||
|
||||
Reference in New Issue
Block a user