Update - 1.7.0.88

EN: 1.7.0.88
CN: 1.7.0.90
JP: 1.7.0.91
KR: 1.7.0.94
This commit is contained in:
SL1900
2026-02-24 22:00:00 +09:00
parent d0c0a3870c
commit 86d82306fe
666 changed files with 920582 additions and 7496 deletions
@@ -1,5 +1,6 @@
local PenguinCardInfoCtrl = class("PenguinCardInfoCtrl", BaseCtrl)
local WwiseManger = CS.WwiseAudioManager.Instance
local _, NotMaxLevel = ColorUtility.TryParseHtmlString("#FFF7EA")
local _, MaxLevel = ColorUtility.TryParseHtmlString("#ffe075")
PenguinCardInfoCtrl._mapNodeConfig = {
blur = {
sNodeName = "t_fullscreen_blur_blue"
@@ -14,6 +15,7 @@ PenguinCardInfoCtrl._mapNodeConfig = {
txtName = {sComponentName = "TMP_Text"},
imgUp = {},
txtDesc = {sComponentName = "TMP_Text"},
aniInfo = {sNodeName = "goInfo", sComponentName = "Animator"},
btnRight = {
sComponentName = "UIButton",
callback = "OnBtnClick_Right"
@@ -42,7 +44,7 @@ PenguinCardInfoCtrl._mapNodeConfig = {
}
PenguinCardInfoCtrl._mapEventConfig = {
PenguinCard_OpenInfo = "Open",
PenguinCard_SelectPenguinCard = "Close",
PenguinCard_SelectPenguinCard = "OnEvent_Select",
PenguinCard_SalePenguinCard = "Close"
}
function PenguinCardInfoCtrl:Open(mapCard, nSelectIndex)
@@ -86,6 +88,7 @@ function PenguinCardInfoCtrl:Refresh()
local nAfter = mapUpgradeCard.nLevel + mapSelectCard.nLevel
nAfter = nAfter > mapUpgradeCard.nMaxLevel and mapUpgradeCard.nMaxLevel or nAfter
NovaAPI.SetTMPText(self._mapNode.txtLevel, orderedFormat(ConfigTable.GetUIText("PenguinCard_CardLevel"), nAfter))
NovaAPI.SetTMPColor(self._mapNode.txtLevel, nAfter == mapUpgradeCard.nMaxLevel and MaxLevel or NotMaxLevel)
local nId = mapUpgradeCard:GetIdByLevel(mapUpgradeCard.nGroupId, nAfter)
local mapCfg = ConfigTable.GetData("PenguinCard", nId)
if mapCfg then
@@ -96,11 +99,13 @@ function PenguinCardInfoCtrl:Refresh()
else
self._mapNode.imgUp:SetActive(false)
NovaAPI.SetTMPText(self._mapNode.txtLevel, orderedFormat(ConfigTable.GetUIText("PenguinCard_CardLevel"), self.mapCard.nLevel))
NovaAPI.SetTMPColor(self._mapNode.txtLevel, self.mapCard.nLevel == self.mapCard.nMaxLevel and MaxLevel or NotMaxLevel)
NovaAPI.SetTMPText(self._mapNode.txtDesc, self.mapCard.sDesc)
NovaAPI.SetTMPText(self._mapNode.txtBtnSelect, ConfigTable.GetUIText("PenguinCard_Btn_Select"))
end
else
NovaAPI.SetTMPText(self._mapNode.txtLevel, orderedFormat(ConfigTable.GetUIText("PenguinCard_CardLevel"), self.mapCard.nLevel))
NovaAPI.SetTMPColor(self._mapNode.txtLevel, self.mapCard.nLevel == self.mapCard.nMaxLevel and MaxLevel or NotMaxLevel)
NovaAPI.SetTMPText(self._mapNode.txtDesc, self.mapCard.sDesc)
end
end
@@ -114,64 +119,103 @@ function PenguinCardInfoCtrl:PlayInAni()
cs_coroutine.start(wait)
EventManager.Hit(EventId.TemporaryBlockInput, 0.3)
end
function PenguinCardInfoCtrl:Close()
function PenguinCardInfoCtrl:Close(bBuy)
self.animator:Play("PengUinCard_CardInfo_out")
if bBuy == true then
self._mapNode.aniInfo:Play("PengUinCard_CardInfo_Card_Give", 0, 0)
else
self._mapNode.aniInfo:Play("PengUinCard_CardInfo_Card_out", 0, 0)
end
self._mapNode.aniBlur:SetTrigger("tOut")
self:AddTimer(1, 0.2, function()
self:AddTimer(1, 0.4, function()
self._mapNode.goInfo:SetActive(false)
self.gameObject:SetActive(false)
self._panel.mapLevel:Resume()
end, true, true, true)
EventManager.Hit(EventId.TemporaryBlockInput, 0.2)
EventManager.Hit(EventId.TemporaryBlockInput, 0.4)
end
function PenguinCardInfoCtrl:Awake()
self._mapNode.goInfo:SetActive(false)
self.animator = self.gameObject:GetComponent("Animator")
end
function PenguinCardInfoCtrl:OnEnable()
end
function PenguinCardInfoCtrl:OnDisable()
end
function PenguinCardInfoCtrl:OnBtnClick_Right()
local switch = function(callback)
self._mapNode.aniInfo:Play("PengUinCard_CardInfo_Card_out_l", 0, 0)
local nAnimTime = NovaAPI.GetAnimClipLength(self._mapNode.aniInfo, {
"PengUinCard_CardInfo_Card_out_l"
})
self:AddTimer(1, nAnimTime, function()
callback()
self._mapNode.aniInfo:Play("PengUinCard_CardInfo_Card_in_r", 0, 0)
end, true, true, true)
end
if self.bSelect then
local nMax = #self._panel.mapLevel.tbSelectablePenguinCard
if nMax > self.nSelectIndex then
self.nSelectIndex = self.nSelectIndex + 1
else
self.nSelectIndex = 1
local callback = function()
local nMax = #self._panel.mapLevel.tbSelectablePenguinCard
if nMax > self.nSelectIndex then
self.nSelectIndex = self.nSelectIndex + 1
else
self.nSelectIndex = 1
end
self.mapCard = self._panel.mapLevel.tbSelectablePenguinCard[self.nSelectIndex]
self:Refresh()
end
self.mapCard = self._panel.mapLevel.tbSelectablePenguinCard[self.nSelectIndex]
self:Refresh()
switch(callback)
else
local nMax = #self.tbHasIndex
local nIndex = table.indexof(self.tbHasIndex, self.mapCard.nSlotIndex)
if nMax > nIndex then
nIndex = nIndex + 1
else
nIndex = 1
local callback = function()
local nMax = #self.tbHasIndex
local nIndex = table.indexof(self.tbHasIndex, self.mapCard.nSlotIndex)
if nMax > nIndex then
nIndex = nIndex + 1
else
nIndex = 1
end
self.mapCard = self._panel.mapLevel.tbPenguinCard[self.tbHasIndex[nIndex]]
self:Refresh()
end
self.mapCard = self._panel.mapLevel.tbPenguinCard[self.tbHasIndex[nIndex]]
self:Refresh()
switch(callback)
end
end
function PenguinCardInfoCtrl:OnBtnClick_Left()
local switch = function(callback)
self._mapNode.aniInfo:Play("PengUinCard_CardInfo_Card_out_r", 0, 0)
local nAnimTime = NovaAPI.GetAnimClipLength(self._mapNode.aniInfo, {
"PengUinCard_CardInfo_Card_out_r"
})
self:AddTimer(1, nAnimTime, function()
callback()
self._mapNode.aniInfo:Play("PengUinCard_CardInfo_Card_in_l", 0, 0)
end, true, true, true)
end
if self.bSelect then
local nMax = #self._panel.mapLevel.tbSelectablePenguinCard
if self.nSelectIndex > 1 then
self.nSelectIndex = self.nSelectIndex - 1
else
self.nSelectIndex = nMax
local callback = function()
local nMax = #self._panel.mapLevel.tbSelectablePenguinCard
if self.nSelectIndex > 1 then
self.nSelectIndex = self.nSelectIndex - 1
else
self.nSelectIndex = nMax
end
self.mapCard = self._panel.mapLevel.tbSelectablePenguinCard[self.nSelectIndex]
self:Refresh()
end
self.mapCard = self._panel.mapLevel.tbSelectablePenguinCard[self.nSelectIndex]
self:Refresh()
switch(callback)
else
local nMax = #self.tbHasIndex
local nIndex = table.indexof(self.tbHasIndex, self.mapCard.nSlotIndex)
if 1 < nIndex then
nIndex = nIndex - 1
else
nIndex = nMax
local callback = function()
local nMax = #self.tbHasIndex
local nIndex = table.indexof(self.tbHasIndex, self.mapCard.nSlotIndex)
if 1 < nIndex then
nIndex = nIndex - 1
else
nIndex = nMax
end
self.mapCard = self._panel.mapLevel.tbPenguinCard[self.tbHasIndex[nIndex]]
self:Refresh()
end
self.mapCard = self._panel.mapLevel.tbPenguinCard[self.tbHasIndex[nIndex]]
self:Refresh()
switch(callback)
end
end
function PenguinCardInfoCtrl:OnBtnClick_Sale()
@@ -190,4 +234,10 @@ function PenguinCardInfoCtrl:OnBtnClick_Select()
end
self._panel.mapLevel:SelectPenguinCard(self.nSelectIndex)
end
function PenguinCardInfoCtrl:OnEvent_Select()
self:Close(true)
end
function PenguinCardInfoCtrl:OnEvent_Sale()
self:Close(false)
end
return PenguinCardInfoCtrl