From 43d07fc791e63bba61695e0d4b766b78eb699132 Mon Sep 17 00:00:00 2001 From: inglettronald Date: Sat, 25 Mar 2023 04:36:31 -0500 Subject: Config Syntax Change and switch to oneconfig --- src/main/kotlin/dulkirmod/utils/TitleUtils.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main/kotlin/dulkirmod/utils/TitleUtils.kt') diff --git a/src/main/kotlin/dulkirmod/utils/TitleUtils.kt b/src/main/kotlin/dulkirmod/utils/TitleUtils.kt index 8932878..f5c6325 100644 --- a/src/main/kotlin/dulkirmod/utils/TitleUtils.kt +++ b/src/main/kotlin/dulkirmod/utils/TitleUtils.kt @@ -1,7 +1,7 @@ package dulkirmod.utils import dulkirmod.DulkirMod.Companion.mc -import dulkirmod.config.Config +import dulkirmod.config.DulkirConfig import net.minecraft.client.gui.ScaledResolution import net.minecraft.client.renderer.GlStateManager import net.minecraftforge.client.event.RenderGameOverlayEvent @@ -18,12 +18,12 @@ object TitleUtils { val width = mc.fontRendererObj.getStringWidth(curString) val screenWidth = ScaledResolution(mc).scaledWidth_double val screenHeight = ScaledResolution(mc).scaledHeight_double - var scale = ((screenWidth - 100) * Config.bestiaryNotifSize) / width + var scale = ((screenWidth - 100) * DulkirConfig.bestiaryNotifSize) / width scale = min(scale, 10.0) GlStateManager.pushMatrix() GlStateManager.translate((screenWidth / 2 - width * scale / 2), screenHeight / 2 - (4.5 * scale), 0.0) GlStateManager.scale(scale, scale, scale) - mc.fontRendererObj.drawString(curString, 0f, 0f, 0, Config.bestiaryTextShadow) + mc.fontRendererObj.drawString(curString, 0f, 0f, 0, DulkirConfig.bestiaryTextShadow) GlStateManager.popMatrix() } -- cgit