// Should eventualy read from an xml file public static Frame_Home BuildHomeFrame(ContentManager Content) { SpriteFont font = Content.Load<SpriteFont>("Kootenay"); Frame_Home fhome = new Frame_Home(800, 500); Sprite_Text create = SpriteBin.The.AddTextSprite(font, "Create Game", "create"); Sprite_Text join = SpriteBin.The.AddTextSprite(font, "Join Game", "join"); Sprite_Text replay = SpriteBin.The.AddTextSprite(font, "Replay Game", "replay"); Button eJoin = new Button("join", join, 0, 0); Button eCreate = new Button("create", create, 200, 0); Button eReplay = new Button("replay", replay, 400, 0); fhome.addElement(eCreate); fhome.addElement(eJoin); fhome.addElement(eReplay); return fhome; }
public void LoadContent(ContentManager Content) { _frame = WindowDefinitions.BuildHomeFrame(Content); }