mirror of
https://github.com/AlexMacocian/MonoGame.Extended.git
synced 2026-07-24 20:12:23 +00:00
27 lines
644 B
C#
27 lines
644 B
C#
using System;
|
|
using Microsoft.Xna.Framework;
|
|
|
|
namespace Demo.Features.Screens
|
|
{
|
|
public class MainMenuScreen : MenuScreen
|
|
{
|
|
private readonly Game _game;
|
|
|
|
public MainMenuScreen(IServiceProvider serviceProvider, Game game)
|
|
: base(serviceProvider)
|
|
{
|
|
_game = game;
|
|
}
|
|
|
|
public override void LoadContent()
|
|
{
|
|
base.LoadContent();
|
|
|
|
AddMenuItem("New Game", () => { });
|
|
AddMenuItem("Load Game", Show<LoadGameScreen>);
|
|
AddMenuItem("Options", Show<OptionsScreen>);
|
|
AddMenuItem("Exit", _game.Exit);
|
|
}
|
|
}
|
|
}
|