more renames

This commit is contained in:
DBotThePony 2022-09-09 15:47:14 +07:00
parent 53550f31f4
commit 04568a044e
Signed by: DBot
GPG Key ID: DCC23B5715498507
2 changed files with 9 additions and 9 deletions

View File

@ -163,7 +163,7 @@ class SkinElement @JvmOverloads constructor(
) = renderPartial(stack, x.toFloat(), y.toFloat(), width.toFloat(), height.toFloat(), winding)
@JvmOverloads
fun renderW(
fun renderWidth(
stack: PoseStack,
x: Float = 0f,
y: Float = 0f,
@ -174,16 +174,16 @@ class SkinElement @JvmOverloads constructor(
}
@JvmOverloads
fun renderW(
fun renderWidth(
stack: PoseStack,
x: Double,
y: Double = 0.0,
width: Double = this.width.toDouble(),
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
fun renderH(
fun renderHieght(
stack: PoseStack,
x: Float = 0f,
y: Float = 0f,
@ -194,13 +194,13 @@ class SkinElement @JvmOverloads constructor(
}
@JvmOverloads
fun renderH(
fun renderHieght(
stack: PoseStack,
x: Double,
y: Double = 0.0,
height: Double = this.height.toDouble(),
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 v0 = this.y / imageHeight

View File

@ -63,10 +63,10 @@ open class FramePanel<out S : Screen>(
TAB_BACKGROUND.render(stack, 2f, 2f, width - 4, height - 2)
}
RECTANGLE.top.renderW(stack, 3f, 0f, width - 6)
RECTANGLE.left.renderH(stack, 0f, 3f, (height - if (isActive) if (initial) 2 else 4 else 3))
RECTANGLE.top.renderWidth(stack, 3f, 0f, width - 6)
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.topRight.render(stack, width - RECTANGLE.topRight.width, 0f)