more renames
This commit is contained in:
parent
53550f31f4
commit
04568a044e
@ -163,7 +163,7 @@ class SkinElement @JvmOverloads constructor(
|
|||||||
) = renderPartial(stack, x.toFloat(), y.toFloat(), width.toFloat(), height.toFloat(), winding)
|
) = renderPartial(stack, x.toFloat(), y.toFloat(), width.toFloat(), height.toFloat(), winding)
|
||||||
|
|
||||||
@JvmOverloads
|
@JvmOverloads
|
||||||
fun renderW(
|
fun renderWidth(
|
||||||
stack: PoseStack,
|
stack: PoseStack,
|
||||||
x: Float = 0f,
|
x: Float = 0f,
|
||||||
y: Float = 0f,
|
y: Float = 0f,
|
||||||
@ -174,16 +174,16 @@ class SkinElement @JvmOverloads constructor(
|
|||||||
}
|
}
|
||||||
|
|
||||||
@JvmOverloads
|
@JvmOverloads
|
||||||
fun renderW(
|
fun renderWidth(
|
||||||
stack: PoseStack,
|
stack: PoseStack,
|
||||||
x: Double,
|
x: Double,
|
||||||
y: Double = 0.0,
|
y: Double = 0.0,
|
||||||
width: Double = this.width.toDouble(),
|
width: Double = this.width.toDouble(),
|
||||||
winding: UVWindingOrder = UVWindingOrder.U0_V0_U1_V1,
|
winding: UVWindingOrder = UVWindingOrder.U0_V0_U1_V1,
|
||||||
) = renderW(stack, x.toFloat(), y.toFloat(), width.toFloat(), winding)
|
) = renderWidth(stack, x.toFloat(), y.toFloat(), width.toFloat(), winding)
|
||||||
|
|
||||||
@JvmOverloads
|
@JvmOverloads
|
||||||
fun renderH(
|
fun renderHieght(
|
||||||
stack: PoseStack,
|
stack: PoseStack,
|
||||||
x: Float = 0f,
|
x: Float = 0f,
|
||||||
y: Float = 0f,
|
y: Float = 0f,
|
||||||
@ -194,13 +194,13 @@ class SkinElement @JvmOverloads constructor(
|
|||||||
}
|
}
|
||||||
|
|
||||||
@JvmOverloads
|
@JvmOverloads
|
||||||
fun renderH(
|
fun renderHieght(
|
||||||
stack: PoseStack,
|
stack: PoseStack,
|
||||||
x: Double,
|
x: Double,
|
||||||
y: Double = 0.0,
|
y: Double = 0.0,
|
||||||
height: Double = this.height.toDouble(),
|
height: Double = this.height.toDouble(),
|
||||||
winding: UVWindingOrder = UVWindingOrder.U0_V0_U1_V1,
|
winding: UVWindingOrder = UVWindingOrder.U0_V0_U1_V1,
|
||||||
) = renderH(stack, x.toFloat(), y.toFloat(), height.toFloat(), winding)
|
) = renderHieght(stack, x.toFloat(), y.toFloat(), height.toFloat(), winding)
|
||||||
|
|
||||||
private val u0 = this.x / imageWidth
|
private val u0 = this.x / imageWidth
|
||||||
private val v0 = this.y / imageHeight
|
private val v0 = this.y / imageHeight
|
||||||
|
@ -63,10 +63,10 @@ open class FramePanel<out S : Screen>(
|
|||||||
TAB_BACKGROUND.render(stack, 2f, 2f, width - 4, height - 2)
|
TAB_BACKGROUND.render(stack, 2f, 2f, width - 4, height - 2)
|
||||||
}
|
}
|
||||||
|
|
||||||
RECTANGLE.top.renderW(stack, 3f, 0f, width - 6)
|
RECTANGLE.top.renderWidth(stack, 3f, 0f, width - 6)
|
||||||
RECTANGLE.left.renderH(stack, 0f, 3f, (height - if (isActive) if (initial) 2 else 4 else 3))
|
RECTANGLE.left.renderHieght(stack, 0f, 3f, (height - if (isActive) if (initial) 2 else 4 else 3))
|
||||||
|
|
||||||
RECTANGLE.right.renderH(stack, width - RECTANGLE.right.width, 3f, (height - if (isActive) 4 else 3))
|
RECTANGLE.right.renderHieght(stack, width - RECTANGLE.right.width, 3f, (height - if (isActive) 4 else 3))
|
||||||
|
|
||||||
RECTANGLE.topLeft.render(stack, 0f, 0f)
|
RECTANGLE.topLeft.render(stack, 0f, 0f)
|
||||||
RECTANGLE.topRight.render(stack, width - RECTANGLE.topRight.width, 0f)
|
RECTANGLE.topRight.render(stack, width - RECTANGLE.topRight.width, 0f)
|
||||||
|
Loading…
Reference in New Issue
Block a user