42 lines
999 B
Markdown
42 lines
999 B
Markdown
# imgui-quilt
|
|
|
|
Quilt interface for [imgui-java](https://github.com/SpaiR/imgui-java), an updated version of [imgui-mc](https://github.com/mjwells2002/imgui-mc).
|
|
|
|

|
|
|
|
## Quick Usage
|
|
Add the Maven repository and the modImplementation to your `build.gradle`
|
|
|
|
```
|
|
maven {
|
|
url "https://git.gaycatgirl.sex/api/v4/projects/21/packages/maven"
|
|
}
|
|
```
|
|
|
|
```
|
|
implementation "gay.eviee:imgui-quilt:<VERSION>"
|
|
```
|
|
|
|
You can then add `Renderables` to `ImGuiQuilt.renderstack` for them to be rendered.
|
|
|
|
Use ImGui methods in `render()` of the `Renderables` interface.
|
|
|
|
Example:
|
|
```java
|
|
ImGuiQuilt.renderstack.add(new Renderable() {
|
|
@Override
|
|
public String getName() {
|
|
return "Profiling Name";
|
|
}
|
|
|
|
@Override
|
|
public Theme getTheme() {
|
|
return null;
|
|
}
|
|
|
|
@Override
|
|
public void render() {
|
|
ImGui.text("Example Text Element");
|
|
}
|
|
});
|
|
```
|