Remove some todo's

This commit is contained in:
Mrbysco 2024-03-12 16:35:56 +01:00
parent 73be71afe5
commit cef510c8d7
4 changed files with 4 additions and 4 deletions

View file

@ -88,7 +88,7 @@ public class FilterSettingsGui {
} }
//TODO tooltips still jank //TODO tooltips still jank
if (!list.isEmpty()) { if (!list.isEmpty()) {
guiGraphics.renderComponentTooltip(mc.font, list, mouseX, mouseY); //TODO: Check if this is correct, used to call GuiUtils.drawHoveringText guiGraphics.renderComponentTooltip(mc.font, list, mouseX, mouseY);
} }
} }
} }

View file

@ -79,7 +79,7 @@ public class GuiLaserRelayItemWhitelist extends AAScreen<ContainerLaserRelayItem
// List<String> list = new ArrayList<>(); // List<String> list = new ArrayList<>();
// list.add(TextFormatting.BOLD + StringUtil.localize("info." + ActuallyAdditions.MODID + ".gui.smart")); // list.add(TextFormatting.BOLD + StringUtil.localize("info." + ActuallyAdditions.MODID + ".gui.smart"));
// list.addAll(this.font.listFormattedStringToWidth(StringUtil.localize("info." + ActuallyAdditions.MODID + ".gui.smartInfo"), 200)); // list.addAll(this.font.listFormattedStringToWidth(StringUtil.localize("info." + ActuallyAdditions.MODID + ".gui.smartInfo"), 200));
// this.drawHoveringText(list, x, y); // this.drawHoveringText(list, x, y); //renderComponentTooltip
// } // }
this.leftFilter.drawHover(guiGraphics, x, y); this.leftFilter.drawHover(guiGraphics, x, y);

View file

@ -64,7 +64,7 @@ public class GuiPhantomPlacer extends AAScreen<ContainerPhantomPlacer> {
// List<String> textList = new ArrayList<>(); // List<String> textList = new ArrayList<>();
// textList.add(TextFormatting.GOLD + StringUtil.localize(loc + ".1")); // textList.add(TextFormatting.GOLD + StringUtil.localize(loc + ".1"));
// textList.addAll(this.font.listFormattedStringToWidth(StringUtil.localize(loc + ".2"), 200)); // textList.addAll(this.font.listFormattedStringToWidth(StringUtil.localize(loc + ".2"), 200));
// this.drawHoveringText(textList, mouseX, mouseY); // this.drawHoveringText(textList, mouseX, mouseY); //renderComponentTooltip
// } // }
} }

View file

@ -61,7 +61,7 @@ public class TexturedButton extends Button {
public void drawHover(GuiGraphics guiGraphics, int x, int y) { public void drawHover(GuiGraphics guiGraphics, int x, int y) {
if (this.isMouseOver(x, y)) { if (this.isMouseOver(x, y)) {
Minecraft mc = Minecraft.getInstance(); Minecraft mc = Minecraft.getInstance();
guiGraphics.renderComponentTooltip(mc.font, this.textList.stream().map(Component::literal).collect(Collectors.toList()), x, y); //TODO: Check if this is correct, used to call GuiUtils.drawHoveringText guiGraphics.renderComponentTooltip(mc.font, this.textList.stream().map(Component::literal).collect(Collectors.toList()), x, y);
} }
} }
} }