Skip to content
Prev Previous commit
Next Next commit
Merge branch '1.21.5' into feature/hud-settings
  • Loading branch information
cattyngmd authored Dec 16, 2025
commit 8be2cc1c4beaa38e7b066e18ea78c34bbd258232
14 changes: 9 additions & 5 deletions src/main/kotlin/com/lambda/module/hud/ModuleList.kt
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,25 @@ object ModuleList : HudModule(
name = "ModuleList",
tag = ModuleTag.HUD,
) {
val onlyBound by setting("Only Bound", false, "Only displays modules with a keybind")
val showKeybind by setting("Show Keybind", true, "Display keybind next to a module")

override val isVisible: Boolean
get() = false
init {
drawSetting.value = false
}

override fun ImGuiBuilder.buildLayout() {
val enabled = ModuleRegistry.modules.filter { it.isEnabled && it.draw }

enabled.forEach {
text(it.name)
val bound = it.keybind.key != 0 || it.keybind.mouse != -1
if (onlyBound && !bound) return@forEach
text(it.name);

if (showKeybind) {
val color = if (it.keybind.key == 0 && it.keybind.mouse == -1) Color.RED else Color.GREEN
val color = if (!bound) Color.RED else Color.GREEN

sameLine()
sameLine()
withStyleColor(ImGuiCol.Text, color) { text(" [${it.keybind.name}]") }
}
}
Expand Down
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.