/// <summary> /// LoadContent will be called once per game and is the place to load /// all of your content. /// </summary> public void LoadContent(ContentManager Content) { //Load Game Logic galaxy = new Galaxy(GameProperties.galaxyWidth, GameProperties.galaxyHeight, GameProperties.numberOfSystems); buildings = new List <BaseBuilding>(); AddDefaultBuildings(); //--------------------------------------------------------------------- //Load Visual Assets titleFont = Content.Load <SpriteFont>("titlefont"); horzBorderTex = Content.Load <Texture2D>("borderstraight"); vertBorderTex = Content.Load <Texture2D>("vertborderstraight"); blankTex = Content.Load <Texture2D>("blanktex"); //Set up dimensions of all windows initializeWindows(); //Load Control Window Textures Texture2D buttonGridTex = Content.Load <Texture2D>("controlbuttontile"); mainControls.LoadTexture(buttonGridTex, titleFont); //Load ScheduleList Textures Texture2D buttonSchedGridTex = Content.Load <Texture2D>("schedulebuttontile"); Texture2D assestSchedGridTex = Content.Load <Texture2D>("scheduleassettile"); scheduleList.LoadTexture(buttonSchedGridTex, assestSchedGridTex, titleFont); currentInGameTime = new DateTime(2123, 1, 22, 8, 0, 0, 0, DateTimeKind.Unspecified); scheduleList.DisplayedTime = currentInGameTime; //Load Detail List Window Textures SpriteFont detailFont = Content.Load <SpriteFont>("detaillist"); detailList.LoadTexture(detailFont, galaxy.Home); //Load View Screen Window Textures Texture2D galaxyViewScreenTex = Content.Load <Texture2D>("galaxyviewtiles"); Texture2D baseViewScreenTex = Content.Load <Texture2D>("basetiles"); viewScreen.LoadContent(galaxyViewScreenTex, baseViewScreenTex, detailFont, galaxy); //Connect Window Controller winCon.Initialize(viewScreen, scheduleList, detailList, mainControls); }