Shaders! And more GUI tweaks

main
Charlotte Som 2022-02-04 11:39:16 +00:00
parent 40f413e7a7
commit 638e77d104
5 changed files with 12 additions and 4 deletions

2
.gitignore vendored
View File

@ -9,3 +9,5 @@
*.iws
/run/
/vendor/

View File

@ -57,6 +57,11 @@ dependencies {
exclude(group = "org.lwjgl")
}
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 {

View File

@ -35,3 +35,5 @@ object ImGuiKt {
prop.setter.call(arr[0])
}
}
fun ImBoolean.flip() = set(!get())

View File

@ -24,7 +24,7 @@ fun applyHibiscusImGuiTheme() {
style.popupBorderSize = 1f
style.frameBorderSize = 0f
style.tabBorderSize = 0f
style.windowRounding = 0f
style.windowRounding = 4f
style.childRounding = 0f
style.frameRounding = 0f
style.scrollbarRounding = 0f

View File

@ -53,9 +53,8 @@ object ModuleControlsUI {
val showValueWindow = moduleValueWindows.getOrPut(feature) { ImBoolean(false) }
ImGui.nextColumn()
if (ImGui.radioButton("##${feature.name} values", showValueWindow.get())) {
showValueWindow.set(!showValueWindow.get())
}
if (ImGui.radioButton("##${feature.name} values", showValueWindow.get()))
showValueWindow.flip()
ImGui.nextColumn()
if (showValueWindow.get()) {