红包红点显示修改
parent
9b336aeda9
commit
d95768226b
|
@ -1,4 +1,4 @@
|
|||
MyGuildManager = {}
|
||||
MyGuildManager = {}
|
||||
local this = MyGuildManager
|
||||
local guildSacrificeRewardConfig=ConfigManager.GetConfig(ConfigName.GuildSacrificeRewardConfig)
|
||||
local guildHelpConfig=ConfigManager.GetConfig(ConfigName.GuildHelpConfig)
|
||||
|
@ -185,6 +185,7 @@ function MyGuildManager.ReuqsetRedPackage(func)
|
|||
end
|
||||
end
|
||||
this.PackageNum=num
|
||||
CheckRedPointStatus(RedPointType.Guid_GetPackage)
|
||||
if func then
|
||||
func(msg)
|
||||
end
|
||||
|
|
|
@ -159,6 +159,7 @@ end
|
|||
|
||||
-- 关闭View
|
||||
function this.CloseView(lastIndex)
|
||||
CheckRedPointStatus(RedPointType.Guild_RedPacket)
|
||||
this.contents[lastIndex].view:OnClose()
|
||||
end
|
||||
|
||||
|
|
|
@ -100,9 +100,7 @@ function this:InitGetView()
|
|||
if value.redType>3 then
|
||||
PlayerManager.SettDailyRedPackageTime(PlayerManager.dailyRedPack+1)
|
||||
end
|
||||
MyGuildManager.ReuqsetRedPackage(function()
|
||||
CheckRedPointStatus(RedPointType.Guid_GetPackage)
|
||||
end)
|
||||
MyGuildManager.ReuqsetRedPackage()
|
||||
PopupTipPanel.ShowTip(string.format(Language[11046],itemName,count))
|
||||
else--抢红包失败
|
||||
LogError(Language[11047])
|
||||
|
|
|
@ -115,8 +115,10 @@ function this:ShowItemInfo(go,data)
|
|||
this:InitView()
|
||||
--刷新发送福利红包按钮红点
|
||||
CheckRedPointStatus(RedPointType.Guid_SendPackage)
|
||||
MyGuildManager.ReuqsetRedPackage()
|
||||
MyGuildManager.ReuqsetRedPackage(function()
|
||||
CheckRedPointStatus(RedPointType.Guid_GetPackage)
|
||||
end)
|
||||
|
||||
--发送公会信息
|
||||
local redpack=ConfigManager.GetConfigData(ConfigName.GuildRedPackConfig,data.config.Id)
|
||||
if not PlayerManager.familyId then return end
|
||||
|
|
Loading…
Reference in New Issue