Improve ConfigScreen.kt
This commit is contained in:
parent
3d65eb2c90
commit
282cd06160
|
@ -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
|
||||
)
|
||||
}
|
Loading…
Reference in New Issue