示例#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
    private void DrawMenu(GTA.Menu MainMenu)
    {
        //ALPHA , RED , GREEN , BLUE

        // Header Layout
        MainMenu.HeaderCentered  = true;
        MainMenu.HeaderHeight   += 5;
        MainMenu.HeaderTextScale = 0.64f;
        MainMenu.HeaderFont      = GTA.Font.ChaletComprimeCologne;
        MainMenu.HeaderColor     = System.Drawing.Color.FromArgb(175, 51, 153, 255);

        // Items Layout
        MainMenu.ItemTextCentered    = true;
        MainMenu.ItemHeight         -= 7;
        MainMenu.ItemTextScale       = 0.32f;
        MainMenu.SelectedItemColor   = System.Drawing.Color.FromArgb(220, 255, 255, 255);
        MainMenu.UnselectedItemColor = System.Drawing.Color.FromArgb(80, 230, 230, 230);
        MainMenu.SelectedTextColor   = System.Drawing.Color.FromArgb(255, 0, 0, 0);
        MainMenu.UnselectedTextColor = System.Drawing.Color.FromArgb(255, 0, 0, 0);

        // Footer Layout
        MainMenu.HasFooter       = true;
        MainMenu.FooterColor     = System.Drawing.Color.FromArgb(175, 51, 153, 255);
        MainMenu.FooterHeight   += -17;
        MainMenu.FooterTextScale = 0.50f;
        MainMenu.FooterTextColor = System.Drawing.Color.FromArgb(220, 255, 255, 255);
        MainMenu.FooterFont      = GTA.Font.ChaletComprimeCologne;
        MainMenu.FooterCentered  = true;

        View.MenuPosition = new System.Drawing.Point(35, 20);
        View.AddMenu(MainMenu);
    }
示例#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
文件: Menu.cs 项目: Colata/GTA-5-Mods
    private void DrawMenu(GTA.Menu menuLayout)
    {
        //FROZETS MENU LAYOUT

        // Header Layout
        menuLayout.HeaderCentered  = true;
        menuLayout.HeaderHeight   += 5;
        menuLayout.HeaderTextScale = 0.64f;
        menuLayout.HeaderFont      = GTA.Font.ChaletComprimeCologne;
        menuLayout.HeaderColor     = System.Drawing.Color.FromArgb(175, 51, 153, 255);

        // Items Layout
        menuLayout.ItemTextCentered    = true;
        menuLayout.ItemHeight         -= 7;
        menuLayout.ItemTextScale       = 0.32f;
        menuLayout.SelectedItemColor   = System.Drawing.Color.FromArgb(220, 255, 255, 255);
        menuLayout.UnselectedItemColor = System.Drawing.Color.FromArgb(80, 230, 230, 230);
        menuLayout.SelectedTextColor   = System.Drawing.Color.FromArgb(255, 0, 0, 0);
        menuLayout.UnselectedTextColor = System.Drawing.Color.FromArgb(255, 0, 0, 0);

        // Footer Layout
        menuLayout.HasFooter       = true;
        menuLayout.FooterColor     = System.Drawing.Color.FromArgb(175, 51, 153, 255);
        menuLayout.FooterHeight   += -17;
        menuLayout.FooterTextScale = 0.50f;
        menuLayout.FooterTextColor = System.Drawing.Color.FromArgb(220, 255, 255, 255);
        menuLayout.FooterFont      = GTA.Font.ChaletComprimeCologne;
        menuLayout.FooterCentered  = true;

        View.MenuPosition = new System.Drawing.Point(35, 20);
        View.AddMenu(menuLayout);
    }
示例#6
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);
    }
示例#7
0
文件: Menu.cs 项目: Colata/GTA-5-Mods
    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 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);
    }
示例#9
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);
    }
示例#10
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);
    }
示例#11
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);
    }
示例#12
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);
    }
示例#13
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);
    }
示例#14
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);
    }
示例#15
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);
    }
示例#16
0
文件: Menu.cs 项目: Colata/GTA-5-Mods
    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);
    }
示例#17
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);
    }