コード例 #1
0
ファイル: squad_window.py プロジェクト: webiumsk/WOT-0.9.15.1
 def onUnitPlayerBecomeCreator(self, pInfo):
     if pInfo.isCurrentPlayer():
         self._showLeadershipNotification()
     chat = self.chat
     if chat:
         chat.as_addMessageS(
             messages.getUnitPlayerNotification(
                 settings.UNIT_NOTIFICATION_KEY.GIVE_LEADERSHIP, pInfo))
コード例 #2
0
 def onUnitPlayerBecomeCreator(self, pInfo):
     if pInfo.isCurrentPlayer():
         self._showLeadershipNotification()
     chat = self.chat
     if chat:
         chat.as_addMessageS(
             messages.getUnitPlayerNotification(settings.UNIT_NOTIFICATION_KEY.GIVE_LEADERSHIP, pInfo)
         )
コード例 #3
0
 def __addPlayerNotification(self, key, pInfo):
     chat = self.chat
     if chat and not pInfo.isCurrentPlayer():
         chat.as_addMessageS(messages.getUnitPlayerNotification(key, pInfo))
コード例 #4
0
ファイル: squad_window.py プロジェクト: webiumsk/WOT-0.9.15.1
 def __addPlayerNotification(self, key, pInfo):
     chat = self.chat
     if chat and not pInfo.isCurrentPlayer():
         chat.as_addMessageS(messages.getUnitPlayerNotification(key, pInfo))