家族监听周期修复
parent
e041ed61e9
commit
611658bb15
|
|
@ -8,7 +8,10 @@ local M = FamilyEventView
|
||||||
function FamilyEventView.new(root)
|
function FamilyEventView.new(root)
|
||||||
setmetatable(M, { __index = root })
|
setmetatable(M, { __index = root })
|
||||||
local self = setmetatable({}, { __index = M })
|
local self = setmetatable({}, { __index = M })
|
||||||
|
return self
|
||||||
|
end
|
||||||
|
|
||||||
|
function M:AddListener()
|
||||||
local mgr_ctr = self._mgr_ctr
|
local mgr_ctr = self._mgr_ctr
|
||||||
mgr_ctr:AddEventListener(GroupMgrEvent.AddPlay, handler(self, self._evtAddPlay))
|
mgr_ctr:AddEventListener(GroupMgrEvent.AddPlay, handler(self, self._evtAddPlay))
|
||||||
mgr_ctr:AddEventListener(GroupMgrEvent.DelPlay, handler(self, self._evtDelPlay))
|
mgr_ctr:AddEventListener(GroupMgrEvent.DelPlay, handler(self, self._evtDelPlay))
|
||||||
|
|
@ -31,7 +34,6 @@ function FamilyEventView.new(root)
|
||||||
mgr_ctr:AddEventListener(GroupMgrEvent.OnFamilyRoomReflash, handler(self, self._evtOnFamilyRoomReflash))
|
mgr_ctr:AddEventListener(GroupMgrEvent.OnFamilyRoomReflash, handler(self, self._evtOnFamilyRoomReflash))
|
||||||
mgr_ctr:AddEventListener(GroupMgrEvent.OnFamilyMemberOut, handler(self, self._evtOnFamilyMemberOut))
|
mgr_ctr:AddEventListener(GroupMgrEvent.OnFamilyMemberOut, handler(self, self._evtOnFamilyMemberOut))
|
||||||
print("家族添加监听")
|
print("家族添加监听")
|
||||||
return self
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function M:RemoveAll()
|
function M:RemoveAll()
|
||||||
|
|
|
||||||
|
|
@ -1132,7 +1132,7 @@ function M:Show()
|
||||||
Broadcast.AddListener(BroadcastEvent.OnMemberChange, self.ReflashMember, self)
|
Broadcast.AddListener(BroadcastEvent.OnMemberChange, self.ReflashMember, self)
|
||||||
Broadcast.AddListener(BroadcastEvent.OnOutFamily, self.Reflash, self)
|
Broadcast.AddListener(BroadcastEvent.OnOutFamily, self.Reflash, self)
|
||||||
|
|
||||||
--self.Reflash()
|
self._familyEventView:AddListener()
|
||||||
BaseView.Show(self)
|
BaseView.Show(self)
|
||||||
|
|
||||||
self:Reflash()
|
self:Reflash()
|
||||||
|
|
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue