Shaders! And more GUI tweaks
parent
40f413e7a7
commit
638e77d104
|
@ -9,3 +9,5 @@
|
||||||
*.iws
|
*.iws
|
||||||
|
|
||||||
/run/
|
/run/
|
||||||
|
|
||||||
|
/vendor/
|
||||||
|
|
|
@ -57,6 +57,11 @@ dependencies {
|
||||||
exclude(group = "org.lwjgl")
|
exclude(group = "org.lwjgl")
|
||||||
}
|
}
|
||||||
implementation("io.github.spair:imgui-java-natives-windows-ft:$imguiVersion")
|
implementation("io.github.spair:imgui-java-natives-windows-ft:$imguiVersion")
|
||||||
|
|
||||||
|
runtimeOnly("org.joml:joml:1.10.2")
|
||||||
|
runtimeOnly("org.anarres:jcpp:1.4.14")
|
||||||
|
modRuntimeOnly(files("vendor/iris-mc1.18.1-1.2.0-pre.jar"))
|
||||||
|
modRuntimeOnly(files("vendor/sodium-fabric-mc1.18.1-0.4.0-alpha6+build.14.jar"))
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks {
|
tasks {
|
||||||
|
|
|
@ -35,3 +35,5 @@ object ImGuiKt {
|
||||||
prop.setter.call(arr[0])
|
prop.setter.call(arr[0])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fun ImBoolean.flip() = set(!get())
|
||||||
|
|
|
@ -24,7 +24,7 @@ fun applyHibiscusImGuiTheme() {
|
||||||
style.popupBorderSize = 1f
|
style.popupBorderSize = 1f
|
||||||
style.frameBorderSize = 0f
|
style.frameBorderSize = 0f
|
||||||
style.tabBorderSize = 0f
|
style.tabBorderSize = 0f
|
||||||
style.windowRounding = 0f
|
style.windowRounding = 4f
|
||||||
style.childRounding = 0f
|
style.childRounding = 0f
|
||||||
style.frameRounding = 0f
|
style.frameRounding = 0f
|
||||||
style.scrollbarRounding = 0f
|
style.scrollbarRounding = 0f
|
||||||
|
|
|
@ -53,9 +53,8 @@ object ModuleControlsUI {
|
||||||
val showValueWindow = moduleValueWindows.getOrPut(feature) { ImBoolean(false) }
|
val showValueWindow = moduleValueWindows.getOrPut(feature) { ImBoolean(false) }
|
||||||
|
|
||||||
ImGui.nextColumn()
|
ImGui.nextColumn()
|
||||||
if (ImGui.radioButton("##${feature.name} values", showValueWindow.get())) {
|
if (ImGui.radioButton("##${feature.name} values", showValueWindow.get()))
|
||||||
showValueWindow.set(!showValueWindow.get())
|
showValueWindow.flip()
|
||||||
}
|
|
||||||
ImGui.nextColumn()
|
ImGui.nextColumn()
|
||||||
|
|
||||||
if (showValueWindow.get()) {
|
if (showValueWindow.get()) {
|
||||||
|
|
Loading…
Reference in New Issue