Skip to content

Commit 6a04076

Browse files
committed
merge fixes / enum fix
1 parent ec1100c commit 6a04076

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/main/kotlin/com/lambda/module/Module.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,7 @@ abstract class Module(
113113
private val alwaysListening: Boolean = false,
114114
enabledByDefault: Boolean = false,
115115
defaultKeybind: KeyCode = KeyCode.UNBOUND,
116-
autoDisable: Boolean = false,
117-
open val disableOnRelease: Boolean = false
116+
autoDisable: Boolean = false
118117
) : Nameable, Muteable, Configurable(ModuleConfig) {
119118
private val isEnabledSetting = setting("Enabled", enabledByDefault) { false }
120119
val keybindSetting = setting("Keybind", defaultKeybind) { false }

src/main/kotlin/com/lambda/module/modules/render/Zoom.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ object Zoom : Module(
3030
description = "Zooms the current view",
3131
tag = ModuleTag.RENDER,
3232
) {
33-
override val disableOnRelease by setting("Disable On Release", true)
3433
private var zoom by setting("Zoom", 2f, 1f..10f, 0.1f)
3534
private val style by setting("Style", ZoomStyle.EaseOut)
3635
private val animationDuration by setting("Animation Duration", 1f, 0.1f..10f, 0.1f) { style != ZoomStyle.Instant }
@@ -90,7 +89,7 @@ object Zoom : Module(
9089
val apply: (Float, Float, Float) -> Float,
9190
) : NamedEnum {
9291
Instant("Instant", { _, v, _ -> v }),
93-
EaseOut("Ease Out", { start, end, progress -> start + ((end - start) * 1f - (1f - progress) * (1f - progress)) }),
94-
EaseIn("Ease In", { start, end, progress -> start + ((end - start) * progress * progress) })
92+
EaseOut("Ease Out", { start, end, progress -> start + ((end - start) * (1f - ((1f - progress) * (1f - progress)))) }),
93+
EaseIn("Ease In", { start, end, progress -> start + ((end - start) * (progress * progress)) })
9594
}
9695
}

0 commit comments

Comments
 (0)