From bacd4b365cfc7a1de32c69f00ced3e32efb90d5a Mon Sep 17 00:00:00 2001 From: John Date: Wed, 12 Aug 2015 14:21:39 +0300 Subject: [PATCH] Boarding Group messages are now clickable --- toontown/building/DistributedBoardingParty.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/toontown/building/DistributedBoardingParty.py b/toontown/building/DistributedBoardingParty.py index c8267316..382b56b9 100755 --- a/toontown/building/DistributedBoardingParty.py +++ b/toontown/building/DistributedBoardingParty.py @@ -145,7 +145,7 @@ class DistributedBoardingParty(DistributedObject.DistributedObject, BoardingPart if removedMember: removedMemberName = removedMember.name messageText = TTLocalizer.BoardingMessageLeftGroup % removedMemberName - localAvatar.setSystemMessage(0, messageText, WTToontownBoardingGroup) + localAvatar.setSystemMessage(removedMemberId, messageText, WTToontownBoardingGroup) elif localAvatar.doId in oldMemberList and localAvatar.doId not in memberList: messenger.send('updateGroupStatus') @@ -172,7 +172,7 @@ class DistributedBoardingParty(DistributedObject.DistributedObject, BoardingPart def postKick(self, leaderId): self.notify.debug('%s was kicked out of the Boarding Group by %s' % (localAvatar.doId, leaderId)) - localAvatar.setSystemMessage(0, TTLocalizer.BoardingMessageKickedOut, WTToontownBoardingGroup) + localAvatar.setSystemMessage(leaderId, TTLocalizer.BoardingMessageKickedOut, WTToontownBoardingGroup) def postSizeReject(self, leaderId, inviterId, inviteeId): self.notify.debug('%s was not invited because the group is full' % inviteeId) @@ -252,7 +252,7 @@ class DistributedBoardingParty(DistributedObject.DistributedObject, BoardingPart if invitee: inviteeName = invitee.name messageText = TTLocalizer.BoardingMessageInvited % (inviterName, inviteeName) - localAvatar.setSystemMessage(0, messageText, WTToontownBoardingGroup) + localAvatar.setSystemMessage(inviteeId, messageText, WTToontownBoardingGroup) def postMessageInvitationFailed(self, inviterId): inviterName = '' @@ -261,7 +261,7 @@ class DistributedBoardingParty(DistributedObject.DistributedObject, BoardingPart inviterName = inviter.name if self.invitationFailedMessageOk(inviterId): messageText = TTLocalizer.BoardingMessageInvitationFailed % inviterName - localAvatar.setSystemMessage(0, messageText, WTToontownBoardingGroup) + localAvatar.setSystemMessage(inviterId, messageText, WTToontownBoardingGroup) def postMessageAcceptanceFailed(self, inviteeId, reason): inviteeName = '' @@ -271,7 +271,7 @@ class DistributedBoardingParty(DistributedObject.DistributedObject, BoardingPart inviteeName = invitee.name if reason == BoardingPartyBase.INVITE_ACCEPT_FAIL_GROUP_FULL: messageText = TTLocalizer.BoardingMessageGroupFull % inviteeName - localAvatar.setSystemMessage(0, messageText, WTToontownBoardingGroup) + localAvatar.setSystemMessage(inviteeId, messageText, WTToontownBoardingGroup) if self.inviterPanels.isInvitingPanelIdCorrect(inviteeId): self.inviterPanels.destroyInvitingPanel() @@ -364,17 +364,17 @@ class DistributedBoardingParty(DistributedObject.DistributedObject, BoardingPart if groupFormed: if leaderId == quitterId: if not localAvatar.doId == leaderId: - localAvatar.setSystemMessage(0, TTLocalizer.BoardingMessageGroupDissolved, WTToontownBoardingGroup) + localAvatar.setSystemMessage(leaderId, TTLocalizer.BoardingMessageGroupDissolved, WTToontownBoardingGroup) elif not kick: if not localAvatar.doId == quitterId: quitter = base.cr.doId2do.get(quitterId) if quitter: quitterName = quitter.name messageText = TTLocalizer.BoardingMessageLeftGroup % quitterName - localAvatar.setSystemMessage(0, messageText, WTToontownBoardingGroup) + localAvatar.setSystemMessage(quitterId, messageText, WTToontownBoardingGroup) else: messageText = TTLocalizer.BoardingMessageGroupDisbandedGeneric - localAvatar.setSystemMessage(0, messageText, WTToontownBoardingGroup) + localAvatar.setSystemMessage(quitterId, messageText, WTToontownBoardingGroup) return def requestInvite(self, inviteeId):