Example #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
 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
 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
 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)
    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
    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
Example #7
0
 def getLongDescription(self):
     return getLocalizedData(self._data['localized_data'], 'longDescr')
Example #8
0
 def getUserName(self):
     return getLocalizedData(self._data['localized_data'], 'title')
 def getRequirementsStr(self):
     return getLocalizedData(self._data, 'requirements')
Example #10
0
 def getSideUserName(self, side):
     return getLocalizedData(self._data['localized_data'],
                             'sideNames').get(side)
Example #11
0
 def getUserName(self):
     return getLocalizedData(self._data['localized_data'], 'title')
Example #12
0
 def getUserName(self):
     return getLocalizedData(self._data, 'name')
Example #13
0
 def getAwardMsg(self):
     return getLocalizedData(self._data, 'congratulation')
Example #14
0
 def getSideUserName(self, side):
     return getLocalizedData(self._data["localized_data"], "sideNames").get(side)
Example #15
0
 def getLongDescription(self):
     return getLocalizedData(self._data["localized_data"], "longDescr")
Example #16
0
 def getUserName(self):
     return getLocalizedData(self._data["localized_data"], "title")
 def getNotificationText(self):
     return getLocalizedData(self._data, 'notificationText')
Example #18
0
 def getLongDescription(self):
     return getLocalizedData(self._data['localized_data'], 'longDescr')
Example #19
0
 def formatValue(self):
     return getLocalizedData({'value': self._value}, 'value')
Example #20
0
 def getSideUserName(self, side):
     return getLocalizedData(self._data['localized_data'], 'sideNames').get(side)
Example #21
0
 def getTips(self):
     return getLocalizedData(self._data, 'advice')
 def getUserName(self):
     return getLocalizedData(self._data, 'name')
Example #23
0
 def getRequirementsStr(self):
     return getLocalizedData(self._data, 'requirements')
Example #24
0
 def make(cls, data):
     text = getLocalizedData(data, 'text')
     return cls.__new__(cls, data['type'], data.get('data'), text)
Example #25
0
 def getDescription(self):
     return getLocalizedData(self._data, 'description')
 def make(cls, data):
     text = getLocalizedData(data, 'text')
     return cls.__new__(cls, data['type'], data.get('data'), text)
 def getDescription(self):
     return getLocalizedData(self._data, 'description')
Example #28
0
 def _parse(self):
     return getLocalizedData({'value': self._value}, 'value')
Example #29
0
 def formatValue(self):
     return getLocalizedData({'value': self._value}, 'value')
 def getTips(self):
     return getLocalizedData(self._data, 'advice')
 def getAwardMsg(self):
     return getLocalizedData(self._data, 'congratulation')
Example #32
0
 def _parse(self):
     return getLocalizedData({'value': self._value}, 'value')