private async void OnLogin()
        {
#pragma warning disable 4014
            await BlipHandler.AddBlipAsync("Train station", Locations.TransitLocations.TrainStations.Values.ToList(), new BlipOptions
            {
                Sprite = BlipSprite.Lift
            });

            MarkerHandler.AddMarkerAsync(Locations.TransitLocations.TrainStations.Values.ToList(), new MarkerOptions
            {
                ScaleFloat = 2.0f,
                zOffset    = -0.94f
            });

            await BlipHandler.AddBlipAsync("Bus stop", Locations.TransitLocations.BusStops.Values.ToList(), new BlipOptions
            {
                Sprite = BlipSprite.VinewoodTours
            });

            MarkerHandler.AddMarkerAsync(Locations.TransitLocations.BusStops.Values.ToList(), new MarkerOptions
            {
                ScaleFloat = 2.0f,
                zOffset    = -0.94f
            });
#pragma warning restore 4014

            buildUIElements();
        }
Пример #2
0
 private void LoadBlips()
 {
     foreach (var bank in BankLocations.Positions)
     {
         var bankMarker = new Marker(bank.Value, MarkerType.HorizontalCircleFat, bank.Key.Contains("Main") ? Color.FromArgb(150, ConstantColours.Yellow) : Color.FromArgb(150, ConstantColours.Red), 2.0f);
         if (bank.Key.Contains("Main"))
         {
             MarkerHandler.AddMarker(bankMarker);
             BlipHandler.AddBlip("Bank", bank.Value, new BlipOptions
             {
                 Sprite = BlipSprite.DollarSign,
                 Colour = BlipColor.Green
             });
         }
         else
         {
             vaultMarkers[bank.Key] = bankMarker;
         }
     }
 }