Update - 1.9.0.103

EN: 1.9.0.103
CN: 1.9.0.104
JP: 1.9.0.106
KR: 1.9.0.108
This commit is contained in:
SL1900
2026-04-18 00:15:00 +09:00
parent 35fe1f046d
commit e0549005e1
1150 changed files with 941124 additions and 19847 deletions
@@ -91,6 +91,14 @@ CharacterInfoCtrl._mapNodeConfig = {
sComponentName = "Button",
callback = "OnBtnClick_CloseWordTip"
},
btnSetFavorite = {
sComponentName = "Button",
callback = "OnBtnClick_btnSetFavorite"
},
favorite_on = {
sNodeName = "Favorite_on",
sComponentName = "CanvasGroup"
},
imgWordTipBg = {},
TMPWordDesc = {sComponentName = "TMP_Text"},
TMPWordTipsTitle = {sComponentName = "TMP_Text"},
@@ -202,6 +210,7 @@ function CharacterInfoCtrl:RefreshCharacterInfo()
self:SetAtlasSprite(self._mapNode.imgElementIcon, "12_rare", sName)
NovaAPI.SetTMPColor(self._mapNode.txtElement, AllEnum.ElementColor[self.configData.EET])
NovaAPI.SetTMPText(self._mapNode.txtElement, ConfigTable.GetUIText("T_Element_Attr_" .. self.configData.EET))
self:RefreshFavoriteState()
end
function CharacterInfoCtrl:RefreshProperty()
local attrList = self.attrData:GetAttrList()
@@ -365,6 +374,31 @@ end
function CharacterInfoCtrl:OnBtnClick_Development()
EventManager.Hit(EventId.CharRelatePanelOpen, PanelId.CharUpPanel, self._panel.nCharId)
end
function CharacterInfoCtrl:OnBtnClick_btnSetFavorite()
local bOnFavorite = PlayerData.Char:GetCharFavoriteState(self.characterId)
bOnFavorite = not bOnFavorite
local func_callback = function()
PlayerData.Char:SetCharFavoriteState(self.characterId, bOnFavorite)
if bOnFavorite then
sTip = ConfigTable.GetUIText("SetCharacterCommon_Tip")
EventManager.Hit(EventId.OpenMessageBox, sTip)
EventManager.Hit(EventId.TemporaryBlockInput, 0.5)
end
self:RefreshFavoriteState()
end
local msgSend = {
Value = self.characterId
}
HttpNetHandler.SendMsg(NetMsgId.Id.char_favorite_set_req, msgSend, nil, func_callback)
end
function CharacterInfoCtrl:RefreshFavoriteState()
local bOnFavorite = PlayerData.Char:GetCharFavoriteState(self.characterId)
if bOnFavorite then
NovaAPI.SetCanvasGroupAlpha(self._mapNode.favorite_on, 1)
else
NovaAPI.SetCanvasGroupAlpha(self._mapNode.favorite_on, 0)
end
end
function CharacterInfoCtrl:OnEvent_RefreshPanel()
if self._panel.nPanelId ~= PanelId.CharInfo then
return