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
+40
View File
@@ -23,6 +23,14 @@ MallPopupCtrl._mapNodeConfig = {
ShopDetail = {
sNodeName = "---ShopDetail---",
sCtrlName = "Game.UI.Mall.MallShopDetailCtrl"
},
FurnitureDetail = {
sNodeName = "---FurnitureDetail---",
sCtrlName = "Game.UI.Mall.MallFurnitureDetailCtrl"
},
FurnitureSet = {
sNodeName = "---FurnitureSet---",
sCtrlName = "Game.UI.Mall.MallFurnitureSetCtrl"
}
}
MallPopupCtrl._mapEventConfig = {
@@ -37,6 +45,13 @@ function MallPopupCtrl:Open()
elseif self.nType == AllEnum.MallToggle.Shop then
self._mapNode.ShopDetail:Refresh(self.mapData, self._mapNode.TopBar)
self._mapNode.TopBar:CreateCoin(self.tbCoin, true)
elseif self.nType == AllEnum.MallToggle.Furniture then
if self.nSubType == GameEnum.MallItemSubType.FurnitureSet then
self._mapNode.FurnitureSet:Refresh(self.mapData)
else
self._mapNode.FurnitureDetail:Refresh(self.mapData)
end
self._mapNode.TopBar:CreateCoin(self.tbCoin, true)
end
end
function MallPopupCtrl:ClosePackageDetail()
@@ -53,6 +68,20 @@ function MallPopupCtrl:CloseShopDetail()
self._mapNode.ShopDetail:PlayOutAni()
self:CloseOther()
end
function MallPopupCtrl:CloseFurnitureDetail()
if self._mapNode.FurnitureDetail.gameObject.activeSelf == false then
return
end
self._mapNode.FurnitureDetail:PlayOutAni()
self:CloseOther()
end
function MallPopupCtrl:CloseFurnitureSet()
if self._mapNode.FurnitureSet.gameObject.activeSelf == false then
return
end
self._mapNode.FurnitureSet:PlayOutAni()
self:CloseOther()
end
function MallPopupCtrl:CloseOther()
self._mapNode.TopBar.gameObject:SetActive(false)
self._mapNode.aniBlur:SetTrigger("tOut")
@@ -64,12 +93,17 @@ end
function MallPopupCtrl:Awake()
self._mapNode.PackageDetail.gameObject:SetActive(false)
self._mapNode.ShopDetail.gameObject:SetActive(false)
self._mapNode.FurnitureDetail.gameObject:SetActive(false)
self._mapNode.FurnitureSet.gameObject:SetActive(false)
local tbParam = self:GetPanelParam()
if type(tbParam) == "table" then
self.nType = tbParam[1]
self.mapData = tbParam[2]
self.tbCoin = tbParam[3]
end
if self.nType == AllEnum.MallToggle.Furniture and self.mapData ~= nil then
self.nSubType = PlayerData.Mall:GetPackageSubType(self.mapData.sId)
end
end
function MallPopupCtrl:OnEnable()
self:Open()
@@ -83,6 +117,12 @@ function MallPopupCtrl:OnBtnClick_CloseDetail()
self:ClosePackageDetail()
elseif self.nType == AllEnum.MallToggle.Shop then
self:CloseShopDetail()
elseif self.nType == AllEnum.MallToggle.Furniture then
if self.nSubType == GameEnum.MallItemSubType.FurnitureSet then
self:CloseFurnitureSet()
else
self:CloseFurnitureDetail()
end
end
end
return MallPopupCtrl