public void LoadContent() { ContentManager Content = gameplay.SceneManager.Game.Content; Texture2D texture; Texture2D textureActive; Texture2D textureInactive; font = Content.Load<SpriteFont>(@"fonts\gameplay\hud_font"); texture = Content.Load<Texture2D>(@"images\gameplay\buttons\life_label"); LifeLabel = new Label(texture, new Vector2(800,50)); texture = Content.Load<Texture2D>(@"images\gameplay\buttons\money_label"); MoneyLabel = new Label(texture, new Vector2(20,35)); textureActive = Content.Load<Texture2D>(@"images\gameplay\buttons\pause_enable_but"); textureInactive = Content.Load<Texture2D>(@"images\gameplay\buttons\play_enable_but"); playButton = new ToggleButton(textureActive, null, null, textureInactive, new Vector2(75,675)); playButton.Clicked += PlayButton_Clicked; playButton.Active = true; textureActive = Content.Load<Texture2D>(@"images\gameplay\buttons\fast_enable_but"); textureInactive = Content.Load<Texture2D>(@"images\gameplay\buttons\fast_disable_but"); fastButton = new ToggleButton(textureActive, null, null, textureInactive, new Vector2(135,675)); fastButton.Clicked += FastButton_Clicked; fastButton.Active = false; textureActive = Content.Load<Texture2D>(@"images\gameplay\buttons\setting_enable_but"); textureInactive = Content.Load<Texture2D>(@"images\gameplay\buttons\setting_disable_but"); settingButton = new Button(textureInactive,null, textureActive, new Vector2(203,675)); settingButton.Clicked += SettingButton_Clicked; }
public override void LoadContent() { ContentManager Content = sceneManager.Game.Content; Texture2D normalTexture,pressTexture; BackgroundTexture = Content.Load<Texture2D>(@"images\scene\CommonButton\FadeScreen"); Viewport viewport = SceneManager.GraphicsDevice.Viewport; BackgroundRectangle = new Rectangle(viewport.X, viewport.Y, viewport.Width, viewport.Height); normalTexture = Content.Load<Texture2D>(@"images\scene\EndGameScene\mission_finished"); MissionLabel = new Label(); MissionLabel.Texture = normalTexture; MissionLabel.Center = new Vector2(512, 450); normalTexture = Content.Load<Texture2D>(@"images\scene\EndGameScene\replay_normal_but"); pressTexture = Content.Load<Texture2D>(@"images\scene\EndGameScene\replay_press_but"); RestartButton = new Button(normalTexture, null, pressTexture, new Vector2(280, 580)); RestartButton.Clicked += RestartButton_Clicked; normalTexture = Content.Load<Texture2D>(@"images\scene\EndGameScene\continue_normal_but"); pressTexture = Content.Load<Texture2D>(@"images\scene\EndGameScene\continue_press_but"); ContinueButton = new Button(normalTexture, null, pressTexture, new Vector2(560, 580)); ContinueButton.Clicked += ContinueButton_Clicked; font = Content.Load<SpriteFont>(@"fonts\EndGameScene\end_game"); MediaPlayer.Play(endGameSong); }
public override void LoadContent() { ContentManager Content = sceneManager.Game.Content; Texture2D texture = Content.Load<Texture2D>(@"images\scene\GameTipScene\control_map_tut"); tip_label = new Label(); tip_label.Texture = texture; tip_label.Center = new Vector2(512, 384); }
public override void LoadContent() { ContentManager Content = gameplay.SceneManager.Game.Content; Texture2D texture = Content.Load<Texture2D>(@"images\gameplay\EndGameLayer\victory_label"); VictoryLabel = new Label(); VictoryLabel.Texture = texture; VictoryLabel.Center = new Vector2(512, 100); base.LoadContent(); }
public void LoadContent(ContentManager Content) { Texture2D texture, hoverTexture; texture = Content.Load<Texture2D>(@"images\gameplay\buttons\next_waves_label"); NextWavesLabel = new Label(texture, new Vector2(975,100)); texture = Content.Load<Texture2D>(@"images\gameplay\buttons\arrow_normal_but"); hoverTexture = Content.Load<Texture2D>(@"images\gameplay\buttons\arrow_hover_but"); ArrowButton = new Button(texture, hoverTexture, null, new Vector2(975,100) + ArrowOffset); ArrowButton.Hovered += ArrowButton_Hovered; font = Content.Load<SpriteFont>(@"fonts\gameplay\next_wave"); }
public override void LoadContent() { ContentManager Content = sceneManager.Game.Content; Texture2D texture = Content.Load<Texture2D>(@"images\scene\EndGameScene\defeat_label"); DefeatLabel = new Label(); DefeatLabel.Texture = texture; DefeatLabel.Center = new Vector2(512, 100); normal_font = Content.Load<SpriteFont>(@"fonts\DefeatScene\normal_font"); endGameSong = Content.Load<Song>(@"audio\song\defeat"); AudioManager.PauseMovingSound(); base.LoadContent(); }
public virtual void LoadContent() { ContentManager Content = gameplay.SceneManager.Game.Content; Texture2D normalTexture,pressTexture; normalTexture = Content.Load<Texture2D>(@"images\gameplay\EndGameLayer\mission_finished"); MissionLabel = new Label(); MissionLabel.Texture = normalTexture; MissionLabel.Center = new Vector2(512, 384); normalTexture = Content.Load<Texture2D>(@"images\gameplay\EndGameLayer\replay_normal_but"); pressTexture = Content.Load<Texture2D>(@"images\gameplay\EndGameLayer\replay_press_but"); ReplayButton = new Button(normalTexture, null, pressTexture, new Vector2(200, 100)); ReplayButton.Clicked += ReplayButton_Clicked; normalTexture = Content.Load<Texture2D>(@"images\gameplay\EndGameLayer\continue_normal_but"); pressTexture = Content.Load<Texture2D>(@"images\gameplay\EndGameLayer\continue_press_but"); ContinueButton = new Button(normalTexture, null, pressTexture, new Vector2(100, 300)); ContinueButton.Clicked += ContinueButton_Clicked; }
// Detailed customer window public void InitializeComponent(Form parent, ClienteModels cliente) { // Window parameters this.BackColor = ColorTranslator.FromHtml("#6d6a75"); this.Font = new Font(this.Font, FontStyle.Bold); this.Size = new Size(500, 445); this.idCliente = cliente.IdCliente; this.clienteX = cliente; this.parent = parent; // PictureBox this.pb_Detalhe = new Library.PictureBox(); this.pb_Detalhe.Load("./Views/assets/cliente.jpg"); this.Controls.Add(pb_Detalhe); // Label + Database Informations this.lbl_IdCliente = new Library.Label(); this.lbl_IdCliente.Text = "ID do Cliente: " + cliente.IdCliente; this.lbl_IdCliente.Location = new Point(20, 110); this.lbl_IdCliente.Font = new Font(lbl_IdCliente.Font, FontStyle.Bold); this.lbl_IdCliente.ForeColor = Color.White; this.Controls.Add(lbl_IdCliente); this.lbl_Nome = new Library.Label(); this.lbl_Nome.Text = "Nome: " + cliente.NomeCliente; this.lbl_Nome.Location = new Point(20, 150); this.lbl_Nome.Font = new Font(lbl_Nome.Font, FontStyle.Bold); this.lbl_Nome.ForeColor = Color.White; this.Controls.Add(lbl_Nome); this.lbl_DataNasc = new Library.Label(); this.lbl_DataNasc.Text = "Data de Nascimento: " + cliente.DataNascimento; this.lbl_DataNasc.Location = new Point(20, 190); this.lbl_DataNasc.Font = new Font(lbl_DataNasc.Font, FontStyle.Bold); this.lbl_DataNasc.ForeColor = Color.White; this.Controls.Add(lbl_DataNasc); this.lbl_CPF = new Library.Label(); this.lbl_CPF.Text = "CPF: " + cliente.CpfCliente; this.lbl_CPF.Location = new Point(20, 230); this.lbl_CPF.Font = new Font(lbl_CPF.Font, FontStyle.Bold); this.lbl_CPF.ForeColor = Color.White; this.Controls.Add(lbl_CPF); this.lbl_DiasDevol = new Library.Label(); this.lbl_DiasDevol.Text = "Dias P/ Devolução: " + cliente.DiasDevolucao.ToString(); this.lbl_DiasDevol.Location = new Point(20, 270); this.lbl_DiasDevol.Font = new Font(lbl_DiasDevol.Font, FontStyle.Bold); this.lbl_DiasDevol.ForeColor = Color.White; this.Controls.Add(lbl_DiasDevol); // Detail customer grouping box this.gb_ClienteDetalhe = new Library.GroupBox(); this.gb_ClienteDetalhe.Location = new Point(10, 80); this.gb_ClienteDetalhe.Size = new Size(460, 240); this.gb_ClienteDetalhe.Text = "CONSULTA CLIENTES"; this.Controls.Add(gb_ClienteDetalhe); // Delete Button this.btn_DeleteCliente = new Library.ButtonDetail(ButtonType.Delete); this.btn_DeleteCliente.Text = "DELETAR"; this.btn_DeleteCliente.Location = new Point(10, 340); this.btn_DeleteCliente.Size = new Size(140, 50); this.btn_DeleteCliente.BackColor = ColorTranslator.FromHtml("#e98274"); this.btn_DeleteCliente.Click += new EventHandler(this.btn_DeleteClienteClick); this.Controls.Add(btn_DeleteCliente); // Update Button this.btn_UpdateCliente = new Library.ButtonDetail(ButtonType.Update); this.btn_UpdateCliente.Text = "ALTERAR"; this.btn_UpdateCliente.Location = new Point(170, 340); this.btn_UpdateCliente.Size = new Size(140, 50); this.btn_UpdateCliente.BackColor = ColorTranslator.FromHtml("#efeb7f"); this.btn_UpdateCliente.Click += new EventHandler(this.btn_UpdateClienteClick); this.Controls.Add(btn_UpdateCliente); // Exit Button this.btn_SairDetalhe = new Library.ButtonDetail(ButtonType.Sair); this.btn_SairDetalhe.Text = "SAIR"; this.btn_SairDetalhe.Location = new Point(330, 340); this.btn_SairDetalhe.Size = new Size(140, 50); this.btn_SairDetalhe.BackColor = ColorTranslator.FromHtml("#5de96e"); this.btn_SairDetalhe.Click += new EventHandler(this.btn_SairDetalheClick); this.Controls.Add(btn_SairDetalhe); }
public override void LoadContent() { ContentManager Content = SceneManager.Game.Content; Texture2D texture; //Load Enemy texture Enemy.HEALTH_BAR_TEXTURE = Content.Load<Texture2D>(@"images\gameplay\health_bar"); AxeMan.TEXTURE = Content.Load<Texture2D>(@"images\gameplay\enemies\axeman"); texture = Content.Load<Texture2D>(@"images\gameplay\enemies\axeman_move"); AxeMan.MOVE_ANIMATION = new Animation(texture, 6, 1, 0.2f, true); SawMan.TEXTURE = Content.Load<Texture2D>(@"images\gameplay\enemies\sawman"); texture = Content.Load<Texture2D>(@"images\gameplay\enemies\sawman_move"); SawMan.MOVE_ANIMATION = new Animation(texture, 6, 1, 0.2f, true); Dozer.TEXTURE = Content.Load<Texture2D>(@"images\gameplay\enemies\dozer"); texture = Content.Load<Texture2D>(@"images\gameplay\enemies\dozer_move"); Dozer.MOVE_ANIMATION = new Animation(texture, 4, 3, 0.2f, true); TowerLoadManager.LoadContent(Content); //Load bullets texture OakTower.BULLET_TEXTURE = Content.Load<Texture2D>(@"images\gameplay\bullets\oakbullet"); CactusTower.BULLET_TEXTURE = Content.Load<Texture2D>(@"images\gameplay\bullets\cactusbullet"); PineappleTower.BULLET_TEXTURE = Content.Load<Texture2D>(@"images\gameplay\bullets\pineapplebullet"); // Load particle effect OakBullet.EFFECT = Content.Load<ParticleEffect>(@"particles\treeEffect").DeepCopy(); CactusBullet.EFFECT = Content.Load<ParticleEffect>(@"particles\slowEffect").DeepCopy(); PineappleBullet.EFFECT = Content.Load<ParticleEffect>(@"particles\explosionEffect").DeepCopy(); OakBullet.EFFECT.LoadContent(Content); CactusBullet.EFFECT.LoadContent(Content); PineappleBullet.EFFECT.LoadContent(Content); OakBullet.EFFECT.Initialise(); CactusBullet.EFFECT.Initialise(); PineappleBullet.EFFECT.Initialise(); //Load cac label Texture2D textureEnable, textureDisable; ValueLabel.FONT = Content.Load<SpriteFont>(@"fonts\gameplay\value_font"); if (!UserData.isTowerLock((int)TowerType.Oak)) { textureEnable = Content.Load<Texture2D>(@"images\gameplay\buttons\oak_tower_enable_but"); textureDisable = Content.Load<Texture2D>(@"images\gameplay\buttons\oak_tower_disable_but"); OakTowerLabel = new ToggleValueLabel(textureEnable, textureDisable, new Vector2(600, 640), new Vector2(32, 72), OakTower.COST); } if (!UserData.isTowerLock((int)TowerType.Cactus)) { textureEnable = Content.Load<Texture2D>(@"images\gameplay\buttons\cactus_tower_enable_but"); textureDisable = Content.Load<Texture2D>(@"images\gameplay\buttons\cactus_tower_disable_but"); CactusTowerLabel = new ToggleValueLabel(textureEnable, textureDisable, new Vector2(700, 640), new Vector2(32, 72), CactusTower.COST); } if (!UserData.isTowerLock((int)TowerType.Pineapple)) { textureEnable = Content.Load<Texture2D>(@"images\gameplay\buttons\pineapple_tower_enable_but"); textureDisable = Content.Load<Texture2D>(@"images\gameplay\buttons\pineapple_tower_disable_but"); PineappleTowerLabel = new ToggleValueLabel(textureEnable, textureDisable, new Vector2(800, 640), new Vector2(32, 72), PineappleTower.COST); } textureEnable = Content.Load<Texture2D>(@"images\gameplay\buttons\upgrade_enable_but"); textureDisable = Content.Load<Texture2D>(@"images\gameplay\buttons\upgrade_disable_but"); UpgradeLabel = new ToggleValueLabel(textureEnable, textureDisable, Vector2.Zero, new Vector2(12, 41)); texture = Content.Load<Texture2D>(@"images\gameplay\buttons\sell_but"); SellLabel = new ValueLabel(texture, Vector2.Zero, new Vector2(12, 41)); textureEnable = Content.Load<Texture2D>(@"images\gameplay\range_enable"); textureDisable = Content.Load<Texture2D>(@"images\gameplay\range_disable"); RangeLabel = new ToggleLabel(textureEnable, textureDisable, Vector2.Zero); RangeLabel.LayerDepth = 0.31f; CursorLabel = new Label(); CursorLabel.LayerDepth = 0.3f; wave_font = Content.Load<SpriteFont>(@"fonts\gameplay\wave_info"); //Load content sau khi LoadMap WaveTable = new NextWavesTable(); WaveTable.LoadContent(Content); HudLayer = new HUDLayer(this); HudLayer.LoadContent(); LoadNewGame(); }
// Detailed movie window public void InitializeComponent(Form parent, FilmeModels filme) { // Window parameters this.BackColor = ColorTranslator.FromHtml("#6d6a75"); this.Font = new Font(this.Font, FontStyle.Bold); this.Size = new Size(500, 565); this.idFilme = filme.IdFilme; this.FilmeX = filme; this.parent = parent; // PictureBox this.pb_Detalhe = new Library.PictureBox(); this.pb_Detalhe.Load("./Views/assets/filme.jpg"); this.Controls.Add(pb_Detalhe); // Label + Database Informations this.lbl_IdFilme = new Library.Label(); this.lbl_IdFilme.Text = "ID do Filme: " + filme.IdFilme; this.lbl_IdFilme.Location = new Point(20, 110); this.Controls.Add(lbl_IdFilme); this.lbl_Titulo = new Library.Label(); this.lbl_Titulo.Text = "Título: " + filme.Titulo; this.lbl_Titulo.Location = new Point(20, 150); this.Controls.Add(lbl_Titulo); this.lbl_DataLancamento = new Library.Label(); this.lbl_DataLancamento.Text = "Data de Lançamento: " + filme.DataLancamento.ToString(); this.lbl_DataLancamento.Location = new Point(20, 190); this.Controls.Add(lbl_DataLancamento); this.lbl_Sinopse = new Library.Label(); this.lbl_Sinopse.Text = "Sinopse: "; this.lbl_Sinopse.Location = new Point(20, 230); this.Controls.Add(lbl_Sinopse); this.rtxt_Sinopse = new Library.RichTextBox(); this.rtxt_Sinopse.Text = "" + filme.Sinopse; this.rtxt_Sinopse.Location = new Point(20, 250); this.rtxt_Sinopse.Size = new Size(440, 80); this.rtxt_Sinopse.ReadOnly = true; this.Controls.Add(rtxt_Sinopse); this.lbl_ValorFilme = new Library.Label(); this.lbl_ValorFilme.Text = "Preço Aluguel: " + filme.ValorLocacaoFilme.ToString(); this.lbl_ValorFilme.Location = new Point(20, 360); this.Controls.Add(lbl_ValorFilme); this.lbl_QtdeFilme = new Library.Label(); this.lbl_QtdeFilme.Text = "Quantidade Estoque: " + filme.EstoqueFilme.ToString(); this.lbl_QtdeFilme.Location = new Point(20, 400); this.Controls.Add(lbl_QtdeFilme); // Detail movie grouping box this.gb_FilmeDetalhe = new Library.GroupBox(); this.gb_FilmeDetalhe.Location = new Point(10, 80); this.gb_FilmeDetalhe.Size = new Size(460, 360); this.gb_FilmeDetalhe.Text = "CONSULTA FILMES"; this.Controls.Add(gb_FilmeDetalhe); // Delete Button this.btn_DeleteFilme = new Library.ButtonDetail(ButtonType.Delete); this.btn_DeleteFilme.Text = "DELETAR"; this.btn_DeleteFilme.Location = new Point(10, 460); this.btn_DeleteFilme.Size = new Size(140, 50); this.btn_DeleteFilme.BackColor = ColorTranslator.FromHtml("#e98274"); this.btn_DeleteFilme.Click += new EventHandler(this.btn_DeleteFilmeClick); this.Controls.Add(btn_DeleteFilme); // Update Button this.btn_UpdateFilme = new Library.ButtonDetail(ButtonType.Update); this.btn_UpdateFilme.Text = "ALTERAR"; this.btn_UpdateFilme.Location = new Point(170, 460); this.btn_UpdateFilme.Size = new Size(140, 50); this.btn_UpdateFilme.BackColor = ColorTranslator.FromHtml("#efeb7f"); this.btn_UpdateFilme.Click += new EventHandler(this.btn_UpdateFilmeClick); this.Controls.Add(btn_UpdateFilme); // Exit Button this.btn_SairDetalhe = new Library.ButtonDetail(ButtonType.Sair); this.btn_SairDetalhe.Text = "SAIR"; this.btn_SairDetalhe.Location = new Point(330, 460); this.btn_SairDetalhe.Size = new Size(140, 50); this.btn_SairDetalhe.BackColor = ColorTranslator.FromHtml("#5de96e"); this.btn_SairDetalhe.Click += new EventHandler(this.btn_SairDetalheClick); this.Controls.Add(btn_SairDetalhe); }
// Detailed rental window public void InitializeComponent(Form parent, LocacaoModels locacao) { // Window parameters this.BackColor = ColorTranslator.FromHtml("#6d6a75"); this.Font = new Font(this.Font, FontStyle.Bold); this.Size = new Size(600, 615); this.idLocacao = locacao.IdLocacao; this.locacaoX = locacao; this.parent = parent; // PictureBox this.pb_Detalhe = new Library.PictureBox(); this.pb_Detalhe.Load("./Views/assets/Locacao.jpg"); this.Controls.Add(pb_Detalhe); ClienteModels cliente = ClienteController.GetCliente(locacao.IdCliente); // Label + Database Informations this.lbl_IdCliente = new Library.Label(); this.lbl_IdCliente.Text = "ID do Cliente: " + locacao.IdCliente.ToString(); this.lbl_IdCliente.Location = new Point(20, 105); this.Controls.Add(lbl_IdCliente); this.lbl_NomeCliente = new Library.Label(); this.lbl_NomeCliente.Text = "Nome: " + cliente.NomeCliente; this.lbl_NomeCliente.Location = new Point(20, 135); this.Controls.Add(lbl_NomeCliente); this.lbl_DataNascimento = new Library.Label(); this.lbl_DataNascimento.Text = "Data de Nascimento: " + cliente.DataNascimento; this.lbl_DataNascimento.Location = new Point(20, 165); this.Controls.Add(lbl_DataNascimento); this.lbl_CpfCliente = new Library.Label(); this.lbl_CpfCliente.Text = "CPF: " + cliente.CpfCliente; this.lbl_CpfCliente.Location = new Point(300, 165); this.Controls.Add(lbl_CpfCliente); this.lbl_IdLocacao = new Library.Label(); this.lbl_IdLocacao.Text = "ID da Locação: " + locacao.IdLocacao.ToString(); this.lbl_IdLocacao.Location = new Point(20, 235); this.Controls.Add(lbl_IdLocacao); this.lbl_DataLocacao = new Library.Label(); this.lbl_DataLocacao.Text = "Data da Locação: " + locacao.DataLocacao.ToString("dd/MM/yyyy"); this.lbl_DataLocacao.Location = new Point(20, 265); this.Controls.Add(lbl_DataLocacao); this.lbl_DataDevolucao = new Library.Label(); this.lbl_DataDevolucao.Text = "Data de Devolução: " + locacao.CalculoDataDevol().ToString("dd/MM/yyyy"); this.lbl_DataDevolucao.Location = new Point(300, 265); this.Controls.Add(lbl_DataDevolucao); this.lbl_QtdeFilmes = new Library.Label(); this.lbl_QtdeFilmes.Text = "Quantidade de Filmes: " + locacao.QtdeFilmes().ToString(); this.lbl_QtdeFilmes.Location = new Point(20, 295); this.Controls.Add(lbl_QtdeFilmes); this.lbl_ValorTotal = new Library.Label(); this.lbl_ValorTotal.Text = "Total da Locação: " + locacao.ValorTotal().ToString("C2"); this.lbl_ValorTotal.Location = new Point(300, 295); this.Controls.Add(lbl_ValorTotal); this.rtxt_Filmes = new Library.RichTextBox(); this.rtxt_Filmes.Text = "" + locacao.FilmesLocados(); this.rtxt_Filmes.Location = new Point(20, 365); this.rtxt_Filmes.Size = new Size(540, 100); this.rtxt_Filmes.ReadOnly = true; this.Controls.Add(rtxt_Filmes); // Detail (data customer) grouping box this.gb_DadosCliente = new Library.GroupBox(); this.gb_DadosCliente.Location = new Point(10, 80); this.gb_DadosCliente.Size = new Size(560, 120); this.gb_DadosCliente.Text = "DADOS CLIENTE"; this.Controls.Add(gb_DadosCliente); // Detail (data rent) grouping box this.gb_DadosLocacao = new Library.GroupBox(); this.gb_DadosLocacao.Location = new Point(10, 210); this.gb_DadosLocacao.Size = new Size(560, 120); this.gb_DadosLocacao.Text = "DADOS LOCAÇÃO"; this.Controls.Add(gb_DadosLocacao); // Detail (data rented movies) grouping box this.gb_DadosFIlmes = new Library.GroupBox(); this.gb_DadosFIlmes.Location = new Point(10, 340); this.gb_DadosFIlmes.Size = new Size(560, 145); this.gb_DadosFIlmes.Text = "LISTA DE FILMES LOCADOS"; this.Controls.Add(gb_DadosFIlmes); // Delete Button this.btn_DeleteLocacao = new Library.ButtonDetail(ButtonType.Delete); this.btn_DeleteLocacao.Text = "DELETAR"; this.btn_DeleteLocacao.Location = new Point(120, 505); this.btn_DeleteLocacao.BackColor = ColorTranslator.FromHtml("#e98274"); this.btn_DeleteLocacao.Click += new EventHandler(this.btn_DeleteLocacaoClick); this.Controls.Add(btn_DeleteLocacao); // Exit Button this.btn_SairDetalhe = new Library.ButtonDetail(ButtonType.Sair); this.btn_SairDetalhe.Text = "SAIR"; this.btn_SairDetalhe.Location = new Point(320, 505); this.btn_SairDetalhe.BackColor = ColorTranslator.FromHtml("#5de96e"); this.btn_SairDetalhe.Click += new EventHandler(this.btn_SairDetalheClick); this.Controls.Add(btn_SairDetalhe); }
public override void LoadContent() { ContentManager Content = sceneManager.Game.Content; Texture2D texture = Content.Load<Texture2D>(@"images\scene\EndGameScene\victory_label"); VictoryLabel = new Label(); VictoryLabel.Texture = texture; VictoryLabel.Center = new Vector2(512, 100); unlock_font = Content.Load<SpriteFont>(@"fonts\VictoryScene\unlock_font"); normal_font = Content.Load<SpriteFont>(@"fonts\VictoryScene\normal_font"); endGameSong = Content.Load<Song>(@"audio\song\victory"); base.LoadContent(); }