Exemplo n.º 1
0
 def stopBattle():
     Focus.inBattle = False
     MarkersStorage.clear()
     if Focus.lastCallback is not None:
         try:
             BigWorld.cancelCallback(Focus.lastCallback)
         except:
             pass
         Focus.lastCallback = None
Exemplo n.º 2
0
 def stopBattle():
     Focus.inBattle = False
     MarkersStorage.clear()
     if Focus.lastCallback is not None:
         try:
             BigWorld.cancelCallback(Focus.lastCallback)
         except:
             pass
         Focus.lastCallback = None   
Exemplo n.º 3
0
 def stopBattle():
     if event.ns == _SPACE.SF_BATTLE:
         Focus.inBattle = False
         MarkersStorage.clear()
         if Focus.lastCallback is not None:
             try:
                 BigWorld.cancelCallback(Focus.lastCallback)
             except:
                 pass
             Focus.lastCallback = None   
Exemplo n.º 4
0
 def stopBattle():
     if event.ns == _SPACE.SF_BATTLE:
         Focus.inBattle = False
         MarkersStorage.clear()
         if Focus.lastCallback is not None:
             try:
                 BigWorld.cancelCallback(Focus.lastCallback)
             except:
                 pass
             Focus.lastCallback = None
Exemplo n.º 5
0
def showMarker(enemyID,config):
    if enemyID is None or MarkersStorage.hasMarker(enemyID):
        return
    minimap = g_windowsManager.battleWindow.minimap
    if minimap is None:
        return
    enemyVehicle = BigWorld.entities.get(enemyID)
    if enemyVehicle is None:
        return
    if not enemyVehicle.isAlive():
        return
    indicator = DirectionIndicator(config)
    if indicator is None:
        return
    indicatorCtrl = DirectionIndicatorCtrl(indicator, config, enemyVehicle)
    VehicleMarker = VehicleMarkers(enemyID, minimap, 5, indicatorCtrl)
    if VehicleMarker is not None:
        MarkersStorage.addMarker(enemyID, VehicleMarker, config)
Exemplo n.º 6
0
def showMarker(enemyID, config):
    if enemyID is None or MarkersStorage.hasMarker(enemyID):
        return
    battle = g_appLoader.getDefBattleApp()
    if battle is None:
        return
    minimap = battle.minimap
    enemyVehicle = BigWorld.entities.get(enemyID)
    if enemyVehicle is None:
        return
    if not enemyVehicle.isAlive():
        return
    indicator = DirectionIndicator(config)
    if indicator is None:
        return
    indicatorCtrl = DirectionIndicatorCtrl(indicator, config, enemyVehicle)
    VehicleMarker = VehicleMarkers(enemyID, minimap, 5, indicatorCtrl)
    if VehicleMarker is not None:
        MarkersStorage.addMarker(enemyID, VehicleMarker, config)
Exemplo n.º 7
0
 def check():
     if not Focus.inBattle:
         return
     MarkersStorage.updateMarkers(Focus.myConf)
     Focus.lastCallback = BigWorld.callback(0.7, Focus.check)
Exemplo n.º 8
0
 def check():
     if not Focus.inBattle:
         return
     MarkersStorage.updateMarkers(Focus.myConf)
     Focus.lastCallback = BigWorld.callback(0.7,Focus.check)