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); } }
protected Screen(SunfishGame currentGame, string backgroundTextureName) : this(currentGame, Color.Black, backgroundTextureName) { }
protected Screen(SunfishGame currentGame, Color backgroundColor) : this(currentGame, backgroundColor, null) { }
protected Screen(SunfishGame currentGame) : this(currentGame, DefaultBackgroundColor) { }
public Home(SunfishGame currentGame) : base(currentGame, Color.White) { }
public Home(SunfishGame currentGame) : base(currentGame, Color.DarkGray, "HomeScreenBackground") { }