HighScoreScreen.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. //-----------------------------------------------------------------------------
  2. // HighScoreScreen.cs
  3. //
  4. // Microsoft XNA Community Game Platform
  5. // Copyright (C) Microsoft Corporation. All rights reserved.
  6. //-----------------------------------------------------------------------------
  7. using UserInterfaceSample.Controls;
  8. using Microsoft.Xna.Framework;
  9. using Microsoft.Xna.Framework.Content;
  10. using Microsoft.Xna.Framework.GamerServices;
  11. using Microsoft.Xna.Framework.Input;
  12. namespace UserInterfaceSample
  13. {
  14. /// <summary>
  15. /// LeaderboardScreen is a GameScreen that creates a single PageFlipControl containing
  16. /// a collection of LeaderboardPanel controls, which display a game's leaderboards.
  17. ///
  18. /// You will need to customize the LoadContent() method of this class to create the
  19. /// appropriate list of leaderboards to match your game configuration.
  20. /// </summary>
  21. public class HighScoreScreen : SingleControlScreen
  22. {
  23. public override void LoadContent()
  24. {
  25. EnabledGestures = ScrollTracker.GesturesNeeded;
  26. ContentManager content = ScreenManager.Game.Content;
  27. RootControl = new HighScorePanel(content);
  28. base.LoadContent();
  29. }
  30. }
  31. }