コード例 #1
0
 def getCustomTitle(self):
     titleData = self._data.get('title')
     if titleData:
         if 'key' in titleData:
             return i18n.makeString(titleData['key'], value=_getCustomTitleValueFromConditionData(self._data))
         return getLocalizedData(self._data, 'title')
     else:
         return None
コード例 #2
0
 def getCustomTitle(self):
     titleData = self._data.get('title')
     if titleData:
         if 'key' in titleData:
             return i18n.makeString(titleData['key'])
         return getLocalizedData(self._data, 'title')
     else:
         return None
コード例 #3
0
 def getCustomDescription(self):
     descrData = self._data.get('description')
     if descrData:
         if 'key' in descrData:
             return i18n.makeString(descrData['key'])
         return getLocalizedData(self._data, 'description')
     else:
         return None
コード例 #4
0
 def __processNotifications(self, notifications, state):
     for notification in notifications:
         text = getLocalizedData(notification, 'text')
         msgType = notification.get('type', None)
         if msgType is not None and not msgType.startswith(self.__CMD_BLOCK_PREFIX) and not msgType.startswith(self.__PROMO_BLOCK_PREFIX) and text:
             message = {'data': text,
              'type': msgType,
              'state': state}
             self.proto.serviceChannel.pushClientMessage(message, SCH_CLIENT_MSG_TYPE.ACTION_NOTIFY_TYPE)
コード例 #5
0
    def __processNotifications(self, notifications, state):
        if game_control.g_instance.roaming.isInRoaming():
            return
        else:
            for notification in notifications:
                text = getLocalizedData(notification, 'text')
                msgType = notification.get('type', None)
                if msgType is not None and msgType[:len(self.__BLOCK_PREFIX)] != self.__BLOCK_PREFIX and len(text) > 0:
                    message = {'data': text,
                     'type': msgType,
                     'state': state}
                    self.proto.serviceChannel.pushClientMessage(message, SCH_CLIENT_MSG_TYPE.ACTION_NOTIFY_TYPE)

            return
コード例 #6
0
    def __processNotifications(self, notifications, state):
        if game_control.g_instance.roaming.isInRoaming():
            return
        else:
            for notification in notifications:
                text = getLocalizedData(notification, 'text')
                msgType = notification.get('type', None)
                if msgType is not None and msgType[:len(
                        self.__BLOCK_PREFIX)] != self.__BLOCK_PREFIX and len(
                            text) > 0:
                    message = {'data': text, 'type': msgType, 'state': state}
                    self.proto.serviceChannel.pushClientMessage(
                        message, SCH_CLIENT_MSG_TYPE.ACTION_NOTIFY_TYPE)

            return
コード例 #7
0
ファイル: event_items.py プロジェクト: kblw/wot_client
 def getLongDescription(self):
     return getLocalizedData(self._data['localized_data'], 'longDescr')
コード例 #8
0
ファイル: event_items.py プロジェクト: kblw/wot_client
 def getUserName(self):
     return getLocalizedData(self._data['localized_data'], 'title')
コード例 #9
0
 def getRequirementsStr(self):
     return getLocalizedData(self._data, 'requirements')
コード例 #10
0
ファイル: event_items.py プロジェクト: jamesxia4/wot_client
 def getSideUserName(self, side):
     return getLocalizedData(self._data['localized_data'],
                             'sideNames').get(side)
コード例 #11
0
ファイル: event_items.py プロジェクト: jamesxia4/wot_client
 def getUserName(self):
     return getLocalizedData(self._data['localized_data'], 'title')
コード例 #12
0
ファイル: event_items.py プロジェクト: 19colt87/WOTDecompiled
 def getUserName(self):
     return getLocalizedData(self._data, 'name')
コード例 #13
0
ファイル: event_items.py プロジェクト: webiumsk/WOT-0.9.14-CT
 def getAwardMsg(self):
     return getLocalizedData(self._data, 'congratulation')
コード例 #14
0
ファイル: event_items.py プロジェクト: webiumsk/WOT-0.9.12-CT
 def getSideUserName(self, side):
     return getLocalizedData(self._data["localized_data"], "sideNames").get(side)
コード例 #15
0
ファイル: event_items.py プロジェクト: webiumsk/WOT-0.9.12-CT
 def getLongDescription(self):
     return getLocalizedData(self._data["localized_data"], "longDescr")
コード例 #16
0
ファイル: event_items.py プロジェクト: webiumsk/WOT-0.9.12-CT
 def getUserName(self):
     return getLocalizedData(self._data["localized_data"], "title")
コード例 #17
0
 def getNotificationText(self):
     return getLocalizedData(self._data, 'notificationText')
コード例 #18
0
ファイル: event_items.py プロジェクト: jamesxia4/wot_client
 def getLongDescription(self):
     return getLocalizedData(self._data['localized_data'], 'longDescr')
コード例 #19
0
ファイル: bonuses.py プロジェクト: webiumsk/WOT-0.9.15-CT
 def formatValue(self):
     return getLocalizedData({'value': self._value}, 'value')
コード例 #20
0
ファイル: event_items.py プロジェクト: kblw/wot_client
 def getSideUserName(self, side):
     return getLocalizedData(self._data['localized_data'], 'sideNames').get(side)
コード例 #21
0
ファイル: event_items.py プロジェクト: webiumsk/WOT-0.9.14-CT
 def getTips(self):
     return getLocalizedData(self._data, 'advice')
コード例 #22
0
 def getUserName(self):
     return getLocalizedData(self._data, 'name')
コード例 #23
0
ファイル: event_items.py プロジェクト: webiumsk/WOT-0.9.14-CT
 def getRequirementsStr(self):
     return getLocalizedData(self._data, 'requirements')
コード例 #24
0
 def make(cls, data):
     text = getLocalizedData(data, 'text')
     return cls.__new__(cls, data['type'], data.get('data'), text)
コード例 #25
0
ファイル: event_items.py プロジェクト: 19colt87/WOTDecompiled
 def getDescription(self):
     return getLocalizedData(self._data, 'description')
コード例 #26
0
 def make(cls, data):
     text = getLocalizedData(data, 'text')
     return cls.__new__(cls, data['type'], data.get('data'), text)
コード例 #27
0
 def getDescription(self):
     return getLocalizedData(self._data, 'description')
コード例 #28
0
ファイル: conditions.py プロジェクト: v3ss0n/WOTDecompiled
 def _parse(self):
     return getLocalizedData({'value': self._value}, 'value')
コード例 #29
0
 def formatValue(self):
     return getLocalizedData({'value': self._value}, 'value')
コード例 #30
0
 def getTips(self):
     return getLocalizedData(self._data, 'advice')
コード例 #31
0
 def getAwardMsg(self):
     return getLocalizedData(self._data, 'congratulation')
コード例 #32
0
ファイル: conditions.py プロジェクト: 19colt87/WOTDecompiled
 def _parse(self):
     return getLocalizedData({'value': self._value}, 'value')