imgui-quilt

imgui-quilt

绗缝的 ImGui,基于 imgui-java 的 Minecraft Quilt 版 ImGui

基础库

imgui-quilt

imgui-java 的 Quilt 接口,是 imgui-mc 的更新版本。

在 Minecraft 中运行的 ImGui 演示窗口

快速使用

将 Maven 仓库和 modImplementation 添加到你的 build.gradle 中

maven {
    url "https://git.gaycatgirl.sex/api/v4/projects/21/packages/maven"
}
implementation "gay.eviee:imgui-quilt:<VERSION>"

然后你可以将 Renderables 添加到 ImGuiQuilt.renderstack 中,以便它们被渲染。

在 Renderables 接口的 render() 方法中使用 ImGui 方法。

示例:

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");
    }
});