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(); }
public NewGameMenu(Game1 game, Color col) : base(game) { }
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>(); }
public Menu(Game1 game) { _game = game; }