Esempio n. 1
0
        public Dialog(GameScreen screen, WidgetInfo info, DisplayLayer drawOrder)
            : base(screen, info, drawOrder)
        {
            IsVisible = true;
            Done = () => {
                IsVisible = false;
            };

            // create a new SpriteBatch, which can be used to draw textures
            spriteBatch = new SpriteBatch (screen.device);

            // menu
            WidgetInfo menuInfo = new WidgetInfo ();
            buttons = new Menu (screen, menuInfo, DisplayLayer.Menu);
            buttons.ItemForegroundColor = ButtonForegroundColor;
            buttons.ItemBackgroundColor = ButtonBackgroundColor;
            buttons.ItemAlignX = HorizontalAlignment.Center;
            buttons.ItemAlignY = VerticalAlignment.Center;
        }
Esempio n. 2
0
 public StartScreen(Knot3Game game)
     : base(game)
 {
     menu = new Menu (this, new WidgetInfo (), DisplayLayer.Menu);
 }