示例#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);
     }
 }
示例#2
0
 protected Screen(SunfishGame currentGame, string backgroundTextureName)
     : this(currentGame, Color.Black, backgroundTextureName)
 {
 }
示例#3
0
 protected Screen(SunfishGame currentGame, Color backgroundColor)
     : this(currentGame, backgroundColor, null)
 {
 }
示例#4
0
 protected Screen(SunfishGame currentGame)
     : this(currentGame, DefaultBackgroundColor)
 {
 }
示例#5
0
文件: Home.cs 项目: fordream/Sunfish
 public Home(SunfishGame currentGame)
     : base(currentGame, Color.White)
 {
 }
示例#6
0
文件: Home.cs 项目: fordream/Locks
 public Home(SunfishGame currentGame)
     : base(currentGame, Color.DarkGray, "HomeScreenBackground")
 {
 }