Esempio n. 1
0
 public override void LoadContent(Microsoft.Xna.Framework.Content.ContentManager pContent)
 {
     m_pFont = pContent.Load<SpriteFont>("GFX\\Fonts\\defaultFont");
     m_rgItems[0] = new PlayerName(this, PlayerIndex.One, "Player one", m_pParent.Settings.PlayerOneName, new Vector2(100, 100));
     m_rgItems[0].Selected = true;
     m_rgItems[1] = new PlayerName(this, PlayerIndex.One, "Player two", m_pParent.Settings.PlayerTwoName, new Vector2(100, 200));
     m_rgItems[2] = new BoolCheckbox(this, "Music on/off:", m_pParent.Settings.PlayMusic, new Vector2(100, 300));
     m_rgItems[3] = new BoolCheckbox(this, "SFX on/off:", m_pParent.Settings.PlaySFX, new Vector2(100, 400));
     m_rgItems[4] = new ActionItem(this, "Reset high scores & configuration", new Vector2(100, 425), OptionItemActions.RESETHIGHSCORE);
     m_rgItems[5] = new ActionItem(this, "Return without saving", new Vector2(100, 450), OptionItemActions.RETURN);
     m_rgItems[6] = new ActionItem(this, "Save & return", new Vector2(400, 450), OptionItemActions.SAVE);
     base.LoadContent(pContent);
 }
Esempio n. 2
0
 public void setParent(PlayerName pPlayerNameParent)
 {
     m_pPlayerNameParent = pPlayerNameParent;
 }