Skip to content

Commit 3ea55a6

Browse files
Jalvavielemyfops
andauthored
Added Rotation HUD Module (#224)
Co-authored-by: Emy 💜 <swag@emy.systems>
1 parent c84570f commit 3ea55a6

File tree

2 files changed

+47
-157
lines changed

2 files changed

+47
-157
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
/*
2+
* Copyright 2026 Lambda
3+
*
4+
* This program is free software: you can redistribute it and/or modify
5+
* it under the terms of the GNU General Public License as published by
6+
* the Free Software Foundation, either version 3 of the License, or
7+
* (at your option) any later version.
8+
*
9+
* This program is distributed in the hope that it will be useful,
10+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
* GNU General Public License for more details.
13+
*
14+
* You should have received a copy of the GNU General Public License
15+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
16+
*/
17+
18+
package com.lambda.module.hud
19+
20+
import com.lambda.config.applyEdits
21+
import com.lambda.config.groups.FormatterSettings
22+
import com.lambda.gui.dsl.ImGuiBuilder
23+
import com.lambda.module.HudModule
24+
import com.lambda.module.hud.Coordinates.Group
25+
import com.lambda.module.tag.ModuleTag
26+
import com.lambda.threading.runSafe
27+
import com.lambda.util.Formatting.format
28+
import com.lambda.util.NamedEnum
29+
30+
object Rotation : HudModule(
31+
name = "Rotation",
32+
description = "Show your rotation",
33+
tag = ModuleTag.HUD,
34+
) {
35+
private val formatter = FormatterSettings(this).apply {
36+
applyEdits {
37+
::timeFormat.edit { hide() }
38+
}
39+
}
40+
41+
override fun ImGuiBuilder.buildLayout() {
42+
runSafe {
43+
val rotation = player.rotationClient.format(formatter)
44+
textCopyable(rotation)
45+
}
46+
}
47+
}

src/main/kotlin/com/lambda/module/modules/movement/ElytraFly.kt

Lines changed: 0 additions & 157 deletions
This file was deleted.

0 commit comments

Comments
 (0)