mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-23 11:42:39 -06:00
Boarding Group messages are now clickable
This commit is contained in:
parent
9d43264adc
commit
bacd4b365c
1 changed files with 8 additions and 8 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue