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:
SL1900
2026-05-14 16:00:00 +09:00
parent 4b880806ef
commit eafd8f4088
1034 changed files with 809589 additions and 23067 deletions
+8 -6
View File
@@ -216,7 +216,6 @@ end
local mapCharEmoji = {}
local tbCharEmoji = {}
local nLayerIndex = 0
local timerEmoji
local LoadPresetEmoji = function()
local sPath = "Game.UI.Avg.AvgPreset"
local AvgPreset = require(sPath)
@@ -232,6 +231,9 @@ local LoadPresetEmoji = function()
nLayerIndex = CS.UnityEngine.LayerMask.NameToLayer("Cam_Layer_4")
end
function DatingCtrl:SetEmoji(sEmoji)
if sEmoji == nil or sEmoji == "" then
return
end
local mapCharCfg = ConfigTable.GetData_Character(self._panel.nCharId)
if mapCharCfg == nil then
return
@@ -247,8 +249,8 @@ function DatingCtrl:SetEmoji(sEmoji)
local s, x, y = objOffset:GetEmojiData(self:GetOffsetPanelId(), indexOfPose(sPose), table.indexof(tbCharEmoji, sEmoji), nX, nY)
local v3OffsetPos = Vector3(x, y, 0)
local v3OffsetScale = Vector3(s, math.abs(s), 1)
if timerEmoji ~= nil then
timerEmoji:Cancel(true)
if self.timerEmoji ~= nil then
self.timerEmoji:Cancel(true)
end
local sEmojiFullPath = string.format("UI/Avg/AnimEmoji/%s.prefab", sEmoji)
local goEmojiIns = self:CreatePrefabInstance(sEmojiFullPath, self._mapNode.trEmoji)
@@ -263,9 +265,9 @@ function DatingCtrl:SetEmoji(sEmoji)
if sEmojiSoundName ~= nil then
CS.WwiseAudioManager.Instance:PlaySound(sEmojiSoundName)
end
timerEmoji = TimerManager.Add(1, 3, Actor2DManager, function()
self.timerEmoji = TimerManager.Add(1, 3, Actor2DManager, function()
destroy(goEmojiIns)
timerEmoji = nil
self.timerEmoji = nil
end, true, true, true, nil)
end
function DatingCtrl:SetBubble(sContent, nDuration)
@@ -613,7 +615,7 @@ function DatingCtrl:OnEvent_DatingOptionSelected(nOptionIndex)
if nBranchBId ~= 0 then
table.insert(tbNewEvents, {
nId = nBranchBId,
nType = GameEnum.DatingEventType.BranchA
nType = GameEnum.DatingEventType.BranchB
})
end
self.tbBranchOptionIds = msgData.BranchBOptionIds
+2 -2
View File
@@ -116,8 +116,8 @@ function DatingEventCtrl:SetEventList(tbEvent, tbEventId)
self._mapNode.goEventEndItem.gameObject:SetActive(false)
self._mapNode.imgSpeed1.gameObject:SetActive(not self.bSpeed)
self._mapNode.imgSpeed2.gameObject:SetActive(self.bSpeed)
self._mapNode.imgSpeed1.gameObject:SetActive(not self.bAuto)
self._mapNode.imgSpeed2.gameObject:SetActive(self.bAuto)
self._mapNode.imgAutoPlay1.gameObject:SetActive(not self.bAuto)
self._mapNode.imgAutoPlay2.gameObject:SetActive(self.bAuto)
self.nCurIndex = 1
if self.nEventId == nil then
self.nEventId = 1
@@ -84,9 +84,18 @@ function DatingEventOptionItemCtrl:SkipTimer()
self:SelectDefault()
end
function DatingEventOptionItemCtrl:Awake()
end
function DatingEventOptionItemCtrl:OnEnable()
self.bSelected = false
self.animator = self.gameObject:GetComponent("Animator")
end
function DatingEventOptionItemCtrl:OnDisable()
if self.tbBtnCtrl ~= nil then
for k, v in pairs(self.tbBtnCtrl) do
v.onClick:RemoveAllListeners()
v = nil
end
self.tbBtnCtrl = nil
end
end
return DatingEventOptionItemCtrl
@@ -401,6 +401,10 @@ function DatingGiftCtrl:OnBtnClick_Present()
EventManager.Hit(EventId.OpenMessageBox, ConfigTable.GetUIText("Gift_Send_Item_Empty"))
return
end
if self.tbChooseItem == nil or next(self.tbChooseItem) == nil then
EventManager.Hit(EventId.OpenMessageBox, ConfigTable.GetUIText("Gift_Send_Not_Select"))
return
end
local tbItems = {}
local tbSendItems = {}
for nIndex, v in pairs(self.tbChooseItem) do
@@ -99,6 +99,9 @@ function DatingLandmarkCtrl:OnBtnClick_Goto(btn, nIndex)
end
self.nLandmarkId = self.tbLandmark[nIndex].Id
PlayerData.Dating:SendDatingLandmarkSelectMsg(self.nCharId, self.nLandmarkId, callback)
for k, v in pairs(self._mapNode.btnGoto) do
v.interactable = false
end
end
function DatingLandmarkCtrl:OnBtnClick_Back()
EventManager.Hit(EventId.ClosePanel, PanelId.DatingLandmark)