Improve ConfigScreen.kt

This commit is contained in:
Username404-59 2021-05-05 11:41:10 +02:00
parent 3d65eb2c90
commit 282cd06160
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 4 additions and 6 deletions

View File

@ -3,15 +3,13 @@ package fr.username404.snowygui.config
import com.mojang.blaze3d.vertex.PoseStack
import fr.username404.snowygui.gui.Element
import fr.username404.snowygui.gui.SnowyScreen
import net.minecraft.client.Minecraft
open class SnowyConfigScreen: SnowyScreen("screen.snowygui.config") { // TODO Actual config screen
override fun render(poseStack: PoseStack?, i: Int, j: Int, f: Float) {
renderBackground(poseStack)
super.render(poseStack, i, j, f)
}
override val components: MutableSet<Element> = mutableSetOf(
object: Element(0.0, 0.0, Minecraft.getInstance().window.width, Minecraft.getInstance().window.height) {
override fun render(poseStack: PoseStack?) {
renderBackground(poseStack)
}
}
// TODO Add components to the config gui
)
}