private void CreateNoesisGUI() { var rootPath = Path.Combine(Environment.CurrentDirectory, "Data"); var providerManager = new NoesisProviderManager( new FolderXamlProvider(rootPath), new FolderFontProvider(rootPath), new FolderTextureProvider(rootPath, this.GraphicsDevice)); var config = new NoesisConfig( this.Window, this.graphics, providerManager, rootXamlFilePath: "Grid.xaml", //"../Data_old/Samples/TextBox.xaml", //"TextBox.xaml", themeXamlFilePath: "Theme/NoesisTheme.DarkBlue.xaml", // uncomment this line to use theme file //themeXamlFilePath: "Themes/WindowsStyle.xaml", currentTotalGameTime: this.lastUpdateTotalGameTime); config.SetupInputFromWindows(); this.noesisWrapper = new NoesisWrapper(config); //this.noesisWrapper.View.IsPPAAEnabled = true; this.noesisWrapper.View.GetView().SetFlags(Noesis.RenderFlags.PPAA | Noesis.RenderFlags.LCD); string[] fonts = new string[] { "Theme/Fonts/#PT Root UI", "Arial", "Segoe UI Emoji" }; Noesis.GUI.LoadApplicationResources("Theme/NoesisTheme.DarkBlue.xaml"); Noesis.GUI.SetFontFallbacks(fonts); Noesis.GUI.SetFontDefaultProperties(15, Noesis.FontWeight.Normal, Noesis.FontStretch.Normal, Noesis.FontStyle.Normal); }
private void CreateNoesisGUI() { var config = new NoesisConfig( this.Window, this.graphics, rootXamlFilePath: "TextBox.xaml", themeXamlFilePath: "NoesisStyle.xaml", currentTotalGameTime: this.lastUpdateTotalGameTime); config.SetupInputFromWindows(); config.SetupProviderSimpleFolder("Data"); this.noesisGUIWrapper = new NoesisWrapper(config); }
private void CreateNoesisGUI() { var rootPath = Path.Combine(Environment.CurrentDirectory, "Data"); var providerManager = new NoesisProviderManager( new FolderXamlProvider(rootPath), new FolderFontProvider(rootPath), new FolderTextureProvider(rootPath, this.GraphicsDevice)); var config = new NoesisConfig( this.Window, this.graphics, providerManager, rootXamlFilePath: "Samples/TextBox.xaml", themeXamlFilePath: null, // uncomment this line to use theme file //themeXamlFilePath: "Themes/WindowsStyle.xaml", currentTotalGameTime: this.lastUpdateTotalGameTime); config.SetupInputFromWindows(); this.noesisWrapper = new NoesisWrapper(config); this.noesisWrapper.View.IsPPAAEnabled = true; }