From 282cd061605907a51f1e71003247d1eae13381da Mon Sep 17 00:00:00 2001 From: Username404-59 Date: Wed, 5 May 2021 11:41:10 +0200 Subject: [PATCH] Improve ConfigScreen.kt --- .../fr/username404/snowygui/config/ConfigScreen.kt | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/common/src/main/kotlin/fr/username404/snowygui/config/ConfigScreen.kt b/common/src/main/kotlin/fr/username404/snowygui/config/ConfigScreen.kt index 21f9fec..0d135b2 100644 --- a/common/src/main/kotlin/fr/username404/snowygui/config/ConfigScreen.kt +++ b/common/src/main/kotlin/fr/username404/snowygui/config/ConfigScreen.kt @@ -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 = 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 ) } \ No newline at end of file