Example #1
0
        public MainMenu(Game1 game,Color col)
            : base(game)
        {
            int pos = 0;

             Vector2 cornerpos = new Vector2(60,200);
             Vector2 inc = new Vector2(0,100);

             Del trig = game.NewGame;
             myItems.Add(new MenuItem(game,col, cornerpos+(inc*pos), "New survey", trig));
             _currentItem = myItems[0];
             pos++;

             //Stuff to go here!!  HACK
             myItems.Add(new MenuItem(game, col, cornerpos + (inc * pos), "Load", trig));
             pos++;

             //Stuff to go here!!  HACK
             myItems.Add(new MenuItem(game, col, cornerpos + (inc * pos), "Options", trig));
             pos++;

             _currentItem = myItems[0];
             _currentItem.Select();
        }
Example #2
0
 public NewGameMenu(Game1 game, Color col)
     : base(game)
 {
 }
Example #3
0
 public MenuItem(Game1 game,Color col,Vector2 pos,string txt,Del trig)
 {
     _normalcolour = col;
     _color = _normalcolour;
     displayText = txt;
     _position = pos;
     TriggerMethod = trig;
     textures = game.Services.GetService<Textures>();
 }
Example #4
0
 public Menu(Game1 game)
 {
     _game = game;
 }