Exemple #1
0
 protected Screen(SunfishGame currentGame, Color backgroundColor, string backgroundTextureName)
 {
     ScreenContent = currentGame.CreateContentManager ();
     ChildViews = new Views.ScreenLayers ();
     CurrentGame = currentGame;
     BackgroundColor = backgroundColor;
     if (!string.IsNullOrEmpty (backgroundTextureName)) {
         BackgroundTexture = LoadTexture (backgroundTextureName);
     }
 }
Exemple #2
0
 protected Screen(SunfishGame currentGame, string backgroundTextureName)
     : this(currentGame, Color.Black, backgroundTextureName)
 {
 }
Exemple #3
0
 protected Screen(SunfishGame currentGame, Color backgroundColor)
     : this(currentGame, backgroundColor, null)
 {
 }
Exemple #4
0
 protected Screen(SunfishGame currentGame)
     : this(currentGame, DefaultBackgroundColor)
 {
 }
Exemple #5
0
 public Home(SunfishGame currentGame)
     : base(currentGame, Color.White)
 {
 }
Exemple #6
0
 public Home(SunfishGame currentGame)
     : base(currentGame, Color.DarkGray, "HomeScreenBackground")
 {
 }