MonoGame.ImGuiNet 1.0.5

dotnet add package MonoGame.ImGuiNet --version 1.0.5
NuGet\Install-Package MonoGame.ImGuiNet -Version 1.0.5
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MonoGame.ImGuiNet" Version="1.0.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MonoGame.ImGuiNet --version 1.0.5
#r "nuget: MonoGame.ImGuiNet, 1.0.5"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install MonoGame.ImGuiNet as a Cake Addin
#addin nuget:?package=MonoGame.ImGuiNet&version=1.0.5

// Install MonoGame.ImGuiNet as a Cake Tool
#tool nuget:?package=MonoGame.ImGuiNet&version=1.0.5

<img src="Images/ReadMeBanner.png" alt="Monogame.ImGuiNet_Logo" width="100%">

MonoGame.ImGuiNet

MonoGame.ImGuiNet is a superset of ImGuiNet with additional Components designed for MonoGame.

Getting Started

The project is a NuGet Package, which could be installed by typing the following command in your Project Command Line Interface (CLI): dotnet add package Monogame.ImGuiNet

Once installed in your project, you can use the library by typing: using Monogame.ImGuiNet

In your game's Initializtion code, create an instance of the ImGuiRenderer class:

private ImGuiRenderer _imGuiRenderer;

protected override void Initialize()
{
    // ...

    _imGuiRenderer = new ImGuiRenderer(this);
    _imGuiRenderer.RebuildFontAtlas();
    
    // ...
}

Next, in your game's Draw method, draw the Interface:

protected override void Draw(GameTime gameTime)
{
    // ...
    
   _imGuiRenderer.BeforeLayout(gameTime);

   ImGui.Text("Works!");

   _imGuiRenderer.AfterLayout();

    // ...
}

And you should be good to go!

It'll be recommended to visit the Wiki page! It will provide general information on the library, Usage examples, as well as every method you could use currently!

Notable Mentions

Dovker - For the original Monogame.ImGui

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on MonoGame.ImGuiNet:

Package Downloads
MonoDreams

A code-first and data-driven opensource 2D game engine powered by MonoGame

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.5 2,382 7/6/2023
1.0.4 1,676 7/6/2023

Hey! my last package was broken, so here's the updated one which should work. Check out the github page as I'll be updating it with more components soon!