public LoadOutDelegate(int count, string name, LoadOutScreen l)
     : base()
 {
     thecount = count;
     chosen = name;
     parent = l;
 }
Example #2
0
 public LoadOutDelegate(int count, string name, LoadOutScreen l)
     : base()
 {
     thecount = count;
     chosen   = name;
     parent   = l;
 }
Example #3
0
        public LoadOutMenu(Vector2 position, MenuAction[] actions, int count, LoadOutScreen parent)
            : base(position, actions)
        {
            MenuEntry gun = new MenuEntry(
                "Gun",
                new MenuAction[]
            {
                new MenuAction(ActionType.Select, new LoadOutDelegate(count, "Gun", parent))
            },
                position);

            MenuEntry axe = new MenuEntry(
                "Melee",
                new MenuAction[]
            {
                new MenuAction(ActionType.Select, new LoadOutDelegate(count, "Melee", parent))
            },
                position + new Vector2(0, 80));

            MenuEntry shield = new MenuEntry(
                "Shield",
                new MenuAction[]
            {
                new MenuAction(ActionType.Select, new LoadOutDelegate(count, "Shield", parent))
            },
                position + new Vector2(0, 160));

            gun.LowerMenu    = axe;
            axe.UpperMenu    = gun;
            axe.LowerMenu    = shield;
            shield.UpperMenu = axe;

            this.Add(gun);
            this.Add(axe);
            this.Add(shield);
        }
        public LoadOutMenu(Vector2 position, MenuAction[] actions, int count, LoadOutScreen parent)
            : base(position, actions)
        {
            MenuEntry gun = new MenuEntry(
                "Gun",
                new MenuAction[]
                {
                    new MenuAction(ActionType.Select, new LoadOutDelegate(count, "Gun", parent))
                },
                position);

            MenuEntry axe = new MenuEntry(
                "Melee",
                new MenuAction[]
                {
                    new MenuAction(ActionType.Select, new LoadOutDelegate(count, "Melee", parent))
                },
                position + new Vector2(0, 80));

            MenuEntry shield = new MenuEntry(
                "Shield",
                new MenuAction[]
                {
                    new MenuAction(ActionType.Select, new LoadOutDelegate(count, "Shield", parent))
                },
                position + new Vector2(0,160));

            gun.LowerMenu = axe;
            axe.UpperMenu = gun;
            axe.LowerMenu = shield;
            shield.UpperMenu = axe;

            this.Add(gun);
            this.Add(axe);
            this.Add(shield);
        }