MonoGame.ImGuiNet
1.0.5
dotnet add package MonoGame.ImGuiNet --version 1.0.5
NuGet\Install-Package MonoGame.ImGuiNet -Version 1.0.5
<PackageReference Include="MonoGame.ImGuiNet" Version="1.0.5" />
paket add MonoGame.ImGuiNet --version 1.0.5
#r "nuget: MonoGame.ImGuiNet, 1.0.5"
// 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
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- ImGui.NET (>= 1.89.7.1)
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.
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!