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:
SL1900
2026-10-20 13:00:00 +09:00
parent 4bcada6061
commit 08b515afd9
1773 changed files with 1095195 additions and 65670 deletions
@@ -117,7 +117,7 @@ function SoldierCharSkillPreviewCtrl:CalGridHeight()
for _, skill in ipairs(self.tbAllSkillIds) do
local nSkillId = skill.nId
local skillCfg = ConfigTable.GetData("Skill", nSkillId)
local sDesc = UTILS.ParseDesc(skillCfg, GameEnum.levelTypeData.SoldierLevel, nil, false, nil, self._nCurLevel)
local sDesc = UTILS.ParseDesc(skillCfg, GameEnum.levelTypeData.SoldierLevel, nil, false, self._nCurLevel)
local txtDesc = self._mapNode.grid.transform:Find("ImgdescBg/txt_desc"):GetComponent("TMP_Text")
NovaAPI.SetTMPText(txtDesc, sDesc)
CS.UnityEngine.UI.LayoutRebuilder.ForceRebuildLayoutImmediate(self._mapNode.grid)
@@ -58,6 +58,10 @@ SoldierCharTipsCtrl._mapNodeConfig = {
goBaseInfo = {
sComponentName = "RectTransform"
},
btnCharAttr = {
sComponentName = "UIButton",
callback = "OnBtnClick_CharAttr"
},
btnTabFront = {
sComponentName = "UIButton",
callback = "OnBtnClick_Front"
@@ -151,6 +155,7 @@ function SoldierCharTipsCtrl:Awake()
self.tbDeployedChess = tbParam[3] or {}
self.tbPartner = tbParam[4] or {}
self.tbCurAttr = tbParam[5] or {}
self.bAddCharGrowth = tbParam[6]
end
end
function SoldierCharTipsCtrl:OnEnable()
@@ -329,7 +334,7 @@ function SoldierCharTipsCtrl:_SetAttr(mapCfg)
self:_ClearPropertyItems()
self._mapNode.goPropertyItem.gameObject:SetActive(false)
local nStar = type(self.tbData) == "table" and self.tbData.nStar or mapCfg.MaxStar or 1
local tbAttrSortList, tbAttrMap = SoldierAttrData.CalcCharacterAttr(mapCfg.Id, nStar, self.tbDeployedChess, self.tbPartner)
local tbAttrSortList, tbAttrMap = SoldierAttrData.CalcCharacterAttr(mapCfg.Id, nStar, self.tbDeployedChess, self.tbPartner, nil, self.bAddCharGrowth)
if type(tbAttrSortList) ~= "table" then
return
end
@@ -343,7 +348,7 @@ function SoldierCharTipsCtrl:_SetAttr(mapCfg)
Recovery = "nRecoverRate",
CritRate = "critRate",
CritPower = "critPower",
AttackSpeed = "attackSpeed"
ATKSPD_P = "attackSpeed"
}
for _, mapAttr in ipairs(tbAttrSortList) do
local curAttrKey = attrKeyMap[mapAttr.sKey]
@@ -515,6 +520,9 @@ function SoldierCharTipsCtrl:OnBtnClick_CloseWord(btn)
self._mapNode.btnCloseWordTip.gameObject:SetActive(false)
self._mapNode.imgWordTipBg:SetActive(false)
end
function SoldierCharTipsCtrl:OnBtnClick_CharAttr()
EventManager.Hit(EventId.OpenPanel, PanelId.SoldierCharAttriTips, self.nId, true)
end
function SoldierCharTipsCtrl:OnEvent_ShowBg()
self._mapNode.imgBG.enabled = true
end