红包红点显示修改

dev_chengFeng
wangzhenxing 2021-05-21 18:18:53 +08:00
parent 9b336aeda9
commit d95768226b
4 changed files with 7 additions and 5 deletions

View File

@ -1,4 +1,4 @@
MyGuildManager = {} MyGuildManager = {}
local this = MyGuildManager local this = MyGuildManager
local guildSacrificeRewardConfig=ConfigManager.GetConfig(ConfigName.GuildSacrificeRewardConfig) local guildSacrificeRewardConfig=ConfigManager.GetConfig(ConfigName.GuildSacrificeRewardConfig)
local guildHelpConfig=ConfigManager.GetConfig(ConfigName.GuildHelpConfig) local guildHelpConfig=ConfigManager.GetConfig(ConfigName.GuildHelpConfig)
@ -185,6 +185,7 @@ function MyGuildManager.ReuqsetRedPackage(func)
end end
end end
this.PackageNum=num this.PackageNum=num
CheckRedPointStatus(RedPointType.Guid_GetPackage)
if func then if func then
func(msg) func(msg)
end end

View File

@ -159,6 +159,7 @@ end
-- 关闭View -- 关闭View
function this.CloseView(lastIndex) function this.CloseView(lastIndex)
CheckRedPointStatus(RedPointType.Guild_RedPacket)
this.contents[lastIndex].view:OnClose() this.contents[lastIndex].view:OnClose()
end end

View File

@ -100,9 +100,7 @@ function this:InitGetView()
if value.redType>3 then if value.redType>3 then
PlayerManager.SettDailyRedPackageTime(PlayerManager.dailyRedPack+1) PlayerManager.SettDailyRedPackageTime(PlayerManager.dailyRedPack+1)
end end
MyGuildManager.ReuqsetRedPackage(function() MyGuildManager.ReuqsetRedPackage()
CheckRedPointStatus(RedPointType.Guid_GetPackage)
end)
PopupTipPanel.ShowTip(string.format(Language[11046],itemName,count)) PopupTipPanel.ShowTip(string.format(Language[11046],itemName,count))
else--抢红包失败 else--抢红包失败
LogError(Language[11047]) LogError(Language[11047])

View File

@ -115,8 +115,10 @@ function this:ShowItemInfo(go,data)
this:InitView() this:InitView()
--刷新发送福利红包按钮红点 --刷新发送福利红包按钮红点
CheckRedPointStatus(RedPointType.Guid_SendPackage) CheckRedPointStatus(RedPointType.Guid_SendPackage)
MyGuildManager.ReuqsetRedPackage() MyGuildManager.ReuqsetRedPackage(function()
CheckRedPointStatus(RedPointType.Guid_GetPackage) CheckRedPointStatus(RedPointType.Guid_GetPackage)
end)
--发送公会信息 --发送公会信息
local redpack=ConfigManager.GetConfigData(ConfigName.GuildRedPackConfig,data.config.Id) local redpack=ConfigManager.GetConfigData(ConfigName.GuildRedPackConfig,data.config.Id)
if not PlayerManager.familyId then return end if not PlayerManager.familyId then return end