miduo_client/Assets/ManagedResources/~Lua/Modules/Guild/CarDelay/GuildCarDelayMainPanel.lua

422 lines
18 KiB
Lua
Raw Normal View History

2020-06-23 18:36:24 +08:00
require("Base/BasePanel")
2020-05-09 13:31:21 +08:00
GuildCarDelayMainPanel = Inherit(BasePanel)
local this = GuildCarDelayMainPanel
local testLiveGO
local curIndex = 1
local orginLayer
local heroConfig = ConfigManager.GetConfig(ConfigName.HeroConfig)
local curMonsterId = 1
local curProgress = -1
local curMonsterIdConFig = {}
local TabBox = require("Modules/Common/TabBox")
2020-06-23 18:36:24 +08:00
local _TabData={ [1] = { default = "r_hero_xuanze_002", select = "r_hero_xuanze_001", name = Language[11032] },
[2] = { default = "r_hero_xuanze_002", select = "r_hero_xuanze_001", name = Language[11033] }, }
2020-05-09 13:31:21 +08:00
local _TabFontColor = { default = Color.New(130 / 255, 128 / 255, 120 / 255, 1),
select = Color.New(243 / 255, 235 / 255, 202 / 255, 1)}
this.timer = Timer.New()
2020-05-11 09:38:52 +08:00
local challengeNum = 0
local lootNum = 0
2020-05-09 13:31:21 +08:00
--初始化组件(用于子类重写)
function GuildCarDelayMainPanel:InitComponent()
this.live2dRoot = Util.GetGameObject(self.gameObject, "live2dRoot")
this.name = Util.GetGameObject(self.gameObject, "nameAndTime/name"):GetComponent("Text")
this.proImage = Util.GetGameObject(self.gameObject, "nameAndTime/proImage"):GetComponent("Image")
2020-05-11 09:38:52 +08:00
this.timeText = Util.GetGameObject(self.gameObject, "nameAndTime/timeGo/timeText"):GetComponent("Text")
2020-05-15 16:52:35 +08:00
this.timeText2 = Util.GetGameObject(self.gameObject, "nameAndTime/timeGo/timeText (1)"):GetComponent("Text")
2020-05-11 09:38:52 +08:00
this.timeNumText = Util.GetGameObject(self.gameObject, "nameAndTime/timeGo/timeNumText"):GetComponent("Text")
this.timeTextGo = Util.GetGameObject(self.gameObject, "nameAndTime/timeGo")
2020-05-09 13:31:21 +08:00
this.BackBtn = Util.GetGameObject(self.gameObject, "BackBtn")
this.rewardSortBtn = Util.GetGameObject(self.gameObject, "rewardSortBtn")
this.lootRecordBtn = Util.GetGameObject(self.gameObject, "lootRecordBtn")
this.HelpBtn = Util.GetGameObject(self.gameObject, "HelpBtn")
this.helpPosition=this.HelpBtn:GetComponent("RectTransform").localPosition
this.challengeBtn = Util.GetGameObject(self.gameObject, "challengeBtn")
2020-05-11 09:38:52 +08:00
this.challengeNum = Util.GetGameObject(self.gameObject, "challengeBtn/num/num"):GetComponent("Text")
2020-05-15 16:52:35 +08:00
this.challengeCDTimeNum = Util.GetGameObject(self.gameObject, "challengeBtn/timeNum/num"):GetComponent("Text")
this.challengeCDTimeNumGo = Util.GetGameObject(self.gameObject, "challengeBtn/timeNum")
2020-05-09 13:31:21 +08:00
this.lootBtn = Util.GetGameObject(self.gameObject, "lootBtn")
2020-05-11 09:38:52 +08:00
this.lootNum = Util.GetGameObject(self.gameObject, "lootBtn/num/num"):GetComponent("Text")
2020-05-15 16:52:35 +08:00
this.lootCDTimeNum = Util.GetGameObject(self.gameObject, "lootBtn/timeNum/num"):GetComponent("Text")
this.lootCDTimeNumGo = Util.GetGameObject(self.gameObject, "lootBtn/timeNum")
2020-05-09 13:31:21 +08:00
this.tabBox = Util.GetGameObject(self.gameObject, "TabBox")
this.TabCtrl = TabBox.New()
2020-05-11 09:38:52 +08:00
this.ScrollTitleRootName = Util.GetGameObject(self.gameObject, "RankList/ScrollTitleRoot/Name"):GetComponent("Text")
this.mySortNum = Util.GetGameObject(self.gameObject, "RankList/Record/SortNum")
this.myGuildName = Util.GetGameObject(self.gameObject, "RankList/Record/Rank0"):GetComponent("Text")
2020-05-09 13:31:21 +08:00
this.mySore = Util.GetGameObject(self.gameObject, "RankList/Record/Rank1"):GetComponent("Text")
this.RankListPre = Util.GetGameObject(self.gameObject, "RankList/ItemPre")
local v2 = Util.GetGameObject(self.gameObject, "RankList/ScrollParentView"):GetComponent("RectTransform").rect
this.ScrollView = SubUIManager.Open(SubUIConfig.ScrollCycleView, Util.GetGameObject(self.gameObject, "RankList/ScrollParentView").transform,
this.RankListPre, nil, Vector2.New(-v2.x*2, -v2.y*2), 1, 1, Vector2.New(50,8))
this.ScrollView.moveTween.MomentumAmount = 1
this.ScrollView.moveTween.Strength = 1
end
--绑定事件(用于子类重写)
function GuildCarDelayMainPanel:BindEvent()
Util.AddClick(this.BackBtn, function()
this:ClosePanel()
end)
--奖励排行
Util.AddClick(this.rewardSortBtn, function()
UIManager.OpenPanel(UIName.GuildCarDelayRewardSortPopup)
end)
--抢夺记录
Util.AddClick(this.lootRecordBtn, function()
NetManager.CarGrapRecordResponse(function (msg)
--for i = 1, #msg.carChallengeItem do
-- LogError("content "..msg.carChallengeItem[i].content)
--end
UIManager.OpenPanel(UIName.GuildCarDelayLootRecordPopup,msg)
end)
end)
--挑战
Util.AddClick(this.challengeBtn, function()
2020-05-25 19:16:23 +08:00
if curProgress ~= 1 then
2020-06-23 18:36:24 +08:00
PopupTipPanel.ShowTip(Language[11034])
2020-05-25 19:16:23 +08:00
return
end
2020-05-11 09:38:52 +08:00
if challengeNum <= 0 then
2020-06-23 18:36:24 +08:00
PopupTipPanel.ShowTip(Language[11035])
2020-05-11 09:38:52 +08:00
return
end
2020-05-15 16:52:35 +08:00
if GuildCarDelayManager.ChallengeCdTime > 0 then
2020-06-23 18:36:24 +08:00
PopupTipPanel.ShowTip(this.TimeStampToDateString2(GuildCarDelayManager.ChallengeCdTime) .. Language[11036])
2020-05-15 16:52:35 +08:00
return
end
2020-05-09 13:31:21 +08:00
if curProgress == 1 then
UIManager.OpenPanel(UIName.FormationPanelV2, FORMATION_TYPE.GUILD_CAR_DELEAY)
end
end)
--抢夺
Util.AddClick(this.lootBtn, function()
2020-05-25 19:16:23 +08:00
if curProgress ~= 3 then
2020-06-23 18:36:24 +08:00
PopupTipPanel.ShowTip(Language[11037])
2020-05-25 19:16:23 +08:00
return
end
2020-05-11 09:38:52 +08:00
if lootNum <= 0 then
2020-06-23 18:36:24 +08:00
PopupTipPanel.ShowTip(Language[11038])
2020-05-11 09:38:52 +08:00
return
end
2020-05-15 16:52:35 +08:00
if GuildCarDelayManager.LootCdTime > 0 then
2020-06-23 18:36:24 +08:00
PopupTipPanel.ShowTip(this.TimeStampToDateString2(GuildCarDelayManager.LootCdTime) .. Language[11039])
2020-05-15 16:52:35 +08:00
return
end
2020-05-09 13:31:21 +08:00
if curProgress == 3 then
2020-05-15 16:52:35 +08:00
UIManager.OpenPanel(UIName.GuildCarDelayLootPopup)
2020-05-09 13:31:21 +08:00
end
end)
--帮助按钮
Util.AddClick(this.HelpBtn, function()
2020-06-03 19:09:01 +08:00
UIManager.OpenPanel(UIName.HelpPopup,HELP_TYPE.GuildCarDelay,this.helpPosition.x,this.helpPosition.y)
2020-05-09 13:31:21 +08:00
end)
--boss详情
Util.AddClick(this.live2dRoot, function()
UIManager.OpenPanel(UIName.GuildCarDelayFindBossPopup)
end)
end
--添加事件监听(用于子类重写)
function GuildCarDelayMainPanel:AddListener()
2020-05-15 16:52:35 +08:00
Game.GlobalEvent:AddEvent(GameEvent.Guild.CarDelayProgressChanged,this.IndicationRefreshPanel)
Game.GlobalEvent:AddEvent(GameEvent.Guild.CarDelayChallengeCdStar,this.CarDelayChallengeCdStar)
Game.GlobalEvent:AddEvent(GameEvent.Guild.CarDelayLootCdStar,this.CarDelayLootCdStar)
2020-05-09 13:31:21 +08:00
end
--移除事件监听(用于子类重写)
function GuildCarDelayMainPanel:RemoveListener()
2020-05-15 16:52:35 +08:00
Game.GlobalEvent:RemoveEvent(GameEvent.Guild.CarDelayProgressChanged, this.IndicationRefreshPanel)
Game.GlobalEvent:RemoveEvent(GameEvent.Guild.CarDelayChallengeCdStar, this.CarDelayChallengeCdStar)
Game.GlobalEvent:RemoveEvent(GameEvent.Guild.CarDelayLootCdStar, this.CarDelayLootCdStar)
2020-05-09 13:31:21 +08:00
end
--界面打开时调用(用于子类重写)
function GuildCarDelayMainPanel:OnOpen(_curIndex)
curIndex = _curIndex or 1
end
--界面打开或者重新打开后,界面刷新时调用(用于子类重写)
function GuildCarDelayMainPanel:OnShow()
this.TabCtrl:SetTabAdapter(this.TabAdapter)
this.TabCtrl:SetChangeTabCallBack(this.SwitchView)
this.TabCtrl:Init(this.tabBox, _TabData, curIndex)
this.ShowTitleAllData()
2020-05-15 16:52:35 +08:00
this.CarDelayChallengeCdStar()
this.CarDelayLootCdStar()
2020-05-25 19:16:23 +08:00
if GuildCarDelayManager.progress == GuildCarDelayProType.Challenge then
this.CarDelayChallengeCdStar()
elseif GuildCarDelayManager.progress == GuildCarDelayProType.Loot then
this.CarDelayLootCdStar()
end
this.RefrePanelRedPoint()
2020-06-03 19:09:01 +08:00
-- 音效
SoundManager.PlayMusic(SoundConfig.BGM_Carbon)
2020-05-25 19:16:23 +08:00
end
function this.IndicationRefreshPanel()
2020-05-15 16:52:35 +08:00
this.SwitchView()
this.ShowTitleAllData()
2020-05-25 19:16:23 +08:00
this.CarDelayChallengeCdStar()
this.CarDelayLootCdStar()
if GuildCarDelayManager.progress == GuildCarDelayProType.Challenge then
this.CarDelayChallengeCdStar()
elseif GuildCarDelayManager.progress == GuildCarDelayProType.Loot then
this.CarDelayLootCdStar()
end
this.RefrePanelRedPoint()
2020-05-15 16:52:35 +08:00
end
2020-05-09 13:31:21 +08:00
function GuildCarDelayMainPanel:OnSortingOrderChange()
--self.live2dRoot:GetComponent("Canvas").sortingOrder = self.sortingOrder
orginLayer = self.sortingOrder
end
function this.ShowTitleAllData()
curMonsterId = GuildCarDelayManager.bossIndexId
curMonsterIdConFig = ConfigManager.GetConfigData(ConfigName.WorldBossConfig,curMonsterId)
this.name.text = heroConfig[curMonsterIdConFig.Boss].ReadingName
this.proImage.sprite=Util.LoadSprite(GetProStrImageByProNum(heroConfig[curMonsterIdConFig.Boss].PropertyName))
curProgress = GuildCarDelayManager.progress
Util.SetGray(this.challengeBtn,curProgress ~= 1)
2020-05-11 09:38:52 +08:00
challengeNum = PrivilegeManager.GetPrivilegeRemainValue(PRIVILEGE_TYPE.GUILD_CAR_DELEAY_CHALLENGE)
lootNum = PrivilegeManager.GetPrivilegeRemainValue(PRIVILEGE_TYPE.GUILD_CAR_DELEAY_LOOT)
this.challengeNum.text = challengeNum
this.lootNum.text = lootNum
2020-05-09 13:31:21 +08:00
Util.SetGray(this.lootBtn,curProgress ~= 3)
local timeText = ""
2020-05-15 16:52:35 +08:00
this.timeNumText.text = ""
this.timeText.text = ""
this.timeText2.text = ""
2020-06-12 18:04:22 +08:00
if curProgress == -5 then
--LogGreen("GuildCarDelayManager.battleStartTime "..GuildCarDelayManager.battleStartTime)
--if GuildCarDelayManager.battleStartTime < Today_N_OClockTimeStamp(5) + 86400 then
if this.timer then
this.timer:Stop()
this.timer = nil
2020-05-15 16:52:35 +08:00
end
2020-06-12 18:04:22 +08:00
this.timeTextGo:SetActive(true)
2020-06-23 18:36:24 +08:00
this.timeText2.text = Language[11040]
2020-06-12 18:04:22 +08:00
--else
elseif curProgress == -1 then
2020-06-23 18:36:24 +08:00
timeText = Language[11041]
2020-06-12 18:04:22 +08:00
this.RemainTimeDown(this.timeTextGo,this.timeText,this.timeNumText,GuildCarDelayManager.battleStartTime - GetTimeStamp(),timeText)
--end
2020-05-09 13:31:21 +08:00
elseif curProgress == 1 then
2020-06-23 18:36:24 +08:00
timeText = Language[11042]
2020-05-11 09:38:52 +08:00
this.RemainTimeDown(this.timeTextGo,this.timeText,this.timeNumText,GuildCarDelayManager.endTime - GetTimeStamp(),timeText)
2020-05-09 13:31:21 +08:00
elseif curProgress == 2 then
2020-06-23 18:36:24 +08:00
timeText = Language[11043]
2020-05-11 09:38:52 +08:00
this.RemainTimeDown(this.timeTextGo,this.timeText,this.timeNumText,GuildCarDelayManager.grabStartTime - GetTimeStamp(),timeText)
2020-05-09 13:31:21 +08:00
elseif curProgress == 3 then
2020-06-23 18:36:24 +08:00
timeText = Language[11044]
2020-05-11 09:38:52 +08:00
this.RemainTimeDown(this.timeTextGo,this.timeText,this.timeNumText,GuildCarDelayManager.endTime - GetTimeStamp(),timeText)
2020-05-09 13:31:21 +08:00
end
2020-06-12 18:04:22 +08:00
if testLiveGO then
poolManager:UnLoadLive(GetResourcePath(heroConfig[curMonsterIdConFig.Boss].Live), testLiveGO)
end
testLiveGO = poolManager:LoadLive(GetResourcePath(heroConfig[curMonsterIdConFig.Boss].Live), this.live2dRoot.transform, Vector3.one*heroConfig[curMonsterIdConFig.Boss].Scale, Vector3.zero)
this.RefrePanelRedPoint()
2020-05-11 09:38:52 +08:00
end
2020-05-09 13:31:21 +08:00
-- tab节点显示自定义
function this.TabAdapter(tab, index, status)
local tabLab = Util.GetGameObject(tab, "Text")
Util.GetGameObject(tab,"Image"):GetComponent("Image").sprite = Util.LoadSprite(_TabData[index][status])
tabLab:GetComponent("Text").text = _TabData[index].name
tabLab:GetComponent("Text").color = _TabFontColor[status]
end
--切换视图
function this.SwitchView(index)
curIndex = index or curIndex
if curIndex == 2 then
NetManager.RequestRankInfo(RANK_TYPE.GUILD_CAR_DELEAY_SINGLE, function(msg)
this.SetRankDataShow(msg)
--repeated UserRank ranks = 1;
--optional RankInfo myRankInfo = 2;
2020-05-25 19:16:23 +08:00
this.myGuildName.text = PlayerManager.nickName
2020-05-09 13:31:21 +08:00
end)
elseif curIndex == 1 then
NetManager.RequestRankInfo(RANK_TYPE.GUILD_CAR_DELEAY_GUILD, function(msg)
this.SetRankDataShow(msg)
2020-05-25 19:16:23 +08:00
this.myGuildName.text = MyGuildManager.MyGuildInfo.name
2020-05-09 13:31:21 +08:00
end)
end
end
function this.SetRankDataShow(msg)
2020-05-11 09:38:52 +08:00
if msg.myRankInfo.rank > 0 then
this.mySortNum:SetActive(true)
local sortNumTabs = {}
for i = 1, 4 do
sortNumTabs[i] = Util.GetGameObject(this.mySortNum, "SortNum ("..i..")")
sortNumTabs[i]:SetActive(false)
end
if msg.myRankInfo.rank < 4 then
sortNumTabs[msg.myRankInfo.rank]:SetActive(true)
else
sortNumTabs[4]:SetActive(true)
Util.GetGameObject(sortNumTabs[4], "TitleText"):GetComponent("Text").text = msg.myRankInfo.rank
end
else
this.mySortNum:SetActive(false)
end
2020-06-23 18:36:24 +08:00
this.mySore.text = msg.myRankInfo.param1 > 0 and PrintWanNum3(msg.myRankInfo.param1) or Language[10148]
2020-05-09 13:31:21 +08:00
this.ScrollView:SetData(msg.ranks, function (index, go)
this.SingleRankDataShow(go, msg.ranks[index])
end)
end
function this.SingleRankDataShow(go,userRank)
local sortNumTabs = {}
for i = 1, 4 do
sortNumTabs[i] = Util.GetGameObject(go, "SortNum/SortNum ("..i..")")
sortNumTabs[i]:SetActive(false)
end
if userRank.rankInfo.rank < 4 then
sortNumTabs[userRank.rankInfo.rank]:SetActive(true)
else
sortNumTabs[4]:SetActive(true)
Util.GetGameObject(sortNumTabs[4], "TitleText"):GetComponent("Text").text = userRank.rankInfo.rank
end
if curIndex == 2 then
Util.GetGameObject(go, "Value0"):GetComponent("Text").text = userRank.userName
2020-06-23 18:36:24 +08:00
this.ScrollTitleRootName.text = Language[11045]
2020-05-09 13:31:21 +08:00
elseif curIndex == 1 then
2020-06-23 18:36:24 +08:00
this.ScrollTitleRootName.text = Language[11046]
2020-05-11 09:38:52 +08:00
Util.GetGameObject(go, "Value0"):GetComponent("Text").text = userRank.guildName.."("..userRank.rankInfo.param2..")"
2020-05-09 13:31:21 +08:00
end
2020-05-25 19:16:23 +08:00
Util.GetGameObject(go, "Value1"):GetComponent("Text").text = PrintWanNum3(userRank.rankInfo.param1)
2020-05-09 13:31:21 +08:00
end
--刷新倒计时显示
2020-05-11 09:38:52 +08:00
function this.RemainTimeDown(_timeTextExpertgo,_timeTextExpert,timeNumText,timeDown,timeText)
2020-05-09 13:31:21 +08:00
if timeDown > 0 then
if _timeTextExpertgo then
_timeTextExpertgo:SetActive(true)
end
2020-05-15 16:52:35 +08:00
if _timeTextExpert then
2020-05-11 09:38:52 +08:00
_timeTextExpert.text = timeText
2020-05-15 16:52:35 +08:00
end
if timeNumText then
2020-05-11 09:38:52 +08:00
timeNumText.text = this.TimeStampToDateString(timeDown)
2020-05-09 13:31:21 +08:00
end
if this.timer then
this.timer:Stop()
this.timer = nil
end
this.timer = Timer.New(function()
2020-05-15 16:52:35 +08:00
if _timeTextExpert then
2020-05-11 09:38:52 +08:00
_timeTextExpert.text = timeText
2020-05-15 16:52:35 +08:00
end
if timeNumText then
2020-05-11 09:38:52 +08:00
timeNumText.text = this.TimeStampToDateString(timeDown)
2020-05-09 13:31:21 +08:00
end
if timeDown < 0 then
if _timeTextExpertgo then
_timeTextExpertgo:SetActive(false)
end
this.timer:Stop()
this.timer = nil
end
timeDown = timeDown - 1
end, 1, -1, true)
this.timer:Start()
else
if _timeTextExpertgo then
_timeTextExpertgo:SetActive(false)
end
end
end
function this.TimeStampToDateString(second)
local day = math.floor(second / (24 * 3600))
local minute = math.floor(second / 60) % 60
local sec = second % 60
local hour = math.floor(math.floor(second - day * 24 * 3600 - sec - minute * 60) / 3600)
return string.format("%02d:%02d:%02d", hour, minute, sec)
end
2020-05-15 16:52:35 +08:00
--挑战cd
function this.CarDelayChallengeCdStar()
this.lootCDTimeNumGo:SetActive(false)
2020-05-25 19:16:23 +08:00
this.challengeCDTimeNumGo:SetActive(false)
if challengeNum > 0 then
this.RemainTimeDown2(this.challengeCDTimeNumGo,this.challengeCDTimeNum,GuildCarDelayManager.ChallengeCdTime)
end
2020-05-15 16:52:35 +08:00
end
--抢夺cd
function this.CarDelayLootCdStar()
2020-05-25 19:16:23 +08:00
this.lootCDTimeNumGo:SetActive(false)
2020-05-15 16:52:35 +08:00
this.challengeCDTimeNumGo:SetActive(false)
2020-05-25 19:16:23 +08:00
if lootNum > 0 then
this.RemainTimeDown2(this.lootCDTimeNumGo,this.lootCDTimeNum,GuildCarDelayManager.LootCdTime)
end
2020-05-15 16:52:35 +08:00
end
this.timer2 = Timer.New()
--刷新倒计时显示
function this.RemainTimeDown2(_timeTextExpertgo,timeNumText)
local timeDown = 0
if GuildCarDelayManager.progress == GuildCarDelayProType.Challenge then
timeDown = GuildCarDelayManager.ChallengeCdTime
elseif GuildCarDelayManager.progress == GuildCarDelayProType.Loot then
timeDown = GuildCarDelayManager.LootCdTime
end
if timeDown > 0 then
if _timeTextExpertgo then
_timeTextExpertgo:SetActive(true)
end
if timeNumText then
timeNumText.text = this.TimeStampToDateString2(timeDown)
end
if this.timer2 then
this.timer2:Stop()
this.timer2 = nil
end
this.timer2 = Timer.New(function()
if timeNumText then
timeNumText.text = this.TimeStampToDateString2(timeDown)
end
if timeDown < 0 then
if _timeTextExpertgo then
_timeTextExpertgo:SetActive(false)
end
this.timer2:Stop()
this.timer2 = nil
end
if GuildCarDelayManager.progress == GuildCarDelayProType.Challenge then
timeDown = GuildCarDelayManager.ChallengeCdTime
elseif GuildCarDelayManager.progress == GuildCarDelayProType.Loot then
timeDown = GuildCarDelayManager.LootCdTime
end
end, 1, -1, true)
this.timer2:Start()
else
if _timeTextExpertgo then
_timeTextExpertgo:SetActive(false)
end
end
end
function this.TimeStampToDateString2(second)
local minute = math.floor(second / 60) % 60
local sec = second % 60
return string.format("%02d:%02d", minute, sec)
end
2020-05-09 13:31:21 +08:00
--界面关闭时调用(用于子类重写)
function GuildCarDelayMainPanel:OnClose()
if this.timer then
this.timer:Stop()
this.timer = nil
end
2020-05-15 16:52:35 +08:00
if this.timer2 then
this.timer2:Stop()
this.timer2 = nil
end
2020-05-09 13:31:21 +08:00
poolManager:UnLoadLive(GetResourcePath(heroConfig[curMonsterIdConFig.Boss].Live), testLiveGO)
2020-05-11 09:38:52 +08:00
testLiveGO = nil
2020-05-09 13:31:21 +08:00
end
2020-05-25 19:16:23 +08:00
function this.RefrePanelRedPoint()
Util.GetGameObject(this.challengeBtn,"redPoint"):SetActive(GuildCarDelayManager.RefreshRedPoint(GuildCarDelayProType.Challenge))
Util.GetGameObject(this.lootBtn,"redPoint"):SetActive(GuildCarDelayManager.RefreshRedPoint(GuildCarDelayProType.Loot))
2020-06-12 18:04:22 +08:00
Util.SetGray(Util.GetGameObject(this.challengeBtn,"redPoint"),false)
Util.SetGray(Util.GetGameObject(this.lootBtn,"redPoint"),false)
2020-05-25 19:16:23 +08:00
end
2020-05-09 13:31:21 +08:00
--界面销毁时调用(用于子类重写)
function GuildCarDelayMainPanel:OnDestroy()
end
return GuildCarDelayMainPanel