Element.kt: Keep the original x and y coordinates in memory
This commit is contained in:
parent
aa4d7e3743
commit
7ddbf934f7
|
@ -8,9 +8,10 @@ import fr.username404.snowygui.Snowy
|
||||||
|
|
||||||
fun interface Renderable { fun render(poseStack: PoseStack?) }
|
fun interface Renderable { fun render(poseStack: PoseStack?) }
|
||||||
abstract class Element(
|
abstract class Element(
|
||||||
var x: Double, var y: Double,
|
@JvmField val xOrigin: Double, @JvmField val yOrigin: Double,
|
||||||
val width: Int, val height: Int
|
val width: Int, val height: Int
|
||||||
): Renderable {
|
): Renderable {
|
||||||
|
var x = xOrigin; var y = yOrigin
|
||||||
companion object Rendering {
|
companion object Rendering {
|
||||||
private var caughtError: Boolean = false
|
private var caughtError: Boolean = false
|
||||||
@JvmStatic protected val tessellator: Tesselator = Tesselator.getInstance()
|
@JvmStatic protected val tessellator: Tesselator = Tesselator.getInstance()
|
||||||
|
|
Loading…
Reference in New Issue