diff --git a/plugin-playground/src/main/kotlin/KondoKit/plugin.kt b/plugin-playground/src/main/kotlin/KondoKit/plugin.kt index ea67995..368cc00 100644 --- a/plugin-playground/src/main/kotlin/KondoKit/plugin.kt +++ b/plugin-playground/src/main/kotlin/KondoKit/plugin.kt @@ -43,6 +43,7 @@ import java.awt.event.MouseAdapter import java.awt.event.MouseEvent import javax.swing.* + @Target(AnnotationTarget.FIELD) @Retention(AnnotationRetention.RUNTIME) annotation class Exposed(val description: String = "") @@ -120,6 +121,13 @@ class plugin : Plugin() { lastLogin = Player.usernameInput.toString() } + override fun Init() { + // Disable Font AA + System.setProperty("sun.java2d.opengl", "false"); + System.setProperty("awt.useSystemAAFontSettings", "off"); + System.setProperty("swing.aatext", "false"); + } + private fun UpdateDisplaySettings() { val mode = GetWindowMode() val currentScrollPaneWidth = if (mainContentPanel.isVisible) NAVBAR_WIDTH + MAIN_CONTENT_WIDTH else NAVBAR_WIDTH @@ -263,10 +271,6 @@ class plugin : Plugin() { val frame: Frame? = GameShell.frame if (frame != null) { - // Disable Font AA - System.setProperty("awt.useSystemAAFontSettings", "off") - System.setProperty("swing.aatext", "false") - loadFont() try {