Major Update - 2.0.0.143
EN: 2.0.0.143 CN: 2.0.0.142 JP: 2.0.0.145 KR: 2.0.0.150
This commit is contained in:
@@ -103,7 +103,8 @@ FormationCtrl._mapEventConfig = {
|
||||
[EventId.UIBackConfirm] = "OnEvent_Back",
|
||||
[EventId.UIHomeConfirm] = "OnEvent_BackHome",
|
||||
OnEvent_CloseTeamList = "OnEvent_CloseList",
|
||||
OnEvent_ChangeTeamModel = "OnEvent_ChangeTeamModel"
|
||||
OnEvent_ChangeTeamModel = "OnEvent_ChangeTeamModel",
|
||||
UpdateFormationInfoSuc = "OnEvent_UpdateFormationInfoSuc"
|
||||
}
|
||||
function FormationCtrl:Refresh(nDirection)
|
||||
NovaAPI.SetTMPText(self._mapNode.txtTeamNane, orderedFormat(ConfigTable.GetUIText("Formation_DefaultName"), self._panel.nTeamIndex))
|
||||
@@ -426,7 +427,7 @@ function FormationCtrl:LoadCharacter(nCharId, bOpen)
|
||||
local go = instantiate(obj, self.rtSceneOriginPos)
|
||||
NovaAPI.ChangeAnimatorDefaultState(go.transform)
|
||||
self.mapCurModel[idx] = {nCharId = nCharId, model = go}
|
||||
NovaAPI.BindUIParallaxStageCameraControllerModel(self._mapNode.UIParallax3DStage, idx - 1, go)
|
||||
NovaAPI.BindUIParallaxStageCameraControllerModel(self._mapNode.UIParallax3DStage, idx - 1, go, true)
|
||||
if self.rtSceneOriginPos ~= nil then
|
||||
go.transform.position = self.rtSceneOriginPos.position
|
||||
go.transform.localEulerAngles = Vector3(0, 180, 0)
|
||||
@@ -972,4 +973,10 @@ function FormationCtrl:OnEvent_OpenSwapChar(nIdx)
|
||||
self._mapNode.SwapCharPanel:ShowSwapChar(self.curTeam, nCurSelectChar, callback)
|
||||
self._mapNode.SwapBlock:SetActive(true)
|
||||
end
|
||||
function FormationCtrl:OnEvent_UpdateFormationInfoSuc(nTeamIdx)
|
||||
if nTeamIdx == self._panel.nTeamIndex then
|
||||
self.nPreselectionId = PlayerData.Team:GetTeamPreselectionId(self._panel.nTeamIndex)
|
||||
self:RefreshPreselection()
|
||||
end
|
||||
end
|
||||
return FormationCtrl
|
||||
|
||||
Reference in New Issue
Block a user