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
@@ -0,0 +1,35 @@
local StarTowerTokenBuyPanel = class("StarTowerTokenBuyPanel", BasePanel)
StarTowerTokenBuyPanel._bIsMainPanel = false
StarTowerTokenBuyPanel._tbDefine = {
{
sPrefabPath = "StarTowerFastBattle/StarTowerTokenBuyPanel.prefab",
sCtrlName = "Game.UI.StarTowerFastBattle.StarTowerTokenBuyCtrl"
}
}
function StarTowerTokenBuyPanel:Awake()
self.nPanelType = self._tbParam[1] or AllEnum.TokenBuyPanelType.Main
self.mapItemData = self._tbParam[2]
self.bBlur = self._tbParam[3]
self.nMaxToken = ConfigTable.GetConfigNumber("TowerVitaEnergyMax")
self.callback = self._tbParam[4]
end
function StarTowerTokenBuyPanel:JumpToRecharge()
if ConfigTable.GetConfigNumber("IsShowComBtn") ~= 1 then
EventManager.Hit(EventId.OpenMessageBox, ConfigTable.GetUIText("Function_NotAvailable"))
return
end
if self.callback ~= nil then
self.callback()
end
EventManager.Hit(EventId.ClosePanel, PanelId.StarTowerTokenBuyPanel)
EventManager.Hit(EventId.ClosePanel, PanelId.StarTowerAutoDecisionSettingPanel)
local func_OpenRecharge = function()
EventManager.Hit(EventId.OpenPanel, PanelId.Mall, AllEnum.MallToggle.Gem)
end
if PanelManager.GetCurPanelId() == PanelId.StarTowerFastBattle then
EventManager.Hit("StarTowerFastBattleLeaveForRecharge", func_OpenRecharge)
else
func_OpenRecharge()
end
end
return StarTowerTokenBuyPanel