We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50f8a81 commit 4e61f95Copy full SHA for 4e61f95
mod/src/main/kotlin/gg/skytils/skytilsmod/core/structure/v2/HudElement.kt
@@ -41,6 +41,9 @@ abstract class HudElement(
41
constructor(name: String, x: Float, y: Float) :
42
this(name, mutableStateOf(x / UResolution.scaledWidth), mutableStateOf(y / UResolution.scaledHeight))
43
44
+ constructor(name: String, x: Double, y: Double):
45
+ this(name, mutableStateOf(x.toFloat()), mutableStateOf(y.toFloat()))
46
+
47
private val position = memo {
48
Modifier.alignHorizontal(Alignment.Relative(x()))
49
.alignVertical(Alignment.Relative(y()))
0 commit comments