Skip to content

Commit cb85f97

Browse files
committed
feat(ModuleList): add Show Keybind setting
1 parent 94a8f3c commit cb85f97

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/kotlin/com/lambda/module/hud/ModuleList.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ object ModuleList : HudModule(
2929
name = "ModuleList",
3030
tag = ModuleTag.HUD,
3131
) {
32+
val showKeybind by setting("Show Keybind", true, "Display keybind next to a module")
33+
3234
override val isVisible: Boolean
3335
get() = false
3436

@@ -41,7 +43,8 @@ object ModuleList : HudModule(
4143
text(it.name); sameLine()
4244
val color = if (it.keybind.key == 0 && it.keybind.mouse == -1) Color.RED else Color.GREEN
4345

44-
withStyleColor(ImGuiCol.Text, color) { text(" [${it.keybind.name}]") }
46+
if (showKeybind)
47+
withStyleColor(ImGuiCol.Text, color) { text(" [${it.keybind.name}]") }
4548
}
4649
}
4750
}

0 commit comments

Comments
 (0)