Monogame - Noesis interop fork with "XAML edit-and-continue"
Hi all,
I forked the Monogame - Noesis interop sample from AIEnabled on GitHub https://github.com/Ziriax/NoesisGUI.MonoGameWrapper
Works with 1.3beta3 and Windows DX11 only for now.
It fixes some keyboard input problems, allows usage of Monogame 2D textures in Noesis GUI, and has experimental support for "XAML edit-and-continue": if you change a XAML file the UI will be automagically reloaded without having to restart the game. This is only useful if you use the MVVM pattern I guess.
I also added a "design-time" WPF project that allows editing the UI using WPF.
Have fun, but beware of glitches
Cheers,
Peter Verswyvelen
I forked the Monogame - Noesis interop sample from AIEnabled on GitHub https://github.com/Ziriax/NoesisGUI.MonoGameWrapper
Works with 1.3beta3 and Windows DX11 only for now.
It fixes some keyboard input problems, allows usage of Monogame 2D textures in Noesis GUI, and has experimental support for "XAML edit-and-continue": if you change a XAML file the UI will be automagically reloaded without having to restart the game. This is only useful if you use the MVVM pattern I guess.
I also added a "design-time" WPF project that allows editing the UI using WPF.
Have fun, but beware of glitches
Cheers,
Peter Verswyvelen
Peter Verswyvelen,
Strongly Typed Solutions
Strongly Typed Solutions
Re: Monogame - Noesis interop fork with "XAML edit-and-conti
Wow! This is amazing! We are also working in 1.3 to support hot-reloading of resources (xaml, textures and fonts). I will have a look at your code tonight.
Thanks for sharing!
Thanks for sharing!
Re: Monogame - Noesis interop fork with "XAML edit-and-conti
Cool, if you implement hot reloading, it will be a lot better and faster than my simple experiment!
I just did it brute force, and I'm not even sure it will work with multiple XAML files, since your engine might do some caching internally.
I first tried to re-create the root view, but could not find a way to do that. So I just created a proxy ContentControl and ResourceDictionary.
I'm looking forward to your hot reloading feature!
I just did it brute force, and I'm not even sure it will work with multiple XAML files, since your engine might do some caching internally.
I first tried to re-create the root view, but could not find a way to do that. So I just created a proxy ContentControl and ResourceDictionary.
I'm looking forward to your hot reloading feature!
Peter Verswyvelen,
Strongly Typed Solutions
Strongly Typed Solutions
Re: Monogame - Noesis interop fork with "XAML edit-and-conti
I just updated the code to work with BETA4.
Know problem: since in BETA4 SetTheme can only be called once, and ResourceDictionary cannot be created anymore from C#, it will not use a theme when you want the "edit-and-continue" feature.
Know problem: since in BETA4 SetTheme can only be called once, and ResourceDictionary cannot be created anymore from C#, it will not use a theme when you want the "edit-and-continue" feature.
Peter Verswyvelen,
Strongly Typed Solutions
Strongly Typed Solutions
Re: Monogame - Noesis interop fork with "XAML edit-and-continue"
Hi, it seems the MonoGmae / NoesisGUi integration has stalled and OpenGL isn't available whcih is a must for mobile development.
Are there any plans to work on this?
Are there any plans to work on this?
- ai_enabled
- Posts: 231
- Joined:
- Contact:
Re: Monogame - Noesis interop fork with "XAML edit-and-continue"
Hi,
currently, I'm focused on D3D11/Windows version only. The game I'm working on will support only this platform at launch and we have plans for Linux version with OpenGL (or maybe Vulkan, will see) if the game sells well enough to continue development (it already took almost 2 years and focus on a single platform saved a lot of time).
I would be glad if someone will implement OpenGL support for NoesisGUI-MonoGame integration project. The code needs refactoring to support other graphics API and OS - perhaps separate .NET assemblies for each platform with VS shared code project with conditional symbols. After it integration of OpenGL should be straightforward as there is already the NoesisGUI OpenGL sample which could be used as the starting point.
Regards!
currently, I'm focused on D3D11/Windows version only. The game I'm working on will support only this platform at launch and we have plans for Linux version with OpenGL (or maybe Vulkan, will see) if the game sells well enough to continue development (it already took almost 2 years and focus on a single platform saved a lot of time).
I would be glad if someone will implement OpenGL support for NoesisGUI-MonoGame integration project. The code needs refactoring to support other graphics API and OS - perhaps separate .NET assemblies for each platform with VS shared code project with conditional symbols. After it integration of OpenGL should be straightforward as there is already the NoesisGUI OpenGL sample which could be used as the starting point.
Regards!
AtomicTorch Studio Pte. Ltd. http://atomictorch.com
Re: Monogame - Noesis interop fork with "XAML edit-and-continue"
ai_enabled: Thanks for your reply and for a good work on the mono version. I wish you the best of luck for your game!
Who is online
Users browsing this forum: No registered users and 1 guest