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
+16 -3
View File
@@ -88,6 +88,8 @@ local HonorTitleType = {
Affinity = 3,
Activity = 4
}
local L2_LV = 21
local L3_LV = 41
function FriendHonorTitleCtrl:Open()
self:PlayInAni()
self.tbCurHonorTitle = {}
@@ -261,16 +263,27 @@ function FriendHonorTitleCtrl:OnGridRefresh(goGrid, gridIndex)
end
end
end
ctrl:SetHonotTitle(honorData.Id, true, level)
self:SetPngSprite(imgHonorTitleEquipBg, honorData.MainRes)
local bgPath = ctrl:SetHonotTitle(honorData.Id, true, level)
self:SetPngSprite(imgHonorTitleEquipBg, bgPath ~= "" and bgPath or honorData.MainRes)
if bgPath ~= "" then
NovaAPI.SetImageNativeSize(imgHonorTitleEquipBg)
end
local spritePath = ""
if honorData.BGType == GameEnum.HonorTitleBgType.Ellipse then
spritePath = "db_choose_common_5"
if level ~= nil and level >= L2_LV and level < L3_LV then
spritePath = "db_choose_common_7"
elseif level ~= nil and level >= L3_LV then
spritePath = "db_choose_common_8"
else
spritePath = "db_choose_common_5"
end
elseif honorData.BGType == GameEnum.HonorTitleBgType.Parallelogram then
spritePath = "db_choose_common_6"
end
self:SetAtlasSprite(imgHonorTitleChooseBg, "08_db", spritePath)
self:SetAtlasSprite(imgHonorTitleChooseBg1, "08_db", spritePath)
NovaAPI.SetImageNativeSize(imgHonorTitleChooseBg)
NovaAPI.SetImageNativeSize(imgHonorTitleChooseBg1)
local bCurChosen = self.tbCurHonorTitle[self.nSelectedIndex] == honorData.Id
goChosenState.gameObject:SetActive(bCurChosen)
imgHonorTitleChooseBg.gameObject:SetActive(bCurChosen)
+21 -4
View File
@@ -6,7 +6,11 @@ HonorTitleCtrl._mapNodeConfig = {
imgStarSmall = {nCount = 5, sComponentName = "Image"},
goStarBig = {},
goStarSmall = {},
Reddot = {}
Reddot = {},
goHeartNumSmall = {},
goHeartNumBig = {},
txtLevelSmall = {sComponentName = "TMP_Text"},
txtLevelBig = {sComponentName = "TMP_Text"}
}
HonorTitleCtrl._mapEventConfig = {}
local HonorTitleStarPath = {
@@ -15,8 +19,10 @@ local HonorTitleStarPath = {
[3] = "zs_honor_level_1",
[4] = "zs_honor_level_4",
[5] = "zs_honor_level_3",
[6] = "zs_honor_level_5",
[99] = "zs_honor_level_100"
}
local MAX_AFFINITY_LV = 99
function HonorTitleCtrl:SetHonotTitle(honorTitleId, bBig, affinity_lv)
local honorData = ConfigTable.GetData("Honor", honorTitleId)
self:SetPngSprite(self._mapNode.imgHonorTitle, bBig and honorData.MainRes or honorData.SubRes)
@@ -24,6 +30,8 @@ function HonorTitleCtrl:SetHonotTitle(honorTitleId, bBig, affinity_lv)
if honorData.Type ~= GameEnum.honorType.Character and honorData.Type ~= GameEnum.honorType.Levels then
self._mapNode.goStarBig:SetActive(false)
self._mapNode.goStarSmall:SetActive(false)
self._mapNode.goHeartNumSmall:SetActive(false)
self._mapNode.goHeartNumBig:SetActive(false)
return
end
local maxLevel = 1
@@ -46,11 +54,17 @@ function HonorTitleCtrl:SetHonotTitle(honorTitleId, bBig, affinity_lv)
if self.curData == nil then
self._mapNode.goStarBig:SetActive(false)
self._mapNode.goStarSmall:SetActive(false)
self._mapNode.goHeartNumSmall:SetActive(false)
self._mapNode.goHeartNumBig:SetActive(false)
return
end
self:SetPngSprite(self._mapNode.imgHonorTitle, bBig and self.curData.BigBgPath or self.curData.SmallBgPath)
self._mapNode.goStarBig:SetActive(bBig)
self._mapNode.goStarSmall:SetActive(not bBig)
local spritePath = bBig and self.curData.BigBgPath or self.curData.SmallBgPath
self:SetPngSprite(self._mapNode.imgHonorTitle, spritePath)
local bTriggerHeartNum = level ~= nil and level >= MAX_AFFINITY_LV
self._mapNode.goStarBig:SetActive(bBig and not bTriggerHeartNum)
self._mapNode.goStarSmall:SetActive(not bBig and not bTriggerHeartNum)
self._mapNode.goHeartNumSmall:SetActive(not bBig and bTriggerHeartNum)
self._mapNode.goHeartNumBig:SetActive(bBig and bTriggerHeartNum)
for i = 1, 5 do
if self.curData.StarGroup[i] ~= nil then
if bBig then
@@ -65,6 +79,9 @@ function HonorTitleCtrl:SetHonotTitle(honorTitleId, bBig, affinity_lv)
self._mapNode.imgStarSmall[i].gameObject:SetActive(self.curData.StarGroup[i] ~= nil)
end
end
NovaAPI.SetTMPText(self._mapNode.txtLevelBig, self.curData.Level)
NovaAPI.SetTMPText(self._mapNode.txtLevelSmall, self.curData.Level)
return spritePath
end
function HonorTitleCtrl:RegisterRedDot(honorTitleId)
self.honorId = honorTitleId