/*import { // after careful consideration I have decided not to make this with elementa, if anyone wants to make it for me (be it with elementa or Renderer) make https://imgur.com/a/D0XpIUx, dm Ninjune#0670 if need help AdditiveConstraint, CenterConstraint, ConstantColorConstraint, UIBlock, UIImage, UIWrappedText, UIText, WindowScreen, } from "../../../Elementa" const Color = Java.type("java.awt.Color"), URL = Java.type("java.net.URL"), COORDS_WIDTH = 3.5, // not actually width more like reverse of width lmao, bigger = smaller COORDS_HEIGHT = 2.877 // ^ ITEM_WIDTH = 3.5, ITEM_HEIGHT = 2.877 let ScreenW = Renderer.screen.getWidth(), ScreenH = Renderer.screen.getHeight(), itemCount = 0 class itemGui { constructor(item) { this.item = item itemCount++ const textWindow = new UIBlock(new Color(0, 0, 0, 0.5)) // 320 960 .setX(new CenterConstraint()) .setY((ScreenH/2*itemCount + ScreenH/10.8).pixels()) .setWidth((ScreenW/ITEM_WIDTH).pixels()) .setHeight((ScreenH/ITEM_HEIGHT).pixels()) .onMouseClick(() => { ChatLib.command(command, true) }) new UIText(this.item, false) .setX(new RelativeConstraint()) .setY((2).pixels()) .setTextScale((1).pixels()) .setColor(new ConstantColorConstraint(Color.WHITE)) .setChildOf(textWindow) } } function coordsWindow(row, column, title, command, desc, image=false, alternateText="") { const coordWindow = new UIBlock(new Color(0, 0, 0, 0.5)) // 320 960 .setX(((ScreenW/3*(column))-ScreenW/3.25).pixels()) .setY((ScreenH/2*(row-1)+ScreenH/10.8).pixels()) .setWidth((ScreenW/COORDS_WIDTH).pixels()) .setHeight((ScreenH/COORDS_HEIGHT).pixels()) .onMouseClick(() => { ChatLib.command(command, true) }) new UIText(title, false) .setX(new CenterConstraint()) .setY((2).pixels()) .setTextScale((2).pixels()) .setColor(new ConstantColorConstraint(Color.GREEN.darker())) .setChildOf(coordWindow) if(image == true) { new UIWrappedText(alternateText) .setX((12).pixels()) .setY((25).pixels()) .setWidth((ScreenW/5).pixels()) .setTextScale((1).pixels()) .setColor(new ConstantColorConstraint(Color.WHITE)) .setChildOf(coordWindow) new UIImage.ofURL(new URL(desc)) .setX(new CenterConstraint()) .setY(new AdditiveConstraint(new CenterConstraint(), (4).pixels())) .setWidth((ScreenW/3.7).pixels()) .setHeight((ScreenH/3.7).pixels()) .setChildOf(coordWindow) } else { new UIWrappedText(desc) .setX((2).pixels()) .setY((25).pixels()) .setWidth((ScreenW/3.7).pixels()) .setTextScale((1).pixels()) .setColor(new ConstantColorConstraint(Color.WHITE)) .setChildOf(coordWindow) } return coordWindow } export function openCoordsGui() { ScreenW = Renderer.screen.getWidth() ScreenH = Renderer.screen.getHeight() const CoordsGui = new JavaAdapter(WindowScreen, { init() { coordsWindow(1, 1, "Spiral", "cw spiral toggle", "https://i.imgur.com/dyL30GD.png", true, "Do /cw spiral to see image. (image isn't loading.)").setChildOf(this.getWindow()) coordsWindow(1, 2, "Throne", "cw throne toggle", "https://i.imgur.com/7BWzO1c.jpg", true, "Go back of throne. (image isn't loading)").setChildOf(this.getWindow()) coordsWindow(1, 3, "Yog", "cw yog toggle", "https://i.imgur.com/DojoypL.jpg", true, "Go to the leftmost corner of the topaz crystal facing bal close to bal. (image isn't loading)").setChildOf(this.getWindow()) coordsWindow(2, 1, "Divans", "cw divans toggle", "https://i.imgur.com/bkC6yp3.jpg", true, "Go to the middle of jade crystal. (image isn't loading)").setChildOf(this.getWindow()) coordsWindow(2, 2, "Automatons", "cw automatons toggle", "https://media.discordapp.net/attachments/1049475464667856926/1052749218055475210/image.png", true, "Sit in pot somewhere (check image in command) (image isn't loading)").setChildOf(this.getWindow()) new UIText("Click box to enable/disable.") .setX(new CenterConstraint()) .setY((ScreenH-ScreenH/12).pixels()) .setTextScale((2).pixels()) .setColor(Color.WHITE) .setChildOf(this.getWindow()) }, }) CoordsGui.init() GuiHandler.openGui(CoordsGui) }*/