public GameplayScreen(ContentManager globalContent, UIScreenService uiScreenService) : base("Content/UI/Screens/GameplayScreen", "GameplayScreen", globalContent) { Contract.Require(uiScreenService, "uiScreenService"); this.textRenderer = new TextRenderer(); this.blankTexture = GlobalContent.Load <Texture2D>(GlobalTextureID.Blank); this.photograph = GlobalContent.Load <Texture2D>(GlobalTextureID.Photograph); this.font = GlobalContent.Load <SpriteFont>(GlobalFontID.SegoeUI); }
public SampleScreen2(ContentManager globalContent, UIScreenService uiScreenService) : base("Content/UI/Screens/SampleScreen2", "SampleScreen2", globalContent) { Contract.Require(uiScreenService, "uiScreenService"); IsOpaque = true; this.font = LocalContent.Load <SpriteFont>("Garamond"); this.blankTexture = GlobalContent.Load <Texture2D>(GlobalTextureID.Blank); this.textRenderer = new TextRenderer(); }
public LoadingScreen(ContentManager globalContent, UIScreenService uiScreenService) : base("Content/UI/Screens/LoadingScreen", "LoadingScreen", globalContent) { Contract.Require(uiScreenService, "uiScreenService"); this.uiScreenService = uiScreenService; this.textRenderer = new TextRenderer(); this.blankTexture = GlobalContent.Load <Texture2D>(GlobalTextureID.Blank); this.font = GlobalContent.Load <SpriteFont>(GlobalFontID.SegoeUI); this.spinnerSprite = LocalContent.Load <Sprite>("Spinner"); this.loader = new AsynchronousContentLoader(); this.textRenderer.LayoutEngine.RegisterIcon("spinner", spinnerSprite[0]); UpdateMessage(String.Empty); }