You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description = "Adjusts hand and held item rendering",
17
+
defaultTags = setOf(ModuleTag.RENDER)
18
+
) {
19
+
privateval page by setting("Page", Page.General)
20
+
21
+
//ToDo: implement the rest of the settings and maybe add a couple more
22
+
23
+
privateval ignoreHand by setting("Ignore Hand", false, "Prevents adjusting the players hand", visibility = { page ==Page.General })
24
+
val oldSwingAnimation by setting("Old Swing Animation", false, "Adjusts the swing animation to what it looked like in 1.8", visibility = { page ==Page.General })
25
+
val swapAnimation by setting("Swap Animation", true, "If disabled, it removes the drop down animation when swapping item", visibility = { page ==Page.General })
26
+
val shadow by setting("Shadows", true, "If disabled, it removes shadows on the model", visibility = { page ==Page.General })
27
+
28
+
privateval linkedScale by setting("Linked", true, "Links both hands scale settings", visibility = { page ==Page.Scale })
29
+
privateval leftXScale by setting("Left X Scale", 1.0f, -1.0f..1.0f, 0.025f, visibility = { page ==Page.Scale }).apply { onValueChange { _, to ->if (linkedScale) rightXScale = to } }
30
+
privateval leftYScale by setting("Left Y Scale", 1.0f, -1.0f..1.0f, 0.025f, visibility = { page ==Page.Scale }).apply { onValueChange { _, to ->if (linkedScale) rightYScale = to } }
31
+
privateval leftZScale by setting("Left Z Scale", 1.0f, -1.0f..1.0f, 0.025f, visibility = { page ==Page.Scale }).apply { onValueChange { _, to ->if (linkedScale) rightZScale = to } }
32
+
privatevar rightXScale by setting("Right X Scale", 0.0f, -1.0f..1.0f, 0.025f, visibility = { page ==Page.Scale&&!linkedScale })
33
+
privatevar rightYScale by setting("Right Y Scale", 0.0f, -1.0f..1.0f, 0.025f, visibility = { page ==Page.Scale&&!linkedScale })
34
+
privatevar rightZScale by setting("Right Z Scale", 0.0f, -1.0f..1.0f, 0.025f, visibility = { page ==Page.Scale&&!linkedScale })
35
+
36
+
privateval linkedPosition by setting("Linked", true, "Links both hands position settings", visibility = { page ==Page.Position })
37
+
privateval leftXPosition by setting("Left X Position", 0.0f, -1.0f..1.0f, 0.025f, visibility = { page ==Page.Position }).apply { onValueChange { _, to ->if (linkedPosition) rightXPosition = to } }
38
+
privateval leftYPosition by setting("Left Y Position", 0.0f, -1.0f..1.0f, 0.025f, visibility = { page ==Page.Position }).apply { onValueChange { _, to ->if (linkedPosition) rightYPosition = to } }
39
+
privateval leftZPosition by setting("Left Z Position", 0.0f, -1.0f..1.0f, 0.025f, visibility = { page ==Page.Position }).apply { onValueChange { _, to ->if (linkedPosition) rightZPosition = to } }
40
+
privatevar rightXPosition by setting("Right X Position", 0.0f, -1.0f..1.0f, 0.025f, visibility = { page ==Page.Position&&!linkedPosition })
41
+
privatevar rightYPosition by setting("Right Y Position", 0.0f, -1.0f..1.0f, 0.025f, visibility = { page ==Page.Position&&!linkedPosition })
42
+
privatevar rightZPosition by setting("Right Z Position", 0.0f, -1.0f..1.0f, 0.025f, visibility = { page ==Page.Position&&!linkedPosition })
43
+
44
+
privateval linkedRotation by setting("Linked", true, "Links both hands rotation settings", visibility = { page ==Page.Rotation })
45
+
privateval leftXRotation by setting("Left X Rotation", 0, -180..180, 1, visibility = { page ==Page.Rotation }).apply { onValueChange { _, to ->if (linkedRotation) rightXRotation = to } }
46
+
privateval leftYRotation by setting("Left Y Rotation", 0, -180..180, 1, visibility = { page ==Page.Rotation }).apply { onValueChange { _, to ->if (linkedRotation) rightYRotation = to } }
47
+
privateval leftZRotation by setting("Left Z Rotation", 0, -180..180, 1, visibility = { page ==Page.Rotation }).apply { onValueChange { _, to ->if (linkedRotation) rightZRotation = to } }
48
+
privatevar rightXRotation by setting("Right X Rotation", 0, -180..180, 1, visibility = { page ==Page.Rotation&&!linkedRotation })
49
+
privatevar rightYRotation by setting("Right Y Rotation", 0, -180..180, 1, visibility = { page ==Page.Rotation&&!linkedRotation })
50
+
privatevar rightZRotation by setting("Right Z Rotation", 0, -180..180, 1, visibility = { page ==Page.Rotation&&!linkedRotation })
51
+
52
+
privateval linkedFOV by setting("Linked FOV", true, "Links both hands FOV settings", visibility = { page ==Page.FOV })
53
+
privateval leftFOV by setting ("Left FOV", 80, 10..180, 1, visibility = { page ==Page.FOV }).apply { onValueChange { _, to ->if (linkedFOV) rightFOV = to } }
0 commit comments