Exemplo n.º 1
0
 public override void Initialize()
 {
     Function.Log("Computer+ is loading");
     DetectOpenCloseRequestedFiber   = new GameFiber(CheckToggleComputer);
     RunComputerPlusFiber            = new GameFiber(RunPoliceComputer);
     CheckIfCalloutActiveFiber       = new GameFiber(CheckIfCalloutActive);
     DetectOpenSimpleNotepadFiber    = new GameFiber(CheckOpenSimpleNotepad);
     Functions.OnOnDutyStateChanged += DutyStateChangedHandler;
     OnVehicleStopped += VehicleStoppedHandler;
     Globals.Navigation.OnFormAdded          += NavOnFormAdded;
     Globals.Navigation.OnFormRemoved        += NavOnFormRemoved;
     AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(AssemblyResolve);
     Configs.RunConfigCheck();
     if (Game.IsControllerConnected)
     {
         CloseComputerPlusWindow = new KeyBinder(ControllerButtons.X);
     }
     else
     {
         CloseComputerPlusWindow = new KeyBinder(Keys.PageDown);
     }
     OpenCloseComputerPlusBinder = new KeyBinder(GameControl.Context);
     OpenSimpleNotepad           = new KeyBinder(Keys.End);
     Function.checkForRageVersionClass.checkForRageVersion(0.41f);
 }
Exemplo n.º 2
0
 public override void Initialize()
 {
     LSPD_First_Response.Mod.API.Functions.OnOnDutyStateChanged += DutyStateChangedHandler;
     OnVehicleStopped += VehicleStoppedHandler;
     AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(AssemblyResolve);
     Configs.RunConfigCheck();
 }
Exemplo n.º 3
0
 public override void Initialize()
 {
     DetectOpenCloseRequestedFiber   = new GameFiber(ComputerPlusMain);
     RunComputerPlusFiber            = new GameFiber(RunPoliceComputer);
     CheckIfCalloutActiveFiber       = new GameFiber(CheckIfCalloutActive);
     DetectOpenSimpleNotepadFiber    = new GameFiber(CheckOpenSimpleNotepad);
     Functions.OnOnDutyStateChanged += DutyStateChangedHandler;
     OnVehicleStopped += VehicleStoppedHandler;
     OnFacingPedWithPendingTickets           += PedFacingPlayerWithPendingTickets;
     Globals.Navigation.OnFormAdded          += NavOnFormAdded;
     Globals.Navigation.OnFormRemoved        += NavOnFormRemoved;
     AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(AssemblyResolve);
     Configs.RunConfigCheck();
     Function.checkForRageVersionClass.checkForRageVersion(0.41f);
 }