public void Initialize(ITestResources resources) { InitializeTests(); sceneStack = new SceneStack(); font = new Font(resources.Fonts.Default); var fontProvider = resources.Fonts; scene = new UserInterfaceScene( resources.GraphicsDevice, resources.UserInterfaceRenderer, resources.LocalizedContent, resources.Fonts, resources.StyleConfigurator); spriteBatch = new SpriteBatch(resources.GraphicsDevice); var app = new TestSelectorApp(new TestSelectorProps { Tests = tests, OnAcceptTest = test => StartTest?.Invoke(this, new TestEventArgs(test)) }); var workspace = new Workspace("default", app); scene.Desktop.PushWorkspace(workspace); sceneStack.Add(scene); }
public void Initialize(ITestResources resources) { scene = new UserInterfaceScene( resources.GraphicsDevice, resources.UserInterfaceRenderer, resources.LocalizedContent, resources.StyleConfigurator) { DrawBelow = false, Theme = "FF", }; menu = new FF6Menu(m => Debug.WriteLine(m)); InitializeTestData(menu.Model = new FF6Model()); stack = resources.SceneStack; stack.Add(scene); scene.Initialize(); scene.Indicator = new PointerIndicator( resources.Content.Load <Texture2D>("UserInterface/Pointer")); menu.Begin(scene.Desktop); }
public void Initialize(ITestResources resources) { InitializeTests(); sceneStack = resources.SceneStack; font = new Font(resources.Fonts.Default); var fontProvider = resources.Fonts; scene = new UserInterfaceScene( resources.GraphicsDevice, resources.UserInterfaceRenderer, resources.LocalizedContent, resources.StyleConfigurator); spriteBatch = new SpriteBatch(resources.GraphicsDevice); var menu = new Menu(); foreach (var test in tests) { menu.Add(test.Name, () => StartTest?.Invoke(this, new TestEventArgs(test))); } var workspace = new Workspace("default"); workspace.Add(menu); scene.Desktop.PushWorkspace(workspace); sceneStack.Add(scene); }
public void Initialize(ITestResources resources) { whiteTexture = resources.WhiteTexture; spriteBatch = new SpriteBatch(resources.GraphicsDevice); console = new AgateConsole(new ConsoleRenderer(resources.GraphicsDevice, new ConsoleTextEngine(resources.Fonts))); font = new Font(resources.Fonts.Default); console.AddVocabulary(new BoxVocabulary(points)); }
public void Initialize(ITestResources resources) { fonts = new List <Font>(); fonts.AddRange(resources.Fonts.Select(x => new Font(x))); fonts.AddRange(resources.Fonts.Select(x => new Font(x) { Size = 16 })); fonts.AddRange(resources.Fonts.Select(x => new Font(x) { Size = 14, Style = FontStyles.Bold })); spriteBatch = new SpriteBatch(resources.GraphicsDevice); blank = new TextureBuilder(resources.GraphicsDevice).SolidColor(10, 10, Color.White); }
public void Initialize(ITestResources resources) { spriteBatch = new SpriteBatch(resources.GraphicsDevice); font = new Font(resources.Fonts.Default); }