private static Frame initPostGame(ContentManager Content)
 {
     Frame fpostgame = new Frame(800, 500);
     return fpostgame;
 }
        private static Frame initHostLobby(ContentManager Content)
        {
            SpriteFont font = Content.Load<SpriteFont>("Kootenay");
            Frame fhostlobby = new Frame(800, 500);

            Sprite_Text start = SpriteBin.The.AddTextSprite(font, "Start Game", "start");
            Sprite_Text ready = SpriteBin.The.AddTextSprite(font, "Ready", "ready");

            Button eStart = new Button("start", start, 0, 400);
            ToggleButton eReady = new ToggleButton("ready", ready, 400, 400, Color.White, Color.Green);

            fhostlobby.addElement(eReady);
            fhostlobby.addElement(eStart);

            return fhostlobby;
        }
        private static Frame initHome(ContentManager Content)
        {
            SpriteFont font = Content.Load<SpriteFont>("Kootenay");
            Frame fhome = new Frame(800, 500);

            Sprite_Text create = SpriteBin.The.AddTextSprite(font, "Create Game", "create");
            Sprite_Text join = SpriteBin.The.AddTextSprite(font, "Join Game", "join");

            Button eJoin = new Button("join", join, 0, 0);
            Button eCreate = new Button("create", create, 400, 0);

            fhome.addElement(eCreate);
            fhome.addElement(eJoin);
            return fhome;
        }
        private static Frame initClientLobby(ContentManager Content)
        {
            SpriteFont font = Content.Load<SpriteFont>("Kootenay");
            Frame fclientlobby = new Frame(800, 500);
            Sprite_Text ready = SpriteBin.The.AddTextSprite(font, "Ready", "ready");
            ToggleButton eReady = new ToggleButton("ready", ready, 400, 400, Color.White, Color.Green);

            fclientlobby.addElement(eReady);
            return fclientlobby;
        }
Beispiel #5
0
 public void init(ContentManager Content)
 {
     windows = new WindowDefinitions(Content);
     _root = windows.Frames["home"];
 }
Beispiel #6
0
 private void switchFrame(String frame)
 {
     _root = windows.Frames[frame];
 }