Skip to content

Commit 37077cc

Browse files
authored
Introduce unit suffix for metric based setting parameter (#335)
1 parent 0cb284c commit 37077cc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+83
-70
lines changed

src/main/kotlin/com/lambda/client/commons/extension/Enum.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package com.lambda.client.commons.extension
33
import com.lambda.client.commons.interfaces.DisplayEnum
44
import com.lambda.client.util.text.capitalize
55

6-
fun <E : Enum<E>> E.next(): E = declaringClass.enumConstants.run {
6+
fun <E : Enum<E>> E.next(): E = declaringJavaClass.enumConstants.run {
77
get((ordinal + 1) % size)
88
}
99

src/main/kotlin/com/lambda/client/manager/managers/PlayerInventoryManager.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ object PlayerInventoryManager : Manager {
6060
fun isDone() = actionQueue.isEmpty()
6161

6262
/**
63-
* Adds a new task to the inventory manager
63+
* Adds a new task to the inventory manager respecting the module origin.
6464
*
6565
* @param clickInfo group of the click info in this task
6666
*

src/main/kotlin/com/lambda/client/module/modules/chat/AntiSpam.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ object AntiSpam : Module(
3636
/* Page Two */
3737
private val aggressiveFiltering by setting("Aggressive Filtering", true, { page == Page.SETTINGS })
3838
private val duplicates by setting("Duplicates", true, { page == Page.SETTINGS })
39-
private val duplicatesTimeout by setting("Duplicates Timeout", 30, 1..600, 5, { duplicates && page == Page.SETTINGS })
39+
private val duplicatesTimeout by setting("Duplicates Timeout", 30, 1..600, 5, { duplicates && page == Page.SETTINGS }, unit = "s")
4040
private val filterOwn by setting("Filter Own", false, { page == Page.SETTINGS })
4141
private val filterDMs by setting("Filter DMs", false, { page == Page.SETTINGS })
4242
private val filterServer by setting("Filter Server", false, { page == Page.SETTINGS })

src/main/kotlin/com/lambda/client/module/modules/chat/AutoQMain.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ object AutoQMain : Module(
1818
category = Category.CHAT,
1919
showOnArray = false
2020
) {
21-
private val delay by setting("Delay", 30, 1..120, 5)
21+
private val delay by setting("Delay", 30, 1..120, 5, unit = "s")
2222
private val twoBeeCheck by setting("2B Check", true)
2323
private val command by setting("Command", "/queue main")
2424

src/main/kotlin/com/lambda/client/module/modules/chat/Spammer.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ object Spammer : Module(
2525
modulePriority = 100
2626
) {
2727
private val modeSetting by setting("Order", Mode.RANDOM_ORDER)
28-
private val delay by setting("Delay", 10, 1..600, 1, description = "Delay between messages, in seconds")
28+
private val delay by setting("Delay", 10, 1..600, 1, description = "Delay between messages", unit = "s")
2929
private val loadRemote by setting("Load From URL", false)
3030
private val remoteURL by setting("Remote URL", "Unchanged", { loadRemote })
3131

src/main/kotlin/com/lambda/client/module/modules/client/Baritone.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ object Baritone : Module(
3131
private val allowParkourPlace by setting("Allow Parkour Place", true)
3232
private val avoidPortals by setting("Avoid Portals", false)
3333
private val renderGoal by setting("Render Goals", true)
34-
private val failureTimeout by setting("Fail Timeout", 2, 1..20, 1)
34+
private val failureTimeout by setting("Fail Timeout", 2, 1..20, 1, unit = "s")
3535
private val blockReachDistance by setting("Reach Distance", 4.5f, 1.0f..10.0f, 0.5f)
3636

3737
init {

src/main/kotlin/com/lambda/client/module/modules/client/ChatSetting.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ object ChatSetting : Module(
1010
showOnArray = false,
1111
alwaysEnabled = true
1212
) {
13-
val delay by setting("Message Speed Limit", 0.5f, 0.1f..20.0f, 0.1f, description = "Delay between each message in seconds")
13+
val delay by setting("Message Speed Limit", 0.5f, 0.1f..20.0f, 0.1f, description = "Delay between each message", unit = "s")
1414
val maxMessageQueueSize by setting("Max Message Queue Size", 50, 10..200, 5)
1515
}

src/main/kotlin/com/lambda/client/module/modules/client/ClickGUI.kt

+4-4
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ object ClickGUI : Module(
1919
alwaysListening = true
2020
) {
2121
private val scaleSetting = setting("Scale", 100, 50..400, 5)
22-
val radius by setting("Corner Radius", 2.0, 0.0..10.0, 0.2)
22+
val radius by setting("Corner Radius", 2.0, 0.0..10.0, 0.2, unit = "px")
2323
val blur by setting("Blur", 0.0f, 0.0f..1.0f, 0.05f)
2424
val windowOutline by setting("Window Outline", false)
2525
val buttonOutline by setting("Button Outline", false)
2626
val outlineWidth by setting("Outline Width", 2.5f, 0.5f..3.5f, 0.5f, { windowOutline || buttonOutline })
27-
val entryMargin by setting("Margin", 0.0f, 0.0f..10.0f, 0.5f)
27+
val entryMargin by setting("Margin", 0.0f, 0.0f..10.0f, 0.5f, unit = "px")
2828
val darkness by setting("Darkness", 0.25f, 0.0f..1.0f, 0.05f)
29-
val fadeInTime by setting("Fade In Time", 0.25f, 0.0f..1.0f, 0.05f)
30-
val fadeOutTime by setting("Fade Out Time", 0.1f, 0.0f..1.0f, 0.05f)
29+
val fadeInTime by setting("Fade In Time", 0.25f, 0.0f..1.0f, 0.05f, unit = "s")
30+
val fadeOutTime by setting("Fade Out Time", 0.1f, 0.0f..1.0f, 0.05f, unit = "s")
3131
val showModifiedInBold by setting("Show Modified In Bold", false, description = "Display modified settings in a bold font")
3232
private val resetComponents = setting("Reset Positions", false)
3333
private val resetScale = setting("Reset Scale", false)

src/main/kotlin/com/lambda/client/module/modules/client/Configurations.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ internal object Configurations : AbstractModule(
4141

4242
private val autoSaving by setting("Auto Saving", true)
4343
private val savingFeedBack by setting("Log autosaves in chat", false, { autoSaving })
44-
private val savingInterval by setting("Interval", 10, 1..30, 1, { autoSaving }, description = "Frequency of auto saving in minutes")
44+
private val savingInterval by setting("Interval", 10, 1..30, 1, { autoSaving }, description = "Frequency of auto saving", unit = "m")
4545
val serverPreset by setting("Server Preset", false)
4646
private val guiPresetSetting = setting("Gui Preset", defaultPreset)
4747
private val modulePresetSetting = setting("Module Preset", defaultPreset)

src/main/kotlin/com/lambda/client/module/modules/combat/AutoArmor.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ object AutoArmor : Module(
2323
category = Category.COMBAT,
2424
modulePriority = 500
2525
) {
26-
private val delay by setting("Delay", 5, 1..10, 1)
26+
private val delay by setting("Delay", 5, 1..10, 1, unit = " ticks")
2727

2828
private val timer = TickTimer(TimeUnit.TICKS)
2929
private var lastTask = TaskState(true)

src/main/kotlin/com/lambda/client/module/modules/combat/AutoMend.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ object AutoMend : Module(
3232
category = Category.COMBAT
3333
) {
3434
private val autoThrow by setting("Auto Throw", true)
35-
private val throwDelay = setting("Throw Delay", 2, 0..5, 1, description = "Number of ticks between throws to allow absorption")
35+
private val throwDelay = setting("Throw Delay", 2, 0..5, 1, description = "Number of ticks between throws to allow absorption", unit = " ticks")
3636
private val autoSwitch by setting("Auto Switch", true)
3737
private val autoDisableExp by setting("Auto Disable", false, { autoSwitch }, description = "Disable when you run out of XP bottles")
3838
private val autoDisableComplete by setting("Disable on Complete", false)

src/main/kotlin/com/lambda/client/module/modules/combat/CombatSetting.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ object CombatSetting : Module(
7575
private val pauseForEating by setting("Pause For Eating", true, { page == Page.IN_COMBAT })
7676
private val ignoreOffhandEating by setting("Ignore Offhand Eating", true, { page == Page.IN_COMBAT && pauseForEating })
7777
private val pauseBaritone by setting("Pause Baritone", true, { page == Page.IN_COMBAT })
78-
private val resumeDelay by setting("Resume Delay", 3, 1..10, 1, { page == Page.IN_COMBAT && pauseBaritone })
78+
private val resumeDelay by setting("Resume Delay", 3, 1..10, 1, { page == Page.IN_COMBAT && pauseBaritone }, unit = "s")
7979
private val motionPrediction by setting("Motion Prediction", true, { page == Page.IN_COMBAT })
8080
private val pingSync by setting("Ping Sync", true, { page == Page.IN_COMBAT && motionPrediction })
8181
private val ticksAhead by setting("Ticks Ahead", 5, 0..20, 1, { page == Page.IN_COMBAT && motionPrediction && !pingSync })

src/main/kotlin/com/lambda/client/module/modules/combat/HoleMiner.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ object HoleMiner : Module(
3636
category = Category.COMBAT,
3737
modulePriority = 100
3838
) {
39-
private val delay by setting("Delay", 2, 1..10, 1)
39+
private val delay by setting("Delay", 2, 1..10, 1, unit = " ticks")
4040
private val range by setting("Range", 5.0f, 1.0f..8.0f, 0.25f)
4141

4242
private val timer = TickTimer(TimeUnit.TICKS)

src/main/kotlin/com/lambda/client/module/modules/combat/KillAura.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ object KillAura : Module(
3232
) {
3333
private val mode by setting("Mode", Mode.COOLDOWN)
3434
private val rotationMode by setting("Rotation Mode", RotationMode.SPOOF)
35-
private val attackDelay by setting("Attack Delay", 5, 1..40, 1, { mode == Mode.TICKS })
35+
private val attackDelay by setting("Attack Delay", 5, 1..40, 1, { mode == Mode.TICKS }, unit = " ticks")
3636
private val disableOnDeath by setting("Disable On Death", false)
3737
private val tpsSync by setting("TPS Sync", false)
3838
private val weaponOnly by setting("Weapon Only", false)
3939
private val autoWeapon by setting("Auto Weapon", true)
4040
private val prefer by setting("Prefer", CombatUtils.PreferWeapon.SWORD, { autoWeapon })
4141
private val minSwapHealth by setting("Min Swap Health", 5.0f, 1.0f..20.0f, 0.5f)
42-
private val swapDelay by setting("Swap Delay", 10, 0..50, 1)
42+
private val swapDelay by setting("Swap Delay", 10, 0..50, 1, unit = " ticks")
4343
private val fireballs by setting("Target Fireballs", false)
4444
private val fireballForceViewLock by setting("Force ViewLock", true, { fireballs }, description = "Only applies to fireballs")
4545
val range by setting("Range", 4.0f, 0.0f..6.0f, 0.1f)

src/main/kotlin/com/lambda/client/module/modules/combat/Surround.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ object Surround : Module(
4242
private val disableStrafe by setting("Disable Strafe", true)
4343
private val strictDirection by setting("Strict Direction", false)
4444
private val autoDisable by setting("Auto Disable", AutoDisableMode.OUT_OF_HOLE)
45-
private val outOfHoleTimeout by setting("Out Of Hole Timeout", 10, 1..50, 5, { autoDisable == AutoDisableMode.OUT_OF_HOLE }, description = "Delay before disabling Surround when you are out of hole, in ticks")
45+
private val outOfHoleTimeout by setting("Out Of Hole Timeout", 10, 1..50, 5, { autoDisable == AutoDisableMode.OUT_OF_HOLE }, description = "Delay before disabling Surround when you are out of hole", unit = " ticks")
4646
private val enableInHole = setting("Enable In Hole", false)
47-
private val inHoleTimeout by setting("In Hole Timeout", 50, 1..100, 5, { enableInHole.value }, description = "Delay before enabling Surround when you are in hole, in ticks")
47+
private val inHoleTimeout by setting("In Hole Timeout", 50, 1..100, 5, { enableInHole.value }, description = "Delay before enabling Surround when you are in hole", unit = " ticks")
4848
private val toggleMessage by setting("Toggle Message", true)
4949

5050
private enum class AutoDisableMode {

src/main/kotlin/com/lambda/client/module/modules/misc/AntiAFK.kt

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,16 @@ object AntiAFK : Module(
3131
description = "Prevents being kicked for AFK",
3232
category = Category.MISC
3333
) {
34-
private val delay by setting("Action Delay", 50, 5..100, 5)
35-
private val variation by setting("Variation", 25, 0..50, 5)
34+
private val delay by setting("Action Delay", 50, 5..100, 5, unit = " ticks")
35+
private val variation by setting("Variation", 25, 0..50, 5, unit = " ticks")
3636
private val autoReply by setting("Auto Reply", true)
3737
private val replyMessage by setting("Reply Message", "I am AFK with Lambda!", { autoReply })
3838
private val swing = setting("Swing", true)
3939
private val jump = setting("Jump", true)
4040
private val turn = setting("Turn", true)
4141
private val walk = setting("Walk", true)
4242
private val radius by setting("Radius", 64, 8..128, 8, fineStep = 1)
43-
private val inputTimeout by setting("Idle Timeout", 0, 0..15, 1, description = "Starts AntiAFK after being idle for longer than specific minutes, 0 to disable")
43+
private val inputTimeout by setting("Idle Timeout", 0, 0..15, 1, description = "Starts AntiAFK after being idle for longer than specific minutes, 0 to disable", unit = "m")
4444
private val allowBreak by setting("Allow Breaking Blocks", false, { walk.value })
4545

4646
private var startPos: BlockPos? = null

src/main/kotlin/com/lambda/client/module/modules/misc/AutoFish.kt

+4-4
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ object AutoFish : Module(
2121
) {
2222
private val mode by setting("Mode", Mode.BOUNCE)
2323
private val autoCast by setting("Auto Cast", true)
24-
private val castDelay by setting("Auto Cast Delay", 5, 1..20, 1, { autoCast }, description = "Delay before starting fishing when holding a fishing rod, in seconds")
25-
private val catchDelay by setting("Catch Delay", 300, 50..2000, 50, description = "Delay before catching the fish, in milliseconds")
26-
private val recastDelay by setting("Recast Delay", 450, 50..2000, 50, description = "Delay before recasting the fishing rod, in milliseconds")
27-
private val variation by setting("Variation", 100, 0..1000, 50, description = "Randomize the delays in specific range, in milliseconds")
24+
private val castDelay by setting("Auto Cast Delay", 5, 1..20, 1, { autoCast }, description = "Delay before starting fishing when holding a fishing rod", unit = "s")
25+
private val catchDelay by setting("Catch Delay", 300, 50..2000, 50, description = "Delay before catching the fish", unit = "ms")
26+
private val recastDelay by setting("Recast Delay", 450, 50..2000, 50, description = "Delay before recasting the fishing rod", unit = "ms")
27+
private val variation by setting("Variation", 100, 0..1000, 50, description = "Randomize the delays in specific range", unit = "ms")
2828

2929
@Suppress("UNUSED")
3030
private enum class Mode {

src/main/kotlin/com/lambda/client/module/modules/misc/AutoObsidian.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ object AutoObsidian : Module(
7070
private val autoRefill by setting("Auto Refill", false, { fillMode != FillMode.INFINITE })
7171
private val threshold by setting("Refill Threshold", 32, 1..64, 1, { autoRefill && fillMode != FillMode.INFINITE })
7272
private val targetStacks by setting("Target Stacks", 1, 1..20, 1, { fillMode == FillMode.TARGET_STACKS })
73-
private val delayTicks by setting("Delay Ticks", 4, 1..10, 1)
73+
private val delayTicks by setting("Delay", 4, 1..10, 1, unit = " ticks")
7474
private val rotationMode by setting("Rotation Mode", RotationMode.SPOOF)
7575
private val maxReach by setting("Max Reach", 4.9f, 2.0f..6.0f, 0.1f)
7676

src/main/kotlin/com/lambda/client/module/modules/misc/AutoReconnect.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ object AutoReconnect : Module(
1919
category = Category.MISC,
2020
alwaysListening = true
2121
) {
22-
private val delay by setting("Delay", 5.0f, 0.5f..100.0f, 0.5f)
22+
private val delay by setting("Delay", 5.0f, 0.5f..100.0f, 0.5f, unit = "s")
2323

2424
private var prevServerDate: ServerData? = null
2525

src/main/kotlin/com/lambda/client/module/modules/misc/AutoTool.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ object AutoTool : Module(
2424
category = Category.MISC
2525
) {
2626
private val switchBack = setting("Switch Back", true)
27-
private val timeout by setting("Timeout", 20, 1..100, 5, { switchBack.value })
27+
private val timeout by setting("Timeout", 20, 1..100, 5, { switchBack.value }, unit = "s")
2828
private val swapWeapon by setting("Switch Weapon", false)
2929
private val preferWeapon by setting("Prefer", CombatUtils.PreferWeapon.SWORD)
3030

src/main/kotlin/com/lambda/client/module/modules/misc/CoordsLog.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ object CoordsLog : Module(
1919
) {
2020
private val saveOnDeath by setting("Save On Death", true)
2121
private val autoLog by setting("Automatically Log", false)
22-
private val delay by setting("Delay", 15, 1..60, 1)
22+
private val delay by setting("Delay", 15, 1..60, 1, unit = "s")
2323

2424
private var previousCoord: String? = null
2525
private var savedDeath = false

src/main/kotlin/com/lambda/client/module/modules/misc/PingSpoof.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ object PingSpoof : Module(
1616
description = "Cancels or adds delay to your ping packets",
1717
category = Category.MISC
1818
) {
19-
private val delay by setting("Delay", 100, 0..2000, 25)
19+
private val delay by setting("Delay", 100, 0..2000, 25, unit = "ms")
2020

2121
init {
2222
listener<PacketEvent.Receive> {

src/main/kotlin/com/lambda/client/module/modules/misc/SkinFlicker.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ object SkinFlicker : Module(
1313
category = Category.MISC
1414
) {
1515
private val mode by setting("Mode", FlickerMode.HORIZONTAL)
16-
private val delay by setting("Delay", 10, 0..500, 5, description = "Skin layer toggle delay, in milliseconds")
16+
private val delay by setting("Delay", 10, 0..500, 5, description = "Skin layer toggle delay", unit = "ms")
1717

1818
private enum class FlickerMode {
1919
HORIZONTAL, VERTICAL, RANDOM

src/main/kotlin/com/lambda/client/module/modules/movement/AutoJump.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ object AutoJump : Module(
1212
description = "Automatically jumps if possible",
1313
category = Category.MOVEMENT
1414
) {
15-
private val delay by setting("Tick Delay", 10, 0..40, 1)
15+
private val delay by setting("Delay", 10, 0..40, 1, unit = " ticks")
1616

1717
private val timer = TickTimer(TimeUnit.TICKS)
1818

src/main/kotlin/com/lambda/client/module/modules/movement/Flight.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ object Flight : Module(
3535
private val upSpeed by setting("Up Speed", 0.0622, 0.0..0.3, 0.001, { mode == FlightMode.PACKET })
3636
private val antiKick by setting("Anti Kick", true, { mode == FlightMode.PACKET })
3737
private val antiKickSpeed by setting("Anti Kick Speed", 0.0622, 0.0..0.3, 0.001, { mode == FlightMode.PACKET && antiKick })
38-
private val antiKickDelay by setting("Anti Kick Delay", 14, 0..100, 1, { mode == FlightMode.PACKET && antiKick})
38+
private val antiKickDelay by setting("Anti Kick Delay", 14, 0..100, 1, { mode == FlightMode.PACKET && antiKick }, unit = " ticks")
3939
private val hShrinkAmount by setting("Horizontal Shrink Amount", 4.0, 1.0..10.0, 0.1, { mode == FlightMode.PACKET })
4040
private val vShrinkAmount by setting("Vertical Shrink Amount", 2.70, 1.0..10.0, 0.1, { mode == FlightMode.PACKET })
4141

src/main/kotlin/com/lambda/client/module/modules/movement/Speed.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ object Speed : Module(
111111

112112
private fun SafeClientEvent.strafe() {
113113
player.jumpMovementFactor = strafeAirSpeedBoost
114-
if (strafeTimerBoost) modifyTimer(45.87155914306640625f)
114+
if (strafeTimerBoost) modifyTimer(45.87156f)
115115
if ((Step.isDisabled || !player.collidedHorizontally) && strafeAutoJump) jump()
116116

117117
strafeTimer.reset()

src/main/kotlin/com/lambda/client/module/modules/player/Scaffold.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ object Scaffold : Module(
5252
val safeWalk by setting("Safe Walk", true)
5353
private val sneak by setting("Sneak", true)
5454
private val strictDirection by setting("Strict Direction", false)
55-
private val delay by setting("Delay", 2, 1..10, 1)
55+
private val delay by setting("Delay", 2, 1..10, 1, unit = " ticks")
5656
private val maxRange by setting("Max Range", 1, 0..3, 1)
5757

5858
private var lastHitVec: Vec3d? = null

src/main/kotlin/com/lambda/client/module/modules/render/CameraClip.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ object CameraClip : Module(
1313
category = Category.RENDER,
1414
showOnArray = false
1515
) {
16-
val distance by setting("Distance", 4.0, 1.0..10.0, 0.1, description = "Distance to player")
16+
val distance by setting("Distance", 4.0, 1.0..10.0, 0.1, description = "Distance to player", unit = " blocks")
1717
}

src/main/kotlin/com/lambda/client/module/modules/render/ESP.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ object ESP : Module(
5151
private val neutral by setting("Neutral Mobs", true, { page == Page.ENTITY_TYPE && !all && mobs })
5252
private val hostile by setting("Hostile Mobs", true, { page == Page.ENTITY_TYPE && !all && mobs })
5353
private val invisible by setting("Invisible", true, { page == Page.ENTITY_TYPE && !all })
54-
private val range by setting("Range", 32.0f, 8.0f..64.0f, 0.5f, { page == Page.ENTITY_TYPE })
54+
private val range by setting("Range", 32.0f, 8.0f..64.0f, 0.5f, { page == Page.ENTITY_TYPE }, unit = " blocks")
5555

5656
/* Rendering settings */
5757
private val mode = setting("Mode", ESPMode.SHADER, { page == Page.RENDERING })

src/main/kotlin/com/lambda/client/module/modules/render/EyeFinder.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ object EyeFinder : Module(
3535
private val neutral by setting("Neutral Mobs", true, { page == Page.ENTITY_TYPE && mobs })
3636
private val hostile by setting("Hostile Mobs", true, { page == Page.ENTITY_TYPE && mobs })
3737
private val invisible by setting("Invisible", true, { page == Page.ENTITY_TYPE })
38-
private val range by setting("Range", 64, 8..128, 8, { page == Page.ENTITY_TYPE })
38+
private val range by setting("Range", 64, 8..128, 8, { page == Page.ENTITY_TYPE }, unit = " blocks")
3939

4040
/* Rendering settings */
4141
private val color by setting("Color", ColorHolder(155, 144, 255, 200), visibility = { page == Page.RENDERING })

src/main/kotlin/com/lambda/client/module/modules/render/FullBright.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ object FullBright : Module(
1515
alwaysListening = true
1616
) {
1717
private val gamma by setting("Gamma", 12.0f, 5.0f..15.0f, 0.5f)
18-
private val transitionLength by setting("Transition Length", 3.0f, 0.0f..10.0f, 0.5f)
18+
private val transitionLength by setting("Transition Length", 3.0f, 0.0f..10.0f, 0.5f, unit = "s")
1919
private var oldValue by setting("Old Value", 1.0f, 0.0f..1.0f, 0.1f, { false })
2020

2121
private var gammaSetting: Float

0 commit comments

Comments
 (0)