Skip to content

ziriax/NoesisGUI.MonoGameWrapper

 
 

Repository files navigation

NoesisGUI 2.0 MonoGame Integration experiment (forked from aienabled)

This library provides a solution for integrating NoesisGUI 2.0 with the MonoGame 3.* library.

Currently it supports only MonoGame projects for Windows DX11.

An example MonoGame project with integrated NoesisGUI is included.

This library supports the following new features:

  • "XAML hot reloading"; when any XAML file in the data folder is changed, the full UI is re-created. This is most useful if you use the MVVM pattern in your application, since you don't have to restart your application to tweak the UI.
  • Helper method to place the console and game windows on the leftmost resp rightmost monitor (useful if you have a multi-monitor setup, like many game developers)
  • Exposes a method to regenerate the mipmaps of a monogame render target (see demo)
  • Lots of ugly hacks to get monogame keyboard input working with Noesis textboxes (need to dig deeper into this)

Prerequisites

Installation

  1. Download the 2.0 C# Windows SDK from NoesisGUI Forums.
  2. Extract the SDK to this project's folder NoesisSDK. The resulting directory tree should then look like:
         NoesisSDK
          |--Bin
          |--Doc
          |--Samples
          |--Src
          |--index.html
          |--version.txt
  1. Open NoesisGUI.MonoGameWrapper.sln with Visual Studio
  2. Open context menu on TestMonoGameNoesisGUI project and select Set as StartUp Project.
  3. Press F5 to launch the example game project.
  4. You can change the XAML files while the game is running

Known issues

  • DeviceLost and DeviceReset are not implemented (not required for DX11 I guess, but might be for other renderers)
  • Text editing is partially fixed in this issue (the repeat rate for non-printable keys is different from the OS)

License

The code provided under MIT License. Please read LICENSE.md for details.

About

NoesisGUI MonoGame Integration Library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 99.0%
  • Batchfile 1.0%