mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 19:08:55 -04:00
system warnings with aknowledge
This commit is contained in:
parent
3d8079f054
commit
c195f770ea
@ -558,7 +558,7 @@ class ClientRepositoryBase(ConnectionRepository):
|
|||||||
# This object has been fully generated. It's OK to update.
|
# This object has been fully generated. It's OK to update.
|
||||||
self.__doUpdate(doId, di, ovUpdated)
|
self.__doUpdate(doId, di, ovUpdated)
|
||||||
|
|
||||||
|
|
||||||
def __doUpdate(self, doId, di, ovUpdated):
|
def __doUpdate(self, doId, di, ovUpdated):
|
||||||
# Find the DO
|
# Find the DO
|
||||||
do = self.doId2do.get(doId)
|
do = self.doId2do.get(doId)
|
||||||
@ -586,7 +586,7 @@ class ClientRepositoryBase(ConnectionRepository):
|
|||||||
except:
|
except:
|
||||||
self.notify.warning(
|
self.notify.warning(
|
||||||
"Asked to update non-existent DistObj " + str(doId) + "and failed to find it")
|
"Asked to update non-existent DistObj " + str(doId) + "and failed to find it")
|
||||||
|
|
||||||
def __doUpdateOwner(self, doId, di):
|
def __doUpdateOwner(self, doId, di):
|
||||||
ovObj = self.doId2ownerView.get(doId)
|
ovObj = self.doId2ownerView.get(doId)
|
||||||
if ovObj:
|
if ovObj:
|
||||||
@ -625,6 +625,13 @@ class ClientRepositoryBase(ConnectionRepository):
|
|||||||
message = di.getString()
|
message = di.getString()
|
||||||
self.notify.info('Message from server: %s' % (message))
|
self.notify.info('Message from server: %s' % (message))
|
||||||
return message
|
return message
|
||||||
|
|
||||||
|
def handleSystemMessageAknowledge(self, di):
|
||||||
|
# Got a system message from the server.
|
||||||
|
message = di.getString()
|
||||||
|
self.notify.info('Message with aknowledge from server: %s' % (message))
|
||||||
|
messenger.send("system message aknowledge", [message])
|
||||||
|
return message
|
||||||
|
|
||||||
def getObjectsOfClass(self, objClass):
|
def getObjectsOfClass(self, objClass):
|
||||||
""" returns dict of doId:object, containing all objects
|
""" returns dict of doId:object, containing all objects
|
||||||
|
@ -85,6 +85,8 @@ MsgName2Id = {
|
|||||||
'CLIENT_GET_FRIEND_LIST_EXTENDED_RESP': 116,
|
'CLIENT_GET_FRIEND_LIST_EXTENDED_RESP': 116,
|
||||||
|
|
||||||
'CLIENT_SET_FIELD_SENDABLE': 120,
|
'CLIENT_SET_FIELD_SENDABLE': 120,
|
||||||
|
|
||||||
|
'CLIENT_SYSTEMMESSAGE_AKNOWLEDGE': 123,
|
||||||
}
|
}
|
||||||
|
|
||||||
# create id->name table for debugging
|
# create id->name table for debugging
|
||||||
|
Loading…
x
Reference in New Issue
Block a user