Exemplo n.º 1
0
    def __init__(self):
        self.__effects = {}
        self.__quickEffects = {}
        self.__vibrationObject = BigWorld.WGVibration()
        self.__vibrationObject.reset()
        self.__connectionCheckId = BigWorld.callback(
            VibroManager.__CONNECTION_CHECK_PERIOD, self.__checkConnection)
        self.__eventManager = Event.EventManager()
        self.onConnect = Event.Event(self.__eventManager)
        self.onDisconnect = Event.Event(self.__eventManager)
        self.__runningEffects = {}
        self.__topEffect = None
        self.__groupsSettings = {}
        for groupName in EffectsSettings.Groups.AllGroupNames:
            self.__groupsSettings[groupName] = VibroManager.GroupSettings()
            self.__groupsSettings[groupName].enabled = True
            self.__groupsSettings[groupName].gain = 1.0

        EffectsSettings.loadSettings()
        self.__gain = 1.0
        self.__isEnabledByUser = True
        self.loadUserPrefs()
        self.__isConnected = False
        self.connect()
        self.launchQuickEffect('startup_veff')
        return
Exemplo n.º 2
0
    def __init__(self):
        self.__effects = {}
        self.__quickEffects = {}
        self.__vibrationObject = BigWorld.WGVibration()
        self.__vibrationObject.reset()
        g_playerEvents.onAccountShowGUI += self.__onAccountShowGUI
        self.__eventManager = Event.EventManager()
        self.onConnect = Event.Event(self.__eventManager)
        self.onDisconnect = Event.Event(self.__eventManager)
        self.__runningEffects = {}
        self.__topEffect = None
        self.__groupsSettings = {}
        for groupName in EffectsSettings.Groups.AllGroupNames:
            self.__groupsSettings[groupName] = VibroManager.GroupSettings()
            self.__groupsSettings[groupName].enabled = True
            self.__groupsSettings[groupName].gain = 1.0

        EffectsSettings.loadSettings()
        self.__gain = 1.0
        self.__isEnabledByUser = True
        self.loadUserPrefs()
        self.__isConnected = False
        self.connect()
        self.launchQuickEffect('startup_veff')
        return
Exemplo n.º 3
0
    def __init__(self):
        self.__effects = {}
        self.__quickEffects = {}
        self.__vibrationObject = BigWorld.WGVibration()
        self.__vibrationObject.reset()
        self.__connectionCheckId = BigWorld.callback(VibroManager.__CONNECTION_CHECK_PERIOD, self.__checkConnection)
        self.__eventManager = Event.EventManager()
        self.onConnect = Event.Event(self.__eventManager)
        self.onDisconnect = Event.Event(self.__eventManager)
        self.__runningEffects = {}
        self.__topEffect = None
        self.__groupsSettings = {}
        for groupName in EffectsSettings.Groups.AllGroupNames:
            self.__groupsSettings[groupName] = VibroManager.GroupSettings()
            self.__groupsSettings[groupName].enabled = True
            self.__groupsSettings[groupName].gain = 1.0

        EffectsSettings.loadSettings()
        self.__gain = 1.0
        self.__isEnabledByUser = True
        self.loadUserPrefs()
        self.__isConnected = False
        self.connect()
        self.launchQuickEffect('startup_veff')
        return
Exemplo n.º 4
0
    def __init__(self):
        self.__effects = {}
        self.__quickEffects = {}
        self.__vibrationObject = BigWorld.WGVibration()
        self.__vibrationObject.reset()
        g_playerEvents.onAccountShowGUI += self.__onAccountShowGUI
        self.__eventManager = Event.EventManager()
        self.onConnect = Event.Event(self.__eventManager)
        self.onDisconnect = Event.Event(self.__eventManager)
        self.__runningEffects = {}
        self.__topEffect = None
        self.__groupsSettings = {}
        for groupName in EffectsSettings.Groups.AllGroupNames:
            self.__groupsSettings[groupName] = VibroManager.GroupSettings()
            self.__groupsSettings[groupName].enabled = True
            self.__groupsSettings[groupName].gain = 1.0

        EffectsSettings.loadSettings()
        self.__gain = 1.0
        self.__isEnabledByUser = True
        self.loadUserPrefs()
        self.__isConnected = False
        self.connect()
        self.launchQuickEffect('startup_veff')
        return
Exemplo n.º 5
0
 def loadEffectFromFile(self, effectName, priority = 0):
     if not self.__isConnected:
         return VibroEffect(effectName, None, EffectsSettings.getEffectPriority(effectName), self.__vibrationObject, EffectsSettings.getGroupForEffect(effectName))
     effectHandle = self.__vibrationObject.createEffect()
     fileName = EffectsSettings.CFG_FOLDER + effectName + '.uwv'
     self.__vibrationObject.loadEffectFromFile(effectHandle, fileName)
     effect = VibroEffect(effectName, effectHandle, EffectsSettings.getEffectPriority(effectName), self.__vibrationObject, EffectsSettings.getGroupForEffect(effectName))
     return effect
Exemplo n.º 6
0
 def loadEffectFromFile(self, effectName, priority = 0):
     if not self.__isConnected:
         return VibroEffect(effectName, None, EffectsSettings.getEffectPriority(effectName), self.__vibrationObject, EffectsSettings.getGroupForEffect(effectName))
     else:
         effectHandle = self.__vibrationObject.createEffect()
         fileName = EffectsSettings.CFG_FOLDER + effectName + '.uwv'
         self.__vibrationObject.loadEffectFromFile(effectHandle, fileName)
         effect = VibroEffect(effectName, effectHandle, EffectsSettings.getEffectPriority(effectName), self.__vibrationObject, EffectsSettings.getGroupForEffect(effectName))
         return effect
Exemplo n.º 7
0
 def getOverlappedGainMultiplier(self):
     return EffectsSettings.getOverlappedGainMultiplier()
Exemplo n.º 8
0
 def getOverlappedGainMultiplier(self):
     return EffectsSettings.getOverlappedGainMultiplier()