2022-08-22 13:03:07 -04:00
|
|
|
# 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).
|
|
|
|
|
2023-06-19 11:00:09 -04:00
|
|
|

|
2022-08-23 21:40:13 -04:00
|
|
|
|
2022-08-22 13:03:07 -04:00
|
|
|
## Quick Usage
|
2022-08-23 09:30:42 -04:00
|
|
|
Add the Maven repository and the modImplementation to your `build.gradle`
|
|
|
|
|
|
|
|
```
|
|
|
|
maven {
|
2023-07-13 22:51:33 -04:00
|
|
|
url "https://git.gaycatgirl.sex/api/v4/projects/21/packages/maven"
|
2022-08-23 09:30:42 -04:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
```
|
|
|
|
implementation "gay.eviee:imgui-quilt:<VERSION>"
|
|
|
|
```
|
|
|
|
|
|
|
|
You can then add `Renderables` to `ImGuiQuilt.renderstack` for them to be rendered.
|
2022-08-22 13:03:07 -04:00
|
|
|
|
|
|
|
Use ImGui methods in `render()` of the `Renderables` interface.
|
|
|
|
|
|
|
|
Example:
|
|
|
|
```java
|
2023-06-19 11:00:09 -04:00
|
|
|
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");
|
|
|
|
}
|
|
|
|
});
|
2022-08-22 13:03:07 -04:00
|
|
|
```
|