【公会红点】报错修改
parent
154cab45a2
commit
d19325ce7b
|
@ -10,54 +10,25 @@ end
|
||||||
|
|
||||||
-- 检查公会红包红点
|
-- 检查公会红包红点
|
||||||
function this.CheckGuildRedPacketRedPoint()
|
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()
|
local list=MyGuildManager.GetMyGuidRedPackage()
|
||||||
LogError("检测发红包红点111")
|
|
||||||
if list and LengthOfTable(list)>0 then
|
if list and LengthOfTable(list)>0 then
|
||||||
LogError("检测发红包红点")
|
|
||||||
for key, value in pairs(list) do
|
for key, value in pairs(list) do
|
||||||
if value and value.num and value.num>0 then
|
if value and value.num and value.num>0 then
|
||||||
LogError("444444444444")
|
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
LogError("5555555555")
|
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
function this.CheckIsCanGetPackage()
|
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
|
if MyGuildManager.GetRedPackageNum()>0 then
|
||||||
--Game.GlobalEvent:DispatchEvent(GameEvent.Chat.OnRedPackageNumChanged,true)
|
--Game.GlobalEvent:DispatchEvent(GameEvent.Chat.OnRedPackageNumChanged,true)
|
||||||
local aaa=Util.GetGameObject(UIManager.uiNode,"GuildMainCityPanel/ChatTipView/Image")
|
local aaa=Util.GetGameObject(UIManager.uiNode,"GuildMainCityPanel/ChatTipView/Image")
|
||||||
local bbb=Util.GetGameObject(UIManager.uiNode,"MainPanel/ChatTipView/Image")
|
local bbb=Util.GetGameObject(UIManager.uiNode,"MainPanel/ChatTipView/Image")
|
||||||
if aaa then
|
if aaa then
|
||||||
LogError("显示红包")
|
|
||||||
aaa.gameObject:SetActive(true)
|
aaa.gameObject:SetActive(true)
|
||||||
end
|
end
|
||||||
if bbb then
|
if bbb then
|
||||||
LogError("显示红包")
|
|
||||||
bbb.gameObject:SetActive(true)
|
bbb.gameObject:SetActive(true)
|
||||||
end
|
end
|
||||||
return true
|
return true
|
||||||
|
@ -66,11 +37,9 @@ function this.CheckIsCanGetPackage()
|
||||||
local aaa=Util.GetGameObject(UIManager.uiNode,"GuildMainCityPanel/ChatTipView/Image")
|
local aaa=Util.GetGameObject(UIManager.uiNode,"GuildMainCityPanel/ChatTipView/Image")
|
||||||
local bbb=Util.GetGameObject(UIManager.uiNode,"MainPanel/ChatTipView/Image")
|
local bbb=Util.GetGameObject(UIManager.uiNode,"MainPanel/ChatTipView/Image")
|
||||||
if aaa then
|
if aaa then
|
||||||
LogError("不显示红包")
|
|
||||||
aaa.gameObject:SetActive(false)
|
aaa.gameObject:SetActive(false)
|
||||||
end
|
end
|
||||||
if bbb then
|
if bbb then
|
||||||
LogError("bu显示红包")
|
|
||||||
bbb.gameObject:SetActive(false)
|
bbb.gameObject:SetActive(false)
|
||||||
end
|
end
|
||||||
return false
|
return false
|
||||||
|
|
|
@ -455,7 +455,7 @@ function this.RegisterRedCheckFunc()
|
||||||
RPData:AddCheckFunc(RedPointType.Guild_Skill, GuildSkillManager.RefreshAllGuildSkillRedPoint)
|
RPData:AddCheckFunc(RedPointType.Guild_Skill, GuildSkillManager.RefreshAllGuildSkillRedPoint)
|
||||||
-- 公会红包
|
-- 公会红包
|
||||||
--RPData:AddCheckFunc(RedPointType.Guild_RedPacket,GuildRedPacketManager.CheckGuildRedPacketRedPoint)
|
--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.Guid_GetPackage,GuildRedPacketManager.CheckIsCanGetPackage)
|
||||||
--公会祭祀
|
--公会祭祀
|
||||||
RPData:AddCheckFunc(RedPointType.Guild_Fete,MyGuildManager.CheckGuildFeteRedPoint)
|
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)
|
Util.GetGameObject(go, "anim/anim"):GetComponent("Text").text = iconAction.DecodeHurt(hurtNum, isCritical, showType)
|
||||||
go:SetActive(true)
|
go:SetActive(true)
|
||||||
|
|
||||||
|
if self.hurtNumTimer then
|
||||||
|
self.hurtNumTimer:Stop()
|
||||||
self.hurtNumTimer = nil
|
self.hurtNumTimer = nil
|
||||||
|
end
|
||||||
self.hurtNumTimer = Timer.New(function()
|
self.hurtNumTimer = Timer.New(function()
|
||||||
if go then
|
if go then
|
||||||
go:SetActive(false)
|
go:SetActive(false)
|
||||||
|
|
Loading…
Reference in New Issue