【公会红点】报错修改
parent
154cab45a2
commit
d19325ce7b
|
@ -10,54 +10,25 @@ end
|
|||
|
||||
-- 检查公会红包红点
|
||||
function this.CheckGuildRedPacketRedPoint()
|
||||
-- Log("<color=yellow>"..tostring(this.isCheck).."</color>")
|
||||
-- if this.isCheck then
|
||||
-- return this.isCheck
|
||||
-- else
|
||||
-- return false
|
||||
-- end
|
||||
local list=MyGuildManager.GetMyGuidRedPackage()
|
||||
LogError("检测发红包红点111")
|
||||
if list and LengthOfTable(list)>0 then
|
||||
LogError("检测发红包红点")
|
||||
for key, value in pairs(list) do
|
||||
if value and value.num and value.num>0 then
|
||||
LogError("444444444444")
|
||||
return true
|
||||
end
|
||||
end
|
||||
end
|
||||
LogError("5555555555")
|
||||
return false
|
||||
end
|
||||
function this.CheckIsCanGetPackage()
|
||||
|
||||
-- NetManager.GetAllRedPacketResponse(function(msg)
|
||||
|
||||
-- -- local data={}
|
||||
-- -- for i,v in ipairs(msg.info) do
|
||||
-- -- table.insert(data,v)
|
||||
-- -- end
|
||||
|
||||
-- local dataLength=#msg.info
|
||||
-- LogError("+++++++++++++++ "..dataLength )
|
||||
-- if dataLength>0 then
|
||||
-- return true
|
||||
-- end
|
||||
|
||||
-- return false
|
||||
-- end)
|
||||
LogError("现在红包得数量:"..MyGuildManager.GetRedPackageNum())
|
||||
if MyGuildManager.GetRedPackageNum()>0 then
|
||||
--Game.GlobalEvent:DispatchEvent(GameEvent.Chat.OnRedPackageNumChanged,true)
|
||||
local aaa=Util.GetGameObject(UIManager.uiNode,"GuildMainCityPanel/ChatTipView/Image")
|
||||
local bbb=Util.GetGameObject(UIManager.uiNode,"MainPanel/ChatTipView/Image")
|
||||
if aaa then
|
||||
LogError("显示红包")
|
||||
aaa.gameObject:SetActive(true)
|
||||
end
|
||||
if bbb then
|
||||
LogError("显示红包")
|
||||
bbb.gameObject:SetActive(true)
|
||||
end
|
||||
return true
|
||||
|
@ -66,11 +37,9 @@ function this.CheckIsCanGetPackage()
|
|||
local aaa=Util.GetGameObject(UIManager.uiNode,"GuildMainCityPanel/ChatTipView/Image")
|
||||
local bbb=Util.GetGameObject(UIManager.uiNode,"MainPanel/ChatTipView/Image")
|
||||
if aaa then
|
||||
LogError("不显示红包")
|
||||
aaa.gameObject:SetActive(false)
|
||||
end
|
||||
if bbb then
|
||||
LogError("bu显示红包")
|
||||
bbb.gameObject:SetActive(false)
|
||||
end
|
||||
return false
|
||||
|
|
|
@ -455,7 +455,7 @@ function this.RegisterRedCheckFunc()
|
|||
RPData:AddCheckFunc(RedPointType.Guild_Skill, GuildSkillManager.RefreshAllGuildSkillRedPoint)
|
||||
-- 公会红包
|
||||
--RPData:AddCheckFunc(RedPointType.Guild_RedPacket,GuildRedPacketManager.CheckGuildRedPacketRedPoint)
|
||||
RPData:AddCheckFunc(RedPointType.Guid_SendPackage,GuildRedPacketManager.CheckGuildRedPacketRedPoint)
|
||||
RPData:AddCheckFunc(RedPointType.Guid_SendPackage,GuildRedPacketManager.CheckGuildRedPacketRedPoint,FUNCTION_OPEN_TYPE.GUILD)
|
||||
RPData:AddCheckFunc(RedPointType.Guid_GetPackage,GuildRedPacketManager.CheckIsCanGetPackage)
|
||||
--公会祭祀
|
||||
RPData:AddCheckFunc(RedPointType.Guild_Fete,MyGuildManager.CheckGuildFeteRedPoint)
|
||||
|
|
|
@ -716,7 +716,10 @@ function SingleFightPlayerView:private_BloodBlood(objPos, index, iconType, isMon
|
|||
Util.GetGameObject(go, "anim/anim"):GetComponent("Text").text = iconAction.DecodeHurt(hurtNum, isCritical, showType)
|
||||
go:SetActive(true)
|
||||
|
||||
if self.hurtNumTimer then
|
||||
self.hurtNumTimer:Stop()
|
||||
self.hurtNumTimer = nil
|
||||
end
|
||||
self.hurtNumTimer = Timer.New(function()
|
||||
if go then
|
||||
go:SetActive(false)
|
||||
|
|
Loading…
Reference in New Issue