Update - 1.16.0.138

EN: 1.16.0.138
CN: 1.16.0.137
JP: 1.16.0.141
KR: 1.16.0.143
This commit is contained in:
SL1900
2026-09-29 12:00:00 +09:00
parent 1d209ec368
commit 1aa6ba19a4
767 changed files with 1389523 additions and 2758 deletions
+17
View File
@@ -8,6 +8,7 @@ HudMainCtrl._mapNodeConfig = {
}
HudMainCtrl._mapEventConfig = {
PlayerShow = "OnEvent_PlayerShowChanged",
PlayerBloodShow = "OnEvent_PlayerBloodShow",
ShowBossHUD = "OnEvent_ShowBossHUD",
MonsterHUDChange = "OnEvent_MonsterHUDChange",
AllHudShow = "OnEvent_AllHudShowChanged",
@@ -34,6 +35,7 @@ function HudMainCtrl:OnEnable()
self.resistanceTipInterval = ConfigTable.GetConfigNumber("HudResistanceTipInterval")
self.hudId = 0
self.playerHuds = {}
self.tbPlayerBloodState = {}
self.monsterHuds = {}
self.monsterAdvHuds = {}
self.numberHuds = {}
@@ -111,6 +113,7 @@ function HudMainCtrl:Clear()
end
self.hudId = 0
self.playerHuds = {}
self.tbPlayerBloodState = {}
self.monsterHuds = {}
self.monsterAdvHuds = {}
self.numberHuds = {}
@@ -204,12 +207,26 @@ function HudMainCtrl:OnEvent_PlayerShowChanged(id, showed)
if playerHud ~= nil then
playerHud:SetPlayerId(id)
AdventureModuleHelper.SetHudFollowTarget(id, playerHud.gameObject, Vector3.zero, false)
if self.tbPlayerBloodState[id] == false then
playerHud:SetBloodVisible(false)
end
end
elseif playerHud ~= nil then
self:DespawnPrefabInstance(playerHud, "HUD")
self.playerHuds[id] = nil
end
end
function HudMainCtrl:OnEvent_PlayerBloodShow(id, showed)
printLog("HudMainCtrl:OnEvent_PlayerBloodShow id=" .. tostring(id) .. " showed=" .. tostring(showed))
if id == 0 then
return
end
self.tbPlayerBloodState[id] = showed
local playerHud = self.playerHuds[id]
if playerHud ~= nil then
playerHud:SetBloodVisible(showed)
end
end
function HudMainCtrl:OnEvent_AllHudShowChanged(showed)
if self.TEST_VISIBLE_HUD_DAMAGE == true then
self._mapNode.Root.transform.localScale = showed and Vector3.one or Vector3.zero