예제 #1
0
 def setSettings(self):
     newSize = settings.clampMinimapSizeIndex(
         AccountSettings.getSettings(self.__currentSizeSettings))
     if self.__sizeIndex != newSize:
         self.__sizeIndex = newSize
         self._parentObj.as_setSizeS(self.__sizeIndex)
     self.__updateAlpha()
예제 #2
0
 def setSettings(self):
     newSize = settings.clampMinimapSizeIndex(AccountSettings.getSettings(self.__currentSizeSettings))
     if self.__sizeIndex != newSize:
         self.__sizeIndex = newSize
         self._parentObj.as_setSizeS(self.__sizeIndex)
     value = int(g_settingsCore.getSetting(settings_constants.GAME.MINIMAP_ALPHA))
     if value:
         self._parentObj.as_setAlphaS(1 - value / 100.0)
예제 #3
0
 def setSettings(self):
     newSize = settings.clampMinimapSizeIndex(
         AccountSettings.getSettings(self.__currentSizeSettings))
     if self.__sizeIndex != newSize:
         self.__sizeIndex = newSize
         self._parentObj.as_setSizeS(self.__sizeIndex)
     value = int(
         g_settingsCore.getSetting(settings_constants.GAME.MINIMAP_ALPHA))
     if value:
         self._parentObj.as_setAlphaS(1 - value / 100.0)
 def start(self):
     super(BotAppearNotificationPlugin, self).start()
     minimapSize = settings.clampMinimapSizeIndex(
         AccountSettings.getSettings('minimapSize'))
     self._curScale = self._calculateMarkerScale(minimapSize)
     ctrl = self.sessionProvider.shared.feedback
     if ctrl is not None:
         ctrl.onStaticMarkerAdded += self.__addSpottedVehicleStaticMarker
         ctrl.onStaticMarkerRemoved += self.__removeSpottedVehicleStaticMarker
         ctrl.onReplyFeedbackReceived += self.__updateSpottedVehicleStaticMarker
         ctrl.onLocalKillGoalsUpdated += self.__onLocalKillGoalsUpdated
         ctrl.onMinimapVehicleAdded += self.__onMinimapVehicleAdded
         ctrl.onMinimapVehicleRemoved += self.__onMinimapVehicleRemoved
     if isPlayerAvatar():
         arena = BigWorld.player().arena
         if arena is not None:
             arena.onVehicleKilled += self.__onArenaVehicleKilled
     return
예제 #5
0
 def __setSizeByStep(self, step):
     newIndex = settings.clampMinimapSizeIndex(self.__sizeIndex + step)
     if self.__sizeIndex != newIndex:
         LOG_DEBUG('Try to change size index of minimap by step', newIndex)
         self._parentObj.as_setSizeS(newIndex)
예제 #6
0
 def __setSizeByStep(self, step):
     newIndex = settings.clampMinimapSizeIndex(self.__sizeIndex + step)
     if self.__sizeIndex != newIndex:
         LOG_DEBUG("Try to change size index of minimap by step", newIndex)
         self._parentObj.as_setSizeS(newIndex)
예제 #7
0
 def __setSizeByStep(self, step):
     newIndex = settings.clampMinimapSizeIndex(self.__sizeIndex + step)
     if newIndex != self.__sizeIndex:
         self.__sizeIndex = newIndex
         self._parentObj.as_setSizeS(newIndex)
     self.__saveSettings()
예제 #8
0
 def __setSizeByStep(self, step):
     newIndex = settings.clampMinimapSizeIndex(self.__sizeIndex + step)
     if newIndex != self.__sizeIndex:
         self.__sizeIndex = newIndex
         self._parentObj.as_setSizeS(newIndex)
     self.__saveSettings()