コード例 #1
0
ファイル: Screen.cs プロジェクト: fordream/Sunfish
 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
ファイル: Screen.cs プロジェクト: fordream/Sunfish
 protected Screen(SunfishGame currentGame, string backgroundTextureName)
     : this(currentGame, Color.Black, backgroundTextureName)
 {
 }
コード例 #3
0
ファイル: Screen.cs プロジェクト: fordream/Sunfish
 protected Screen(SunfishGame currentGame, Color backgroundColor)
     : this(currentGame, backgroundColor, null)
 {
 }
コード例 #4
0
ファイル: Screen.cs プロジェクト: fordream/Sunfish
 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")
 {
 }