EaglerForge/sources/main/java/net/eaglerforge/gui/ModGUI.java

26 lines
29 KiB
Java
Raw Normal View History

2024-02-15 06:00:47 -06:00
package net.eaglerforge.gui;
import org.teavm.jso.JSBody;
public class ModGUI {
@JSBody(params = {}, script = "displayGui();")
public static native void displayGui();
@JSBody(params = {}, script = "var font = document.createElement(\"style\");\r\n" + //
"console.log('Loaded font!');\r\n" + //
2024-04-01 10:05:12 -05:00
"font.innerHTML = \"@font-face { font-family: Minecraft; src: url(data:font/truetype;base64,AAEAAAAKAIAAAwAgT1MvMlYw9dgAAAEoAAAAYGNtYXCXZo6kAAAFyAAAAdpnbHlmef/vOAAACcgAAEdMaGVhZPzd7fQAAACsAAAANmhoZWEIAwUQAAAA5AAAACRobXR48IADgAAAAYgAAARAbG9jYUqJXHYAAAekAAACJG1heHABHAAoAAABCAAAACBuYW1lPt3hYQAAURQAAAP8cG9zdABpADMAAFUQAAAAIAABAAAAARma1c5FN18PPPUAAAQAAAAAAMygUaAAAAAAzKk+vQAA/4AEgAOAAAAACAACAAAAAAAAAAEAAAOA/4AAAAUAAAD/gASAAAEAAAAAAAAAAAAAAAAAAAEPAAEAAAERACgACgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgJnAZAABQAAAgACAAAA/8ACAAIAAAACAAAzAMwAAAAABAAAAAAAAACAAAIHAAAACgAAAAAAAAAAQkdETgBAAA0hIgOA/4AAAAOAAIAADgAFAgIAAAKAA4AAAAAgAAAAAAAAAAAAAAEAAAABAAAAAgAAAAKAAAADAAAAAwAAAAMAAAABgAAAAoAAAAKAAAACgAAAAwAAAAEAAAADAAAAAQAAAAMAAAADAAAAAwAAAAMAAAADAAAAAwAAAAMAAAADAAAAAwAAAAMAAAADAAAAAQAAAAEAAAACgAAAAwAAAAKAAAADAAAAA4AAAAMAAAADAAAAAwAAAAMAAAADAAAAAwAAAAMAAAADAAAAAgAAAAMAAAADAAAAAwAAAAMAAAADAAAAAwAAAAMAAAADAAAAAwAAAAMAAAADAAAAAwA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ERYROBFUEXARmBG4EdwSDhI2El4SkBLGEvITKhNUE3QTlBPAE+YUEhQ4FF4UhBS2FOwVGBU+FWoVnBXEFeoWHBZIFlwWbhaOFqYWzhb2Fx4XUBeGF7IXzBf0GBAYLBhUGHQYnBjCGO4ZDhk8GWwZeBmKGZwZrhnCGeAZ/hocGjIaQBpWGmwaghqsGs4a7hsMGzQbRBtiG3obrhvkHAYcNBxsHIgcrBzEHOYc+B0WHTwdTh10HaAd3h32Hg4eJh5EHmQeiB6kHtAe/B8oH0ofeh+cH6wf1B/2ICggTiBmIIogtCDSIPQhDCEuIUAhXiGGIZghuCHgIhgiMCJKImIifiKcIsIi3iMIIzQjViOEI6YAAgAAAAAAgAOAAAMABwAAMTUzFQMRMxGAgICAgAEAAoD9gAAAAgAAAgABgAOAAAMABwAAGQEzETMRMxGAgIACAAGA/oABgP6AAAAAAAIAAAAAAoADgAADAB8AAAE1IxUDESM1MzUjNTMRMxEzETMRMxUjFTMVIxEjESMRAYCAgICAgICAgICAgICAgIABgICA/oABAICAgAEA/wABAP8AgICA/wABAP8AAAAAAAUAAAAAAoADgAAHAAsADwATABsAACE1ITUhFSMVEzUzFSU1IRUlNTMVPQEzNTMVIRUBAP8AAgCAgID+AAGA/gCAgIABAICAgIABAICAgICAgICAgICAgIAAAAAABwAAAAACgAOAAAMABwALAA8AEwAXABsAADE1MxUhETMRJREzGQE1MxU1ETMRJREzESU1MxWAAYCA/gCAgID+AIABgICAgAEA/wCAAQD/AAEAgICAAQD/AIABAP8AgICAAAAAAAgAAAAAAoADgAADAAcACwAPABsAHwAjACcAADM1IRUzNTMVJREzEQE1MxUBNSM1IzUzNTMRMxEBNTMVMzUzFSU1MxWAAQCAgP2AgAGAgP8AgICAgID+gICAgP8AgICAgICAAQD/AAEAgID/AICAgID/AP8AAgCAgICAgIC
2024-02-15 06:00:47 -06:00
"document.head.appendChild(font);")
public static native void loadFont();
@JSBody(params = {}, script = "if (document.querySelector(\"#eaglerml_gui\")) {\r\n" + //
" document.querySelector(\"#eaglerml_gui\").remove();\r\n" + //
" }")
public static native void closeGui();
@JSBody(params = {}, script = "return !!document.querySelector(\"#eaglerml_gui\")")
public static native boolean isGuiOpen();
@JSBody(params = {}, script = "console.log('closed a screen')")
public static native void qlog();
2024-04-01 10:05:12 -05:00
}