Пример #1
0
    public void subTeleportNorth()
    {
        //Paleto Bay, Chilliad, Mount Gordo

        List <IMenuItem> RegionsNorth = new List <IMenuItem>();

        var button = new GTA.MenuButton("Paleto Bay");

        button.Activated += (sender, args) =>
        {
            this.paletoBay();
        };
        RegionsNorth.Add(button);

        button            = new GTA.MenuButton("Chilliad");
        button.Activated += (sender, args) =>
        {
            this.chilliad();
        };
        RegionsNorth.Add(button);

        button            = new GTA.MenuButton("Mount Gordo");
        button.Activated += (sender, args) =>
        {
            this.mountGordo();
        };
        RegionsNorth.Add(button);

        var main = new GTA.Menu("North San Andreas", RegionsNorth.ToArray());

        DrawMenu(main);
    }
Пример #2
0
    public void subTeleportEast()
    {
        //Chianski Mountain Range, Grapeseed

        List <IMenuItem> RegionsEast = new List <IMenuItem>();

        var button = new GTA.MenuButton("Chianski Mountain Range");

        button.Activated += (sender, args) =>
        {
            this.chianskiMountainRange();
        };
        RegionsEast.Add(button);

        button            = new GTA.MenuButton("Grapeseed");
        button.Activated += (sender, args) =>
        {
            this.grapeseed();
        };
        RegionsEast.Add(button);

        var main = new GTA.Menu("East San Andreas", RegionsEast.ToArray());

        DrawMenu(main);
    }
Пример #3
0
    public void subTeleportWest()
    {
        //Zancudo, Chilliad state Wilderness

        List <IMenuItem> RegionsWest = new List <IMenuItem>();

        var button = new GTA.MenuButton("Chumash");

        button.Activated += (sender, args) =>
        {
            this.chumash();
        };
        RegionsWest.Add(button);

        button            = new GTA.MenuButton("Chilliad State Wilderness");
        button.Activated += (sender, args) =>
        {
            this.chilliadStateWilderness();
        };
        RegionsWest.Add(button);

        var main = new GTA.Menu("West San Andreas", RegionsWest.ToArray());

        DrawMenu(main);
    }
Пример #4
0
    public void subTeleportNorth()
    {
        //Paleto Bay, Chilliad, Mount Gordo

        List<IMenuItem> RegionsNorth = new List<IMenuItem>();

        var button = new GTA.MenuButton("Paleto Bay");
        button.Activated += (sender, args) =>
        {
            this.paletoBay();
        };
        RegionsNorth.Add(button);

        button = new GTA.MenuButton("Chilliad");
        button.Activated += (sender, args) =>
        {
            this.chilliad();
        };
        RegionsNorth.Add(button);

        button = new GTA.MenuButton("Mount Gordo");
        button.Activated += (sender, args) =>
        {
            this.mountGordo();
        };
        RegionsNorth.Add(button);

        var main = new GTA.Menu("North San Andreas", RegionsNorth.ToArray());
        DrawMenu(main);
    }
Пример #5
0
    void SupplyMenu()
    {
        List <IMenuItem> WeaponMenuList = new List <IMenuItem>();

        var button = new GTA.MenuButton("Weapons");

        button.Activated += (sender, args) => Exit();
        WeaponMenuList.Add(button);

        button            = new GTA.MenuButton("Health & Armour");
        button.Activated += (sender, args) => Exit();
        WeaponMenuList.Add(button);

        button            = new GTA.MenuButton("Food & Supplies");
        button.Activated += (sender, args) => Exit();
        WeaponMenuList.Add(button);

        button            = new GTA.MenuButton("Return");
        button.Activated += (sender, args) => Exit();
        WeaponMenuList.Add(button);

        var mainMenu = new Menu("Weapon Menu", WeaponMenuList.ToArray());

        DrawMenu(mainMenu);
    }
Пример #6
0
    void pistolList()
    {
        List<MenuButton> listItems = new List<MenuButton>();

        foreach (KeyValuePair<WeaponHash, int> weapon in pistols)
        {
            var button = new GTA.MenuButton(weapon.Key.ToString());
            button.Activated += (sender, args) => giveWeapon(button, weapon);
            listItems.Add(button);
        }
        ListMenu list1 = new ListMenu("Weapon List", listItems.ToArray(), 10);
        DrawMenu(list1);
    }
Пример #7
0
    private void mainMenu()
    {
        List <IMenuItem> mainMenu = new List <IMenuItem>();

        var button = new GTA.MenuButton("Weapons", "Spawn weapons");

        button.Activated += (sender, args) =>
        {
            this.subWeapons();
        };
        mainMenu.Add(button);

        button            = new GTA.MenuButton("Vehicles", "Spawn vehicles");
        button.Activated += (sender, args) =>
        {
            this.subVehicles();
        };
        mainMenu.Add(button);

        button            = new GTA.MenuButton("Weather", "Change the weather");
        button.Activated += (sender, args) =>
        {
            this.subWeather();
        };
        mainMenu.Add(button);

        button            = new GTA.MenuButton("Teleports", "view the teleport list");
        button.Activated += (sender, args) =>
        {
            this.teleportLocations();
        };
        mainMenu.Add(button);

        button            = new GTA.MenuButton("Teleport Regions", "view the teleport Regions");
        button.Activated += (sender, args) =>
        {
            this.teleportRegions();
        };
        mainMenu.Add(button);

        button            = new GTA.MenuButton("Exit", "Close the menu");
        button.Activated += (sender, args) =>
        {
            this.View.CloseAllMenus();
        };
        mainMenu.Add(button);

        var main = new GTA.Menu("menu", mainMenu.ToArray());

        DrawMenu(main);
    }
Пример #8
0
    void rifleList()
    {
        List <MenuButton> listItems = new List <MenuButton>();

        foreach (KeyValuePair <WeaponHash, int> weapon in rifle)
        {
            var button = new GTA.MenuButton(weapon.Key.ToString());
            button.Activated += (sender, args) => giveWeapon(button, weapon);
            listItems.Add(button);
        }
        ListMenu list1 = new ListMenu("Weapon List", listItems.ToArray(), 10);

        DrawMenu(list1);
    }
Пример #9
0
    void helicopterList()
    {
        List<MenuButton> helicopterMenuItems = new List<MenuButton>();

        foreach (KeyValuePair<VehicleHash, int> vehicles in helicopterVeh)
        {
            var button = new GTA.MenuButton(vehicles.Key.ToString());
            button.Activated += (sender, args) => spawnVehicle(button, vehicles);
            helicopterMenuItems.Add(button);
        }

        ListMenu MainMenu = new ListMenu("Helicopters", helicopterMenuItems.ToArray(), 10);
        DrawMenu(MainMenu);
    }
Пример #10
0
    void coupeList()
    {
        List<MenuButton> coupeMenuItems = new List<MenuButton>();

        foreach (KeyValuePair<VehicleHash, int> vehicles in coupeVeh)
        {
            var button = new GTA.MenuButton(vehicles.Key.ToString());
            button.Activated += (sender, args) => spawnVehicle(button, vehicles);
            coupeMenuItems.Add(button);
        }

        ListMenu MainMenu = new ListMenu("Coupe Cars", coupeMenuItems.ToArray(), 10);
        DrawMenu(MainMenu);
    }
Пример #11
0
    private void mainMenu()
    {
        List<IMenuItem> mainMenu = new List<IMenuItem>();

           var button = new GTA.MenuButton("Weapons", "Spawn weapons");
           button.Activated += (sender, args) =>
           {
           this.subWeapons();
           };
           mainMenu.Add(button);

           button = new GTA.MenuButton("Vehicles", "Spawn vehicles");
           button.Activated += (sender, args) =>
           {
           this.subVehicles();
           };
           mainMenu.Add(button);

           button = new GTA.MenuButton("Weather", "Change the weather");
           button.Activated += (sender, args) =>
           {
           this.subWeather();
           };
           mainMenu.Add(button);

           button = new GTA.MenuButton("Teleports", "view the teleport list");
           button.Activated += (sender, args) =>
           {
           this.teleportLocations();
           };
           mainMenu.Add(button);

           button = new GTA.MenuButton("Teleport Regions", "view the teleport Regions");
           button.Activated += (sender, args) =>
           {
           this.teleportRegions();
           };
           mainMenu.Add(button);

           button = new GTA.MenuButton("Exit", "Close the menu");
           button.Activated += (sender, args) =>
           {
           this.View.CloseAllMenus();
           };
           mainMenu.Add(button);

           var main = new GTA.Menu("menu", mainMenu.ToArray());
           DrawMenu(main);
    }
Пример #12
0
    private void WeaponMenu()
    {
        List <IMenuItem> WeaponMenuList = new List <IMenuItem>();

        var button = new GTA.MenuButton("Melee List");

        button.Activated += (sender, args) => Melee();
        WeaponMenuList.Add(button);

        button            = new GTA.MenuButton("Pistol List");
        button.Activated += (sender, args) => Pistol();
        WeaponMenuList.Add(button);

        button            = new GTA.MenuButton("SMG List");
        button.Activated += (sender, args) => SMG();
        WeaponMenuList.Add(button);

        button            = new GTA.MenuButton("Shotgun List");
        button.Activated += (sender, args) => Shotgun();
        WeaponMenuList.Add(button);

        button            = new GTA.MenuButton("Rifle List");
        button.Activated += (sender, args) => Rifle();
        WeaponMenuList.Add(button);

        button            = new GTA.MenuButton("MG List");
        button.Activated += (sender, args) => MG();
        WeaponMenuList.Add(button);

        button            = new GTA.MenuButton("Sniper List");
        button.Activated += (sender, args) => Sniper();
        WeaponMenuList.Add(button);

        button            = new GTA.MenuButton("Heavy List");
        button.Activated += (sender, args) => Heavy();
        WeaponMenuList.Add(button);

        button            = new GTA.MenuButton("Thrown List");
        button.Activated += (sender, args) => Thrown();
        WeaponMenuList.Add(button);

        button            = new GTA.MenuButton("Return");
        button.Activated += (sender, args) => PreviousMenu();
        WeaponMenuList.Add(button);

        var mainMenu = new Menu("Weapon Menu", WeaponMenuList.ToArray());

        DrawMenu(mainMenu);
    }
Пример #13
0
    private void subWeapons()
    {
        List <IMenuItem> WeaponCategoriesList = new List <IMenuItem>();

        var button = new GTA.MenuButton("Melee");

        button.Activated += (sender, args) => meleeList();
        WeaponCategoriesList.Add(button);

        button            = new GTA.MenuButton("Pistol");
        button.Activated += (sender, args) => pistolList();
        WeaponCategoriesList.Add(button);

        button            = new GTA.MenuButton("SMG");
        button.Activated += (sender, args) => SMGList();
        WeaponCategoriesList.Add(button);

        button            = new GTA.MenuButton("Shotgun");
        button.Activated += (sender, args) => shotgunList();
        WeaponCategoriesList.Add(button);

        button            = new GTA.MenuButton("Rifle");
        button.Activated += (sender, args) => rifleList();
        WeaponCategoriesList.Add(button);

        button            = new GTA.MenuButton("MG");
        button.Activated += (sender, args) => mgList();
        WeaponCategoriesList.Add(button);

        button            = new GTA.MenuButton("Sniper");
        button.Activated += (sender, args) => sniperList();
        WeaponCategoriesList.Add(button);

        button            = new GTA.MenuButton("Heavy");
        button.Activated += (sender, args) => heavyList();
        WeaponCategoriesList.Add(button);

        button            = new GTA.MenuButton("Thrown");
        button.Activated += (sender, args) => thrownList();
        WeaponCategoriesList.Add(button);

        button            = new GTA.MenuButton("Back", "Return to the previous page");
        button.Activated += (sender, args) => View.HandleBack();
        WeaponCategoriesList.Add(button);

        var mainMenu = new Menu("Weapon Categories", WeaponCategoriesList.ToArray());

        DrawMenu(mainMenu);
    }
Пример #14
0
    void helicopterList()
    {
        List <MenuButton> helicopterMenuItems = new List <MenuButton>();

        foreach (KeyValuePair <VehicleHash, int> vehicles in helicopterVeh)
        {
            var button = new GTA.MenuButton(vehicles.Key.ToString());
            button.Activated += (sender, args) => spawnVehicle(button, vehicles);
            helicopterMenuItems.Add(button);
        }

        ListMenu MainMenu = new ListMenu("Helicopters", helicopterMenuItems.ToArray(), 10);

        DrawMenu(MainMenu);
    }
Пример #15
0
    void planeList()
    {
        List <MenuButton> planeMenuItems = new List <MenuButton>();

        foreach (KeyValuePair <VehicleHash, int> vehicles in planeVeh)
        {
            var button = new GTA.MenuButton(vehicles.Key.ToString());
            button.Activated += (sender, args) => spawnVehicle(button, vehicles);
            planeMenuItems.Add(button);
        }

        ListMenu MainMenu = new ListMenu("Planes", planeMenuItems.ToArray(), 10);

        DrawMenu(MainMenu);
    }
Пример #16
0
    private void subWeapons()
    {
        List<IMenuItem> WeaponCategoriesList = new List<IMenuItem>();

        var button = new GTA.MenuButton("Melee");
        button.Activated += (sender, args) => meleeList();
        WeaponCategoriesList.Add(button);

        button = new GTA.MenuButton("Pistol");
        button.Activated += (sender, args) => pistolList();
        WeaponCategoriesList.Add(button);

        button = new GTA.MenuButton("SMG");
        button.Activated += (sender, args) => SMGList();
        WeaponCategoriesList.Add(button);

        button = new GTA.MenuButton("Shotgun");
        button.Activated += (sender, args) => shotgunList();
        WeaponCategoriesList.Add(button);

        button = new GTA.MenuButton("Rifle");
        button.Activated += (sender, args) => rifleList();
        WeaponCategoriesList.Add(button);

        button = new GTA.MenuButton("MG");
        button.Activated += (sender, args) => mgList();
        WeaponCategoriesList.Add(button);

        button = new GTA.MenuButton("Sniper");
        button.Activated += (sender, args) => sniperList();
        WeaponCategoriesList.Add(button);

        button = new GTA.MenuButton("Heavy");
        button.Activated += (sender, args) => heavyList();
        WeaponCategoriesList.Add(button);

        button = new GTA.MenuButton("Thrown");
        button.Activated += (sender, args) => thrownList();
        WeaponCategoriesList.Add(button);

        button = new GTA.MenuButton("Back", "Return to the previous page");
        button.Activated += (sender, args) => View.HandleBack();
        WeaponCategoriesList.Add(button);

        var mainMenu = new Menu("Weapon Categories", WeaponCategoriesList.ToArray());
        DrawMenu(mainMenu);
    }
Пример #17
0
    void sportclassicList()
    {
        List <MenuButton> sportClassicMenuItems = new List <MenuButton>();

        foreach (KeyValuePair <VehicleHash, int> vehicles in sportClassicVeh)
        {
            var button = new GTA.MenuButton(vehicles.Key.ToString());
            button.Activated += (sender, args) => spawnVehicle(button, vehicles);
            sportClassicMenuItems.Add(button);
        }



        ListMenu MainMenu = new ListMenu("Sport Classic Cars", sportClassicMenuItems.ToArray(), 10);

        DrawMenu(MainMenu);
    }
Пример #18
0
    void compactList()
    {
        List <MenuButton> compactMenuItems = new List <MenuButton>();

        foreach (KeyValuePair <VehicleHash, int> vehicles in compactVeh)
        {
            var button = new GTA.MenuButton(vehicles.Key.ToString());
            button.Activated += (sender, args) => spawnVehicle(button, vehicles);
            compactMenuItems.Add(button);
        }



        ListMenu MainMenu = new ListMenu("Compact Cars", compactMenuItems.ToArray(), 10);

        DrawMenu(MainMenu);
    }
Пример #19
0
    void offroadList()
    {
        List <MenuButton> offRoadMenuItems = new List <MenuButton>();

        foreach (KeyValuePair <VehicleHash, int> vehicles in offroadVeh)
        {
            var button = new GTA.MenuButton(vehicles.Key.ToString());
            button.Activated += (sender, args) => spawnVehicle(button, vehicles);
            offRoadMenuItems.Add(button);
        }



        ListMenu MainMenu = new ListMenu("Off-Road Cars", offRoadMenuItems.ToArray(), 10);

        DrawMenu(MainMenu);
    }
Пример #20
0
    void Heavy()
    {
        List<MenuButton> heavyMenuItems = new List<MenuButton>();

        foreach (KeyValuePair<WeaponHash, int> weapon in heavy)
        {
            var button = new GTA.MenuButton(weapon.Key.ToString());
            button.Activated += (sender, args) => GiveWeapon(button, weapon);
            heavyMenuItems.Add(button);
        }

        var returnButton = new GTA.MenuButton("Return");
        returnButton.Activated += (sender, args) => PreviousMenu();
        heavyMenuItems.Add(returnButton);

        ListMenu MainMenu = new ListMenu("Heavy", heavyMenuItems.ToArray(), 10);
        DrawMenu(MainMenu);
    }
Пример #21
0
    public void teleportRegions()
    {
        List <IMenuItem> teleportRegionsSubMenu = new List <IMenuItem>();

        var button = new GTA.MenuButton("Central San Andreas", "Alamo Sea, Grand Senora Desert, Tongva hills");

        button.Activated += (sender, args) =>
        {
            this.subTeleportCentral();
        };
        teleportRegionsSubMenu.Add(button);

        button            = new GTA.MenuButton("North San Andreas", "Paleto Bay, Chilliad, Mount Gordo");
        button.Activated += (sender, args) =>
        {
            this.subTeleportNorth();
        };
        teleportRegionsSubMenu.Add(button);

        button            = new GTA.MenuButton("South San Andreas", "Los Santos, Vinewood, Tatavium Mountains,");
        button.Activated += (sender, args) =>
        {
            this.subTeleportSouth();
        };
        teleportRegionsSubMenu.Add(button);

        button            = new GTA.MenuButton("East San Andreas", "Chianski Mountain Range, Grapeseed");
        button.Activated += (sender, args) =>
        {
            this.subTeleportEast();
        };
        teleportRegionsSubMenu.Add(button);

        button            = new GTA.MenuButton("West San Andreas", "Chumash, ");
        button.Activated += (sender, args) =>
        {
            this.subTeleportWest();
        };
        teleportRegionsSubMenu.Add(button);

        var main = new GTA.Menu("Teleport Regions", teleportRegionsSubMenu.ToArray());

        DrawMenu(main);
    }
Пример #22
0
    void MainMenu()
    {
        List <IMenuItem> mainMenuList = new List <IMenuItem>();

        var WeaponMenuButton = new GTA.MenuButton("Weapon Menu", "Pick from all the game's weapons!");

        WeaponMenuButton.Activated += (sender, args) => WeaponMenu();
        mainMenuList.Add(WeaponMenuButton);

        var WehMenuButton = new GTA.MenuButton("Vehicle Menu", "Spawn any vehicle you like!");

        WehMenuButton.Activated += (sender, args) => SpawnMenu();
        mainMenuList.Add(WehMenuButton);

        var WeaponOptionsMenuButton = new GTA.MenuButton("Weapon Options", "Customize your weapons!");

        WeaponOptionsMenuButton.Activated += (sender, args) => WeaponOptionMenu();
        mainMenuList.Add(WeaponOptionsMenuButton);

        var VehOptionsMenuButton = new GTA.MenuButton("Vehicle Options", "Customize and repair your vehicles!");

        VehOptionsMenuButton.Activated += (sender, args) => VehOptionsMenu();
        mainMenuList.Add(VehOptionsMenuButton);

        var PlayerptionsMenuButton = new GTA.MenuButton("Player Options", "Change and edit player options!");

        PlayerptionsMenuButton.Activated += (sender, args) => PlayerOptionsMenu();
        mainMenuList.Add(PlayerptionsMenuButton);

        var WorldptionsMenuButton = new GTA.MenuButton("World Options", "Change and edit World options!");

        WorldptionsMenuButton.Activated += (sender, args) => WorldOptionsMenu();
        mainMenuList.Add(WorldptionsMenuButton);


        var ExitButton = new GTA.MenuButton("Exit", "Return to the game!");

        ExitButton.Activated += (sender, args) => Exit();
        mainMenuList.Add(ExitButton);

        var MainMenu = new GTA.Menu("Main Menu", mainMenuList.ToArray());

        DrawMenu(MainMenu);
    }
Пример #23
0
    public void teleportRegions()
    {
        List<IMenuItem> teleportRegionsSubMenu = new List<IMenuItem>();

        var button = new GTA.MenuButton("Central San Andreas", "Alamo Sea, Grand Senora Desert, Tongva hills");
        button.Activated += (sender, args) =>
        {
            this.subTeleportCentral();
        };
        teleportRegionsSubMenu.Add(button);

        button = new GTA.MenuButton("North San Andreas", "Paleto Bay, Chilliad, Mount Gordo");
        button.Activated += (sender, args) =>
        {
            this.subTeleportNorth();
        };
        teleportRegionsSubMenu.Add(button);

        button = new GTA.MenuButton("South San Andreas", "Los Santos, Vinewood, Tatavium Mountains,");
        button.Activated += (sender, args) =>
        {
            this.subTeleportSouth();
        };
        teleportRegionsSubMenu.Add(button);

        button = new GTA.MenuButton("East San Andreas", "Chianski Mountain Range, Grapeseed");
        button.Activated += (sender, args) =>
        {
            this.subTeleportEast();
        };
        teleportRegionsSubMenu.Add(button);

        button = new GTA.MenuButton("West San Andreas", "Chumash, ");
        button.Activated += (sender, args) =>
        {
            this.subTeleportWest();
        };
        teleportRegionsSubMenu.Add(button);

        var main = new GTA.Menu("Teleport Regions", teleportRegionsSubMenu.ToArray());
        DrawMenu(main);
    }
Пример #24
0
    void Pistol()
    {
        List <MenuButton> pistolMenuItems = new List <MenuButton>();

        foreach (KeyValuePair <WeaponHash, int> weapon in pistols)
        {
            var button = new GTA.MenuButton(weapon.Key.ToString());
            button.Activated += (sender, args) => GiveWeapon(button, weapon);
            pistolMenuItems.Add(button);
        }

        var returnButton = new GTA.MenuButton("Return");

        returnButton.Activated += (sender, args) => PreviousMenu();
        pistolMenuItems.Add(returnButton);

        ListMenu MainMenu = new ListMenu("Pistols", pistolMenuItems.ToArray(), 10);

        DrawMenu(MainMenu);
    }
Пример #25
0
    void Melee()
    {
        List <MenuButton> meleeMenuItems = new List <MenuButton>();

        foreach (KeyValuePair <WeaponHash, int> weapon in melee)
        {
            var button = new GTA.MenuButton(weapon.Key.ToString());
            button.Activated += (sender, args) => GiveWeapon(button, weapon);
            meleeMenuItems.Add(button);
        }

        var button1 = new GTA.MenuButton("Return");

        button1.Activated += (sender, args) => PreviousMenu();
        meleeMenuItems.Add(button1);

        ListMenu MainMenu = new ListMenu("Melee Weapons", meleeMenuItems.ToArray(), 10);

        DrawMenu(MainMenu);
    }
Пример #26
0
    void Plane()
    {
        List <MenuButton> planeMenuItems = new List <MenuButton>();

        foreach (KeyValuePair <VehicleHash, int> vehicles in planeVeh)
        {
            var button = new GTA.MenuButton(vehicles.Key.ToString());
            button.Activated += (sender, args) => Spawn(button, vehicles);
            planeMenuItems.Add(button);
        }

        var returnButton = new GTA.MenuButton("Return");

        returnButton.Activated += (sender, args) => PreviousMenu();
        planeMenuItems.Add(returnButton);

        ListMenu MainMenu = new ListMenu("Planes", planeMenuItems.ToArray(), 10);

        DrawMenu(MainMenu);
    }
Пример #27
0
    void OffRoad()
    {
        List <MenuButton> offRoadMenuItems = new List <MenuButton>();

        foreach (KeyValuePair <VehicleHash, int> vehicles in offroadVeh)
        {
            var button = new GTA.MenuButton(vehicles.Key.ToString());
            button.Activated += (sender, args) => Spawn(button, vehicles);
            offRoadMenuItems.Add(button);
        }

        var returnButton = new GTA.MenuButton("Return");

        returnButton.Activated += (sender, args) => PreviousMenu();
        offRoadMenuItems.Add(returnButton);

        ListMenu MainMenu = new ListMenu("Off-Road Cars", offRoadMenuItems.ToArray(), 10);

        DrawMenu(MainMenu);
    }
Пример #28
0
    public void subTeleportCentral()
    {
        //Alamo Sea, Grand Senora Desert, South Chilliad, Tongva hills

        List <IMenuItem> RegionsCentral = new List <IMenuItem>();

        var button = new GTA.MenuButton("Alamo Sea");

        button.Activated += (sender, args) =>
        {
            this.alamoSea();
        };
        RegionsCentral.Add(button);

        button            = new GTA.MenuButton("Grand Senora Desert");
        button.Activated += (sender, args) =>
        {
            this.grandSenoraDesert();
        };
        RegionsCentral.Add(button);

        button            = new GTA.MenuButton("South Chilliad");
        button.Activated += (sender, args) =>
        {
            this.southChilliad();
        };
        RegionsCentral.Add(button);

        button            = new GTA.MenuButton("Tongva Hills");
        button.Activated += (sender, args) =>
        {
            this.tongvaHils();
        };
        RegionsCentral.Add(button);

        var main = new GTA.Menu("Central San Andreas", RegionsCentral.ToArray());

        DrawMenu(main);
    }
Пример #29
0
    public void subTeleportSouth()
    {
        //Los Santos, Vinewood, Tatavium Mountains, Banham Canyon

        List <IMenuItem> RegionsSouth = new List <IMenuItem>();

        var button = new GTA.MenuButton("Los Santos");

        button.Activated += (sender, args) =>
        {
            this.losSantos();
        };
        RegionsSouth.Add(button);

        button            = new GTA.MenuButton("Vinewood");
        button.Activated += (sender, args) =>
        {
            this.vinewood();
        };
        RegionsSouth.Add(button);

        button            = new GTA.MenuButton("Tatavium Mountains");
        button.Activated += (sender, args) =>
        {
            this.tataviumMountains();
        };
        RegionsSouth.Add(button);

        button            = new GTA.MenuButton("Banham Canyon");
        button.Activated += (sender, args) =>
        {
            this.banhamCanyon();
        };
        RegionsSouth.Add(button);

        var main = new GTA.Menu("South San Andreas", RegionsSouth.ToArray());

        DrawMenu(main);
    }
Пример #30
0
    public void subTeleportEast()
    {
        //Chianski Mountain Range, Grapeseed

        List<IMenuItem> RegionsEast = new List<IMenuItem>();

        var button = new GTA.MenuButton("Chianski Mountain Range");
        button.Activated += (sender, args) =>
        {
            this.chianskiMountainRange();
        };
        RegionsEast.Add(button);

        button = new GTA.MenuButton("Grapeseed");
        button.Activated += (sender, args) =>
        {
            this.grapeseed();
        };
        RegionsEast.Add(button);

        var main = new GTA.Menu("East San Andreas", RegionsEast.ToArray());
        DrawMenu(main);
    }
Пример #31
0
    public void subTeleportWest()
    {
        //Zancudo, Chilliad state Wilderness

        List<IMenuItem> RegionsWest = new List<IMenuItem>();

        var button = new GTA.MenuButton("Chumash");
        button.Activated += (sender, args) =>
        {
            this.chumash();
        };
        RegionsWest.Add(button);

        button = new GTA.MenuButton("Chilliad State Wilderness");
        button.Activated += (sender, args) =>
        {
            this.chilliadStateWilderness();
        };
        RegionsWest.Add(button);

        var main = new GTA.Menu("West San Andreas", RegionsWest.ToArray());
        DrawMenu(main);
    }
Пример #32
0
    public void subTeleportCentral()
    {
        //Alamo Sea, Grand Senora Desert, South Chilliad, Tongva hills

        List<IMenuItem> RegionsCentral = new List<IMenuItem>();

        var button = new GTA.MenuButton("Alamo Sea");
        button.Activated += (sender, args) =>
        {
            this.alamoSea();
        };
        RegionsCentral.Add(button);

        button = new GTA.MenuButton("Grand Senora Desert");
        button.Activated += (sender, args) =>
        {
            this.grandSenoraDesert();
        };
        RegionsCentral.Add(button);

        button = new GTA.MenuButton("South Chilliad");
        button.Activated += (sender, args) =>
        {
            this.southChilliad();
        };
        RegionsCentral.Add(button);

        button = new GTA.MenuButton("Tongva Hills");
        button.Activated += (sender, args) =>
        {
            this.tongvaHils();
        };
        RegionsCentral.Add(button);

        var main = new GTA.Menu("Central San Andreas", RegionsCentral.ToArray());
        DrawMenu(main);
    }
Пример #33
0
    void MainMenu()
    {
        List<IMenuItem> mainMenuList = new List<IMenuItem>();

        var WeaponMenuButton = new GTA.MenuButton("Weapon Menu", "Pick from all the game's weapons!");
        WeaponMenuButton.Activated += (sender, args) => WeaponMenu();
        mainMenuList.Add(WeaponMenuButton);

        var WehMenuButton = new GTA.MenuButton("Vehicle Menu", "Spawn any vehicle you like!");
        WehMenuButton.Activated += (sender, args) => SpawnMenu();
        mainMenuList.Add(WehMenuButton);

        var WeaponOptionsMenuButton = new GTA.MenuButton("Weapon Options", "Customize your weapons!");
        WeaponOptionsMenuButton.Activated += (sender, args) => WeaponOptionMenu();
        mainMenuList.Add(WeaponOptionsMenuButton);

        var VehOptionsMenuButton = new GTA.MenuButton("Vehicle Options", "Customize and repair your vehicles!");
        VehOptionsMenuButton.Activated += (sender, args) => VehOptionsMenu();
        mainMenuList.Add(VehOptionsMenuButton);

        var PlayerptionsMenuButton = new GTA.MenuButton("Player Options", "Change and edit player options!");
        PlayerptionsMenuButton.Activated += (sender, args) => PlayerOptionsMenu();
        mainMenuList.Add(PlayerptionsMenuButton);

        var WorldptionsMenuButton = new GTA.MenuButton("World Options", "Change and edit World options!");
        WorldptionsMenuButton.Activated += (sender, args) => WorldOptionsMenu();
        mainMenuList.Add(WorldptionsMenuButton);

        var ExitButton = new GTA.MenuButton("Exit", "Return to the game!");
        ExitButton.Activated += (sender, args) => Exit();
        mainMenuList.Add(ExitButton);

        var MainMenu = new GTA.Menu("Main Menu", mainMenuList.ToArray());

        DrawMenu(MainMenu);
    }
Пример #34
0
    public void subWeather()
    {
        List <IMenuItem> weatherList = new List <IMenuItem>();

        var Button = new GTA.MenuButton("Blizzard");

        Button.Activated += (sender, args) => World.Weather = Weather.Blizzard;
        weatherList.Add(Button);

        Button            = new GTA.MenuButton("Christmas");
        Button.Activated += (sender, args) => World.Weather = Weather.Christmas;
        weatherList.Add(Button);

        Button            = new GTA.MenuButton("Clear");
        Button.Activated += (sender, args) => World.Weather = Weather.Clear;
        weatherList.Add(Button);

        Button            = new GTA.MenuButton("Clearing");
        Button.Activated += (sender, args) => World.Weather = Weather.Clearing;
        weatherList.Add(Button);

        Button            = new GTA.MenuButton("Clouds");
        Button.Activated += (sender, args) => World.Weather = Weather.Clouds;
        weatherList.Add(Button);

        Button            = new GTA.MenuButton("Extra Sunny");
        Button.Activated += (sender, args) => World.Weather = Weather.ExtraSunny;
        weatherList.Add(Button);

        Button            = new GTA.MenuButton("Foggy");
        Button.Activated += (sender, args) => World.Weather = Weather.Foggy;
        weatherList.Add(Button);

        Button            = new GTA.MenuButton("Neutral");
        Button.Activated += (sender, args) => World.Weather = Weather.Neutral;
        weatherList.Add(Button);

        Button            = new GTA.MenuButton("Overcast");
        Button.Activated += (sender, args) => World.Weather = Weather.Overcast;
        weatherList.Add(Button);

        Button            = new GTA.MenuButton("Raining");
        Button.Activated += (sender, args) => World.Weather = Weather.Raining;
        weatherList.Add(Button);

        Button            = new GTA.MenuButton("Smog");
        Button.Activated += (sender, args) => World.Weather = Weather.Smog;
        weatherList.Add(Button);

        Button            = new GTA.MenuButton("Snowing");
        Button.Activated += (sender, args) => World.Weather = Weather.Snowing;
        weatherList.Add(Button);

        Button            = new GTA.MenuButton("Snowlight");
        Button.Activated += (sender, args) => World.Weather = Weather.Snowlight;
        weatherList.Add(Button);

        Button            = new GTA.MenuButton("Thunderstorm");
        Button.Activated += (sender, args) => World.Weather = Weather.ThunderStorm;
        weatherList.Add(Button);

        Button            = new GTA.MenuButton("Back", "Return to the previous page");
        Button.Activated += (sender, args) => View.HandleBack();
        weatherList.Add(Button);

        var mainMenu = new Menu("Change Weather", weatherList.ToArray());

        DrawMenu(mainMenu);
    }
Пример #35
0
    void Melee()
    {
        List<MenuButton> meleeMenuItems = new List<MenuButton>();

        foreach (KeyValuePair<WeaponHash, int> weapon in melee)
        {
            var button = new GTA.MenuButton(weapon.Key.ToString());
            button.Activated += (sender, args) => GiveWeapon(button, weapon);
            meleeMenuItems.Add(button);
        }

        var button1 = new GTA.MenuButton("Return");
        button1.Activated += (sender, args) => PreviousMenu();
        meleeMenuItems.Add(button1);

        ListMenu MainMenu = new ListMenu("Melee Weapons", meleeMenuItems.ToArray(), 10);
        DrawMenu(MainMenu);
    }
Пример #36
0
    public void subVehicles()
    {
        List <IMenuItem> vehicleCategoriesList = new List <IMenuItem>();

        var Button = new GTA.MenuButton("Super");

        Button.Activated += (sender, args) => superList();
        vehicleCategoriesList.Add(Button);

        Button            = new GTA.MenuButton("Sport");
        Button.Activated += (sender, args) => sportList();
        vehicleCategoriesList.Add(Button);

        Button            = new GTA.MenuButton("MotorCycles ");
        Button.Activated += (sender, args) => motorcycleList();
        vehicleCategoriesList.Add(Button);

        /*
         * Button = new GTA.MenuButton("Utility");
         * Button .Activated += (sender, args) => utilityList();
         * vehicleCategoriesList.Add(Button);
         */
        Button            = new GTA.MenuButton("Helicopters ");
        Button.Activated += (sender, args) => helicopterList();
        vehicleCategoriesList.Add(Button);

        Button            = new GTA.MenuButton("Planes");
        Button.Activated += (sender, args) => planeList();
        vehicleCategoriesList.Add(Button);

        Button            = new GTA.MenuButton("Sport Classic ");
        Button.Activated += (sender, args) => sportclassicList();
        vehicleCategoriesList.Add(Button);

        Button            = new GTA.MenuButton("Sedan ");
        Button.Activated += (sender, args) => sedanList();
        vehicleCategoriesList.Add(Button);

        Button            = new GTA.MenuButton("Muscle ");
        Button.Activated += (sender, args) => muscleList();
        vehicleCategoriesList.Add(Button);

        Button            = new GTA.MenuButton("Off-Road ");
        Button.Activated += (sender, args) => offroadList();
        vehicleCategoriesList.Add(Button);

        Button            = new GTA.MenuButton("SUV ");
        Button.Activated += (sender, args) => suvList();
        vehicleCategoriesList.Add(Button);

        Button            = new GTA.MenuButton("Van ");
        Button.Activated += (sender, args) => vanList();
        vehicleCategoriesList.Add(Button);

        Button            = new GTA.MenuButton("Industrial ");
        Button.Activated += (sender, args) => industrialList();
        vehicleCategoriesList.Add(Button);

        Button            = new GTA.MenuButton("Commercial");
        Button.Activated += (sender, args) => commercialList();
        vehicleCategoriesList.Add(Button);

        Button            = new GTA.MenuButton("Military ");
        Button.Activated += (sender, args) => militaryList();
        vehicleCategoriesList.Add(Button);

        Button            = new GTA.MenuButton("Service ");
        Button.Activated += (sender, args) => serviceList();
        vehicleCategoriesList.Add(Button);

        Button            = new GTA.MenuButton("Cycles");
        Button.Activated += (sender, args) => cycleList();
        vehicleCategoriesList.Add(Button);

        Button            = new GTA.MenuButton("Compacts");
        Button.Activated += (sender, args) => compactList();
        vehicleCategoriesList.Add(Button);

        Button            = new GTA.MenuButton("Coupes");
        Button.Activated += (sender, args) => coupeList();
        vehicleCategoriesList.Add(Button);

        Button            = new GTA.MenuButton("Back", "Return to the previous page");
        Button.Activated += (sender, args) => View.HandleBack();
        vehicleCategoriesList.Add(Button);

        var mainMenu = new Menu("Vehicle Categories", vehicleCategoriesList.ToArray());

        DrawMenu(mainMenu);
    }
Пример #37
0
    private void WeaponMenu()
    {
        List<IMenuItem> WeaponMenuList = new List<IMenuItem>();

        var button = new GTA.MenuButton("Melee List");
        button.Activated += (sender, args) => Melee();
        WeaponMenuList.Add(button);

        button = new GTA.MenuButton("Pistol List");
        button.Activated += (sender, args) => Pistol();
        WeaponMenuList.Add(button);

        button = new GTA.MenuButton("SMG List");
        button.Activated += (sender, args) => SMG();
        WeaponMenuList.Add(button);

        button = new GTA.MenuButton("Shotgun List");
        button.Activated += (sender, args) => Shotgun();
        WeaponMenuList.Add(button);

        button = new GTA.MenuButton("Rifle List");
        button.Activated += (sender, args) => Rifle();
        WeaponMenuList.Add(button);

        button = new GTA.MenuButton("MG List");
        button.Activated += (sender, args) => MG();
        WeaponMenuList.Add(button);

        button = new GTA.MenuButton("Sniper List");
        button.Activated += (sender, args) => Sniper();
        WeaponMenuList.Add(button);

        button = new GTA.MenuButton("Heavy List");
        button.Activated += (sender, args) => Heavy();
        WeaponMenuList.Add(button);

        button = new GTA.MenuButton("Thrown List");
        button.Activated += (sender, args) => Thrown();
        WeaponMenuList.Add(button);

        button = new GTA.MenuButton("Return");
        button.Activated += (sender, args) => PreviousMenu();
        WeaponMenuList.Add(button);

        var mainMenu = new Menu("Weapon Menu", WeaponMenuList.ToArray());
        DrawMenu(mainMenu);
    }
Пример #38
0
    public void subWeather()
    {
        List<IMenuItem> weatherList = new List<IMenuItem>();

        var Button = new GTA.MenuButton("Blizzard");
        Button.Activated += (sender, args) => World.Weather = Weather.Blizzard;
        weatherList.Add(Button);

        Button = new GTA.MenuButton("Christmas");
        Button.Activated += (sender, args) => World.Weather = Weather.Christmas;
        weatherList.Add(Button);

        Button = new GTA.MenuButton("Clear");
        Button.Activated += (sender, args) => World.Weather = Weather.Clear;
        weatherList.Add(Button);

        Button = new GTA.MenuButton("Clearing");
        Button.Activated += (sender, args) => World.Weather = Weather.Clearing;
        weatherList.Add(Button);

        Button = new GTA.MenuButton("Clouds");
        Button.Activated += (sender, args) => World.Weather = Weather.Clouds;
        weatherList.Add(Button);

        Button = new GTA.MenuButton("Extra Sunny");
        Button.Activated += (sender, args) => World.Weather = Weather.ExtraSunny;
        weatherList.Add(Button);

        Button = new GTA.MenuButton("Foggy");
        Button.Activated += (sender, args) => World.Weather = Weather.Foggy;
        weatherList.Add(Button);

        Button = new GTA.MenuButton("Neutral");
        Button.Activated += (sender, args) => World.Weather = Weather.Neutral;
        weatherList.Add(Button);

        Button = new GTA.MenuButton("Overcast");
        Button.Activated += (sender, args) => World.Weather = Weather.Overcast;
        weatherList.Add(Button);

        Button = new GTA.MenuButton("Raining");
        Button.Activated += (sender, args) => World.Weather = Weather.Raining;
        weatherList.Add(Button);

        Button = new GTA.MenuButton("Smog");
        Button.Activated += (sender, args) => World.Weather = Weather.Smog;
        weatherList.Add(Button);

        Button = new GTA.MenuButton("Snowing");
        Button.Activated += (sender, args) => World.Weather = Weather.Snowing;
        weatherList.Add(Button);

        Button = new GTA.MenuButton("Snowlight");
        Button.Activated += (sender, args) => World.Weather = Weather.Snowlight;
        weatherList.Add(Button);

        Button = new GTA.MenuButton("Thunderstorm");
        Button.Activated += (sender, args) => World.Weather = Weather.ThunderStorm;
        weatherList.Add(Button);

        Button = new GTA.MenuButton("Back", "Return to the previous page");
        Button.Activated += (sender, args) => View.HandleBack();
        weatherList.Add(Button);

        var mainMenu = new Menu("Change Weather", weatherList.ToArray());
        DrawMenu(mainMenu);
    }
Пример #39
0
    private void SpawnMenu()
    {
        List <IMenuItem> SpawnMenuList = new List <IMenuItem>();

        var button = new GTA.MenuButton("Super List");

        button.Activated += (sender, args) => Super();
        SpawnMenuList.Add(button);

        button            = new GTA.MenuButton("Sport List");
        button.Activated += (sender, args) => Sport();
        SpawnMenuList.Add(button);

        button            = new GTA.MenuButton("MotorCycles List");
        button.Activated += (sender, args) => MotorCycle();
        SpawnMenuList.Add(button);

        button            = new GTA.MenuButton("Utility List");
        button.Activated += (sender, args) => Exit();
        SpawnMenuList.Add(button);

        button            = new GTA.MenuButton("Helicopters List");
        button.Activated += (sender, args) => Helicopter();
        SpawnMenuList.Add(button);

        button            = new GTA.MenuButton("Planes List");
        button.Activated += (sender, args) => Plane();
        SpawnMenuList.Add(button);

        button            = new GTA.MenuButton("Sport Classic List");
        button.Activated += (sender, args) => SportClassic();
        SpawnMenuList.Add(button);

        button            = new GTA.MenuButton("Sedan List");
        button.Activated += (sender, args) => Sedan();
        SpawnMenuList.Add(button);

        button            = new GTA.MenuButton("Muscle List");
        button.Activated += (sender, args) => Muscle();
        SpawnMenuList.Add(button);

        button            = new GTA.MenuButton("Off-Road List");
        button.Activated += (sender, args) => OffRoad();
        SpawnMenuList.Add(button);

        button            = new GTA.MenuButton("SUV List");
        button.Activated += (sender, args) => SUV();
        SpawnMenuList.Add(button);

        button            = new GTA.MenuButton("Van List");
        button.Activated += (sender, args) => Van();
        SpawnMenuList.Add(button);

        button            = new GTA.MenuButton("Industrial List");
        button.Activated += (sender, args) => Industrial();
        SpawnMenuList.Add(button);

        button            = new GTA.MenuButton("Commercial List");
        button.Activated += (sender, args) => Commercial();
        SpawnMenuList.Add(button);

        button            = new GTA.MenuButton("Military List");
        button.Activated += (sender, args) => Military();
        SpawnMenuList.Add(button);

        button            = new GTA.MenuButton("Service List");
        button.Activated += (sender, args) => Service();
        SpawnMenuList.Add(button);

        button            = new GTA.MenuButton("Cycles List");
        button.Activated += (sender, args) => Cycle();
        SpawnMenuList.Add(button);

        button            = new GTA.MenuButton("Compacts List");
        button.Activated += (sender, args) => Compact();
        SpawnMenuList.Add(button);

        button            = new GTA.MenuButton("Coupes List");
        button.Activated += (sender, args) => Coupe();
        SpawnMenuList.Add(button);

        var returnButton = new GTA.MenuButton("Return");

        returnButton.Activated += (sender, args) => PreviousMenu();
        SpawnMenuList.Add(returnButton);

        var mainMenu = new Menu("Vehicle Menu", SpawnMenuList.ToArray());

        DrawMenu(mainMenu);
    }
Пример #40
0
    public void subVehicles()
    {
        List<IMenuItem> vehicleCategoriesList = new List<IMenuItem>();

        var Button = new GTA.MenuButton("Super");
        Button .Activated += (sender, args) => superList();
        vehicleCategoriesList.Add(Button);

        Button = new GTA.MenuButton("Sport");
        Button .Activated += (sender, args) => sportList();
        vehicleCategoriesList.Add(Button);

        Button = new GTA.MenuButton("MotorCycles ");
        Button .Activated += (sender, args) => motorcycleList();
        vehicleCategoriesList.Add(Button);
        /*
        Button = new GTA.MenuButton("Utility");
        Button .Activated += (sender, args) => utilityList();
        vehicleCategoriesList.Add(Button);
        */
        Button = new GTA.MenuButton("Helicopters ");
        Button .Activated += (sender, args) => helicopterList();
        vehicleCategoriesList.Add(Button);

        Button = new GTA.MenuButton("Planes");
        Button .Activated += (sender, args) => planeList();
        vehicleCategoriesList.Add(Button);

        Button = new GTA.MenuButton("Sport Classic ");
        Button .Activated += (sender, args) => sportclassicList();
        vehicleCategoriesList.Add(Button);

        Button = new GTA.MenuButton("Sedan ");
        Button .Activated += (sender, args) => sedanList();
        vehicleCategoriesList.Add(Button);

        Button = new GTA.MenuButton("Muscle ");
        Button .Activated += (sender, args) => muscleList();
        vehicleCategoriesList.Add(Button);

        Button = new GTA.MenuButton("Off-Road ");
        Button .Activated += (sender, args) => offroadList();
        vehicleCategoriesList.Add(Button);

        Button = new GTA.MenuButton("SUV ");
        Button .Activated += (sender, args) => suvList();
        vehicleCategoriesList.Add(Button);

        Button = new GTA.MenuButton("Van ");
        Button .Activated += (sender, args) => vanList();
        vehicleCategoriesList.Add(Button);

        Button = new GTA.MenuButton("Industrial ");
        Button .Activated += (sender, args) => industrialList();
        vehicleCategoriesList.Add(Button);

        Button = new GTA.MenuButton("Commercial");
        Button .Activated += (sender, args) => commercialList();
        vehicleCategoriesList.Add(Button);

        Button = new GTA.MenuButton("Military ");
        Button .Activated += (sender, args) => militaryList();
        vehicleCategoriesList.Add(Button);

        Button = new GTA.MenuButton("Service ");
        Button .Activated += (sender, args) => serviceList();
        vehicleCategoriesList.Add(Button);

        Button = new GTA.MenuButton("Cycles");
        Button .Activated += (sender, args) => cycleList();
        vehicleCategoriesList.Add(Button);

        Button = new GTA.MenuButton("Compacts");
        Button .Activated += (sender, args) => compactList();
        vehicleCategoriesList.Add(Button);

        Button = new GTA.MenuButton("Coupes");
        Button .Activated += (sender, args) => coupeList();
        vehicleCategoriesList.Add(Button);

        Button = new GTA.MenuButton("Back", "Return to the previous page");
        Button.Activated += (sender, args) => View.HandleBack();
        vehicleCategoriesList.Add(Button);

        var mainMenu = new Menu("Vehicle Categories", vehicleCategoriesList .ToArray());
        DrawMenu(mainMenu);
    }
Пример #41
0
    void industrialList()
    {
        List<MenuButton> industriaMenuItems = new List<MenuButton>();

        foreach (KeyValuePair<VehicleHash, int> vehicles in industrialVeh)
        {
            var button = new GTA.MenuButton(vehicles.Key.ToString());
            button.Activated += (sender, args) => spawnVehicle(button, vehicles);
            industriaMenuItems.Add(button);
        }

        ListMenu MainMenu = new ListMenu("Industrial Vehicles", industriaMenuItems.ToArray(), 10);
        DrawMenu(MainMenu);
    }
Пример #42
0
        void MainMenu()
        {
            GTA.MenuButton btnToggleInfection = new GTA.MenuButton("Toggle Infection");
            GTA.MenuButton btnIncreaseRadius = new GTA.MenuButton("Increase Radius");
            GTA.MenuButton btnDecreaseRadius = new GTA.MenuButton("Decrease Radius");

            btnToggleInfection.Activated += btnToggleInfection_Activated;
            btnIncreaseRadius.Activated += btnIncreaseRadius_Activated;
            btnDecreaseRadius.Activated += btnDecreaseRadius_Activated;
            _selectedItem = 0;

            _menuItems = new List<GTA.IMenuItem>()
            {
                btnToggleInfection,
                btnIncreaseRadius,
                btnDecreaseRadius
            };
            _branch = 1;
            GTA.Menu menu = new GTA.Menu("Infection by ZyDevs", _menuItems.ToArray()) { Width = 300 };
            _viewPort = new Viewport();
            menu.HeaderColor = Color.FromArgb(160, Color.Aqua);
            menu.ItemHeight = 30;
            menu.HeaderFont = GTA.Font.Pricedown;
            menu.HeaderHeight = 35;
            menu.SelectedItemColor = Color.FromArgb(150, Color.DimGray);
            menu.SelectedTextColor = Color.FromArgb(255, Color.White);
            menu.UnselectedTextColor = Color.FromArgb(255, Color.DodgerBlue);
            menu.UnselectedItemColor = Color.FromArgb(175, Color.Black);
            menu.HeaderFont = GTA.Font.ChaletComprimeCologne;
            menu.FooterColor = Color.Transparent;
            _viewPort.MenuPosition = new Point(1, 1);
            _viewPort.AddMenu(menu);
            _isMenuOpen = true;
        }
Пример #43
0
    void offroadList()
    {
        List<MenuButton> offRoadMenuItems = new List<MenuButton>();

        foreach (KeyValuePair<VehicleHash, int> vehicles in offroadVeh)
        {
            var button = new GTA.MenuButton(vehicles.Key.ToString());
            button.Activated += (sender, args) => spawnVehicle(button, vehicles);
            offRoadMenuItems.Add(button);
        }

        ListMenu MainMenu = new ListMenu("Off-Road Cars", offRoadMenuItems.ToArray(), 10);
        DrawMenu(MainMenu);
    }
Пример #44
0
    void sportclassicList()
    {
        List<MenuButton> sportClassicMenuItems = new List<MenuButton>();

        foreach (KeyValuePair<VehicleHash, int> vehicles in sportClassicVeh)
        {
            var button = new GTA.MenuButton(vehicles.Key.ToString());
            button.Activated += (sender, args) => spawnVehicle(button, vehicles);
            sportClassicMenuItems.Add(button);
        }

        ListMenu MainMenu = new ListMenu("Sport Classic Cars", sportClassicMenuItems.ToArray(), 10);
        DrawMenu(MainMenu);
    }