For MonoGame or XNA games an user interface is most essential. Based on the lacking and obsolete libraries like NeonForceControlsSquid, etc.. I made the effort to create my own one.

Functionality

  • The user interface is listening on
    • Keyboard inputs
    • Mouse inputs
    • Touchscreen inputs
  • Compatible with MonoGame and XNA 4.0
  • Optimized for desktop and mobile applicationsMobile
  • Running in 1 Thread
  • Working with events for
    • Mouse/Finger Hover
    • Mouse/Finger Click
    • Mouse/Finger Move
    • GotFocus
    • LostFocus
  • Controls can be Focusable and/or Movable

Helper

The UserInterfaceManager instance is able to Add and Remove controls. You won’t have to worry about dependencies. The order can be changed within each control by the UserInterfaceManager by calling BringToFront or BringToBack.

Textures

The Textures are all self-made and included in the library. Replace the textures in the Content folder to apply them.

Controls

Control Screenshot Features
Control
  • OnClick
  • GotFocus
  • LostFocus
  • Mouse/Touch Hover
  • Mouse/Touch Left
  • IsVisible
  • IsEnabled
  • Color
  • Parent
  • SubControls
Button Button
  • Label
CheckBox CheckBox
  • Label
  • IsChecked
  • StateChanged
TextBox TextBox
  • Label
  • Blink_Pause
  • Blink_Active
  • TextChanged
  • Single Line
  • Multi Line
  • Max input length
  • Password char
ComboBox ComboBox
  • Label
  • Orientation
TabNavigation TabNavigation
ScrollView Compilation
  • Padding
  • Background Color
  • Autoscroll to end
Window Frames Window
  • Titelbar
  • Label
  • Show Close-Button
CloseButton  CloseButton
  • Button
Label
  • Text
  • MaxCharacters
  • FontSize
  • DisplayMode
  •  MultiLine
  •  ScrollToEnd
  • Default
ImageBox
  • Displays a texture

Code behind

Append following lines of code in your Game1.cs

And you are ready to go!

Example

Window

Buttons

TextBoxes

Add the dependencies

Result

Window

Downloads

nuget

SourceCode (.zip 153KB)