Beispiel #1
0
 public LoadMapMenu(GraphicsDevice graphicsDevice, ContentManager Content, MenuHandler menuHandler, PuzzleEngineAlpha.Scene.MapHandlerScene mapHandler, PuzzleEngineAlpha.Level.TileMap tileMap)
 {
     this.tileMap = tileMap;
     miniMap      = new PuzzleEngineAlpha.Level.MiniMap(Content, graphicsDevice, new Vector2(400, 300), new PuzzleEngineAlpha.Databases.Level.BinaryMapSerialization(), new PuzzleEngineAlpha.Databases.Level.BinaryLevelInfoSerialization());
     components   = new List <AGUIComponent>();
     InitializeGUI(Content, menuHandler);
     backGround      = Content.Load <Texture2D>(@"textures/whiteRectangle");
     this.mapHandler = mapHandler;
     PuzzleEngineAlpha.Resolution.ResolutionHandler.Changed += ResetSizes;
 }