示例#1
0
        public static void StartSequence(CustomPlayer customPlayer)
        {
            #region HUD
            Config config = new Config();

            if (config.DisplayHUD == true)
            {
                float x = 0.04f;
                float y = 0.05f;
                float y2 = 0.01f;
                float width = 0.2f;
                float height = 0.30f;
                float height2 = 0.05f;

                /*
                 *Version
                 */
                CustomDraw version = new CustomDraw(Main.Version, 6, 705, Color.White, GTA.Font.ChaletComprimeCologne, .3f);

                if (show == true)
                {
                    Function.Call(Hash.DRAW_RECT, x, y, width, height, 255, 255, 255, 100);

                    Function.Call(Hash.DRAW_RECT, x, y2, width, height2, 0, 153, 51, 100);

                    CustomDraw logo = new CustomDraw("[JobsV]", 20, 5, Color.Black, GTA.Font.ChaletLondon, .3f);

                    CustomDraw degree = new CustomDraw("Degree: " + College.Degree, 60, 30, Color.Black, GTA.Font.ChaletLondon, .3f);

                    CustomDraw p1 = new CustomDraw("*", 100, 30, Color.Black, GTA.Font.ChaletLondon, .5f);

                    CustomDraw title = new CustomDraw("Job: " + Main.customPlayer.JobTitle, 60, 53, Color.Black, GTA.Font.ChaletLondon, .3f);

                    CustomDraw p2 = new CustomDraw("*", 100, 53, Color.Black, GTA.Font.ChaletLondon, .5f);

                    CustomDraw salary = new CustomDraw("Daily Salary: $" + Main.customPlayer.Wage.ToString(), 60, 77, Color.Black, GTA.Font.ChaletLondon, .3f);

                    CustomDraw p3 = new CustomDraw("*", 100, 77, Color.Black, GTA.Font.ChaletLondon, .5f);

                    CustomDraw taxi = new CustomDraw("Special License: " + DrivingSchool.TaxiLicenseRet, 60, 100, Color.Black, GTA.Font.ChaletLondon, .3f);

                    CustomDraw p4 = new CustomDraw("*", 100, 100, Color.Black, GTA.Font.ChaletLondon, .5f);

                    CustomDraw exit = new CustomDraw("Toggle Key: "  + config.HUDKey.ToString(), 60, 125, Color.Black, GTA.Font.ChaletLondon, .3f);

                    CustomDraw p5 = new CustomDraw("*", 100, 125, Color.Black, GTA.Font.ChaletLondon, .5f);

                    if (DrivingSchool.IsWorking == true)
                    {
                        DrivingSchool.HUD();
                    }
                }

            }
            #endregion

            customPlayer.onTick();
            College.Draw();
            DrivingSchool.Draw();
        }
示例#2
0
文件: Main.cs 项目: TylerEspo/JobsV
        public Main()
        {
            this.Tick += onTick;
            this.KeyUp += onKeyUp;
            this.KeyDown += onKeyDown;
            this.player = Game.Player;
            customPlayer = new CustomPlayer(player);

            /*
             * Config Set-Up
             */
            Config config = new Config();
            this.startAmount = config.StartAmount;
            this.isStartAm = config.EnableStartAmount;
            if (config.EnableStartAmount == true)
            {
                player.Money = config.StartAmount;
            }

            /*
             * Save Data
             */
            SaveData.CreateData();

            customPlayer.sendMessage("Welcome back! Press " + Style.YELLOW + config.LoadKey.ToString() + Style.NORMAL + " to load previous JobsV save. " + "Press " + Style.YELLOW + config.SaveDataKey.ToString() + Style.NORMAL + " to save.");

            Dispose();

            /*
             * Blips
             */
            Blip college = Job.CreateBlip(College.Location, BlipSprite.Business, BlipColor.Yellow);
            Blip lifeinv = Job.CreateBlip(LifeInvader.Location, BlipSprite.Business, BlipColor.Yellow);
            Blip waiter = Job.CreateBlip(Waiter.Location, BlipSprite.Business, BlipColor.Yellow);
            Blip firefighter = Job.CreateBlip(FireFighter.Location, BlipSprite.Business, BlipColor.Yellow);
            Blip airport = Job.CreateBlip(AirportSecurity.Location, BlipSprite.Business, BlipColor.Yellow);
            Blip music = Job.CreateBlip(MusicPerformer.Location, BlipSprite.Business, BlipColor.Yellow);
            Blip driving = Job.CreateBlip(DrivingSchool.Location, BlipSprite.Business, BlipColor.Yellow);
            Blip pilot = Job.CreateBlip(Pilot.Location, BlipSprite.Business, BlipColor.Yellow);
            Blip taxi = Job.CreateBlip(Taxi.Location, BlipSprite.Business, BlipColor.Yellow);
            Blip heli = Job.CreateBlip(Helicopter.Location, BlipSprite.Business, BlipColor.Yellow);
            list.Add(college);
            list.Add(lifeinv);
            list.Add(waiter);
            list.Add(firefighter);
            list.Add(airport);
            list.Add(music);
            list.Add(driving);
            list.Add(pilot);
            list.Add(taxi);
            list.Add(heli);
        }
示例#3
0
文件: Job.cs 项目: TylerEspo/JobsV
 public Job(Player player, Vector3 jobLocation, int wage, string jobTitle, int jobID, Vector3 returnLocation, bool requiresDegree, bool requireTaxi)
 {
     this.player = player;
     this.location = jobLocation;
     this.wage = wage;
     this.title = jobTitle;
     this.JobId = jobID;
     this.requiredegree = requiresDegree;
     this.returnlocation = returnLocation;
     this.customplayer = Main.customPlayer;
     this.license = requireTaxi;
     this.config = new Config();
     audio = new Audio();
 }
示例#4
0
        public static void StartSequenceKey(CustomPlayer customPlayer, KeyEventArgs e)
        {
            customPlayer.onKey(e);
            Config config = new Config();

            if (e.KeyCode == config.HUDKey)
            {
                if (show == true)
                {
                    show = false;
                }
                else
                {
                    show = true;
                }
            }
        }