File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/main/kotlin/com/lambda/module/hud Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ object ModuleList : HudModule(
2828 name = " ModuleList" ,
2929 tag = ModuleTag .HUD ,
3030) {
31+ val onlyBound by setting(" Only Bound" , false , " Only displays modules with a keybind" )
3132 init {
3233 drawSetting.value = false
3334 }
@@ -36,8 +37,10 @@ object ModuleList : HudModule(
3637 val enabled = ModuleRegistry .modules.filter { it.isEnabled && it.draw }
3738
3839 enabled.forEach {
40+ val bound = it.keybind.key != 0 || it.keybind.mouse != - 1
41+ if (onlyBound && ! bound) return @forEach
3942 text(it.name); sameLine()
40- val color = if (it.keybind.key == 0 && it.keybind.mouse == - 1 ) Color .RED else Color .GREEN
43+ val color = if (! bound ) Color .RED else Color .GREEN
4144
4245 withStyleColor(ImGuiCol .Text , color) { text(" [${it.keybind.name} ]" ) }
4346 }
You can’t perform that action at this time.
0 commit comments