public GametypeVsMenu(Game1 g) : base(g) { pos = new Vector2(-Config.screenW * 3, Config.screenH * 2); backdrop = TextureManager.bParkWildernessLeft; elements.Add(new MenuElement("competitive", null, new Vector2( 10, 10), true, this, delegate() { })); c = Color.White; destination = pos; //elements[0].Selected = true; gameTypes.Add(new MenuElement("face off", null, new Vector2( ((Config.screenW / 3) * 2) - ("face off".Length * GFont.width) - 10, ((Config.screenH / 20) * 4) + (Config.screenH / 10)), true, this, delegate() { MenuSystem.gameType = GameType.vsSurvival; })); gameTypes.Add(new MenuElement("theif", null, new Vector2( ((Config.screenW / 3) * 2) - ("thief".Length * GFont.width) - 10, ((Config.screenH / 20) * 7) + (Config.screenH / 10)), true, this, delegate() { MenuSystem.gameType = GameType.thief; })); description = new MenuElement("", null, new Vector2((Config.screenW / 3) * 2 + (Config.screenW / 20), (Config.screenH / 20) * 7), false, this, delegate() { }); description.SetToDescr(); UpdateDescr(); }
public GametypeCoopMenu(Game1 g) : base(g) { pos = new Vector2(-Config.screenW*2, Config.screenH * 2); backdrop = TextureManager.bParkWildernessRight; elements.Add(new MenuElement("cooperative", null, new Vector2( Config.screenW - (GFont.width * "cooperative".Length) - 10, 10), true, this, delegate() { })); c = Color.White; destination = pos; //elements[0].Selected = true; gameTypes.Add(new MenuElement("survival", null, new Vector2( (Config.screenW / 3) + 10, ((Config.screenH / 20) * 4) + (Config.screenH / 10)), true, this, delegate() { MenuSystem.gameType = GameType.survival; })); gameTypes.Add(new MenuElement("hot potato", null, new Vector2( (Config.screenW / 3) + 10, ((Config.screenH / 20) * 7) + (Config.screenH / 10)), true, this, delegate() { MenuSystem.gameType = GameType.hotPotato; })); description = new MenuElement("", null, new Vector2(20, (Config.screenH / 20) * 7), false, this, delegate() { }); description.SetToDescr(); UpdateDescr(); }