[福利红包]=====红包红点修改
parent
7118f60b9c
commit
6158f0916a
|
|
@ -177,7 +177,6 @@ function MyGuildManager.ReuqsetRedPackage(func)
|
|||
NetManager.GetAllRedPacketResponse(function(msg)
|
||||
local num=0
|
||||
local SpecialConfig=ConfigManager.GetConfigData(ConfigName.SpecialConfig,115)
|
||||
LogError("--------------------")
|
||||
for i = 1, #msg.info do
|
||||
local config=ConfigManager.GetConfigData(ConfigName.GuildRedPackConfig,msg.info[i].redType)
|
||||
if config and msg.info[i].isGet==0 and (config.Num-msg.info[i].getCount)>0 then
|
||||
|
|
@ -186,12 +185,10 @@ function MyGuildManager.ReuqsetRedPackage(func)
|
|||
end
|
||||
end
|
||||
end
|
||||
LogError("*************************")
|
||||
this.PackageNum=num
|
||||
CheckRedPointStatus(RedPointType.Guid_GetPackage)
|
||||
CheckRedPointStatus(RedPointType.Guid_SendPackage)
|
||||
--CheckRedPointStatus(RedPointType.Guild_RedPacket)
|
||||
LogError("///////////////////")
|
||||
if func then
|
||||
func(msg)
|
||||
end
|
||||
|
|
|
|||
|
|
@ -118,6 +118,10 @@ function RedPacketPanel:OnClose()
|
|||
this.contents[i].view:OnClose()
|
||||
end
|
||||
ClearRedPointObject(RedPointType.Guild_RedPacket,this.redPoint)
|
||||
if redPointList[2] and redPointList[3] then
|
||||
ClearRedPointObject(RedPointType.Guid_SendPackage, redPointList[2])
|
||||
ClearRedPointObject(RedPointType.Guid_GetPackage, redPointList[3])
|
||||
end
|
||||
end
|
||||
|
||||
--界面销毁时调用(用于子类重写)
|
||||
|
|
@ -126,6 +130,7 @@ function RedPacketPanel:OnDestroy()
|
|||
this.contents[i].view:OnDestroy()
|
||||
this.spLoader:Destroy()
|
||||
end
|
||||
redPointList=nil
|
||||
end
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue