Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/florianmichael/fabric-imgui-example-mod
Example Fabric mod which includes Dear ImGui
https://github.com/florianmichael/fabric-imgui-example-mod
dear-imgui dear-imgui-win32 fabric gui imgui java minecraft
Last synced: about 2 months ago
JSON representation
Example Fabric mod which includes Dear ImGui
- Host: GitHub
- URL: https://github.com/florianmichael/fabric-imgui-example-mod
- Owner: FlorianMichael
- License: cc0-1.0
- Created: 2023-04-23T14:44:51.000Z (over 1 year ago)
- Default Branch: 1.21.3
- Last Pushed: 2024-10-28T11:39:01.000Z (2 months ago)
- Last Synced: 2024-10-28T15:04:01.216Z (2 months ago)
- Topics: dear-imgui, dear-imgui-win32, fabric, gui, imgui, java, minecraft
- Language: Java
- Homepage:
- Size: 159 KB
- Stars: 21
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Fabric ImGui Example Mod
This example contains the following features:
- Basic ImGui/ImPlot Usage
- Custom Font Rendering
- Basic Viewport implementation
- Image loading into ImGui## Setup
For setup instructions please see the [fabric wiki page](https://fabricmc.net/wiki/tutorial:setup) that relates to the IDE that you are using.## ImGui usage
You can just draw ImGui stuff using this:
```java
ImGuiImpl.draw(io -> {
if (ImGui.begin("Hello World")) {
ImGui.end();
}
ImGui.showDemoWindow();
});
```
Keep in mind that ImGui needs to be initialized, so you must not remove the MinecraftClient mixin in the ImGui package## License
This template is available under the CC0 license. Feel free to learn from it and incorporate it in your own projects.