Skip to content

Commit f3af721

Browse files
committed
added few more settings
1 parent 29d95e9 commit f3af721

File tree

1 file changed

+7
-0
lines changed
  • common/src/main/kotlin/com/lambda/module/modules/render

1 file changed

+7
-0
lines changed

common/src/main/kotlin/com/lambda/module/modules/render/ViewModel.kt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ object ViewModel : Module(
2121
//ToDo: implement the rest of the settings and maybe add a couple more
2222

2323
private val ignoreHand by setting("Ignore Hand", false, "Prevents adjusting the players hand", visibility = { page == Page.General })
24+
val swingMode by setting("Swing Mode", SwingMode.MainHand, "Changes which hands swing", visibility = { page == Page.General })
25+
val swingSpeed by setting("Swing Speed", 6, 0..20, 1, "Adjusts how fast the player swings", visibility = { page == Page.General })
26+
val swingProgress by setting("Swing Progress", 0.0f, 0.0f..1.0f, 0.025f, "Renders as if the player was this progress through the swing animation", visibility = { page == Page.General })
2427
val oldSwingAnimation by setting("Old Swing Animation", false, "Adjusts the swing animation to what it looked like in 1.8", visibility = { page == Page.General })
2528
val swapAnimation by setting("Swap Animation", true, "If disabled, it removes the drop down animation when swapping item", visibility = { page == Page.General })
2629
val shadow by setting("Shadows", true, "If disabled, it removes shadows on the model", visibility = { page == Page.General })
@@ -72,6 +75,10 @@ object ViewModel : Module(
7275
Left, Right
7376
}
7477

78+
enum class SwingMode {
79+
MainHand, OffHand, Both, None
80+
}
81+
7582
fun transform(itemStack: ItemStack, hand: Hand, matrices: MatrixStack) {
7683
val side = if (mc.options.mainArm.value == Arm.LEFT) {
7784
if (hand == Hand.MAIN_HAND) Side.Left else Side.Right

0 commit comments

Comments
 (0)