mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-25 00:18:34 +01:00
Gui Fixes
This commit is contained in:
parent
9e0ce03580
commit
d7de3e61d2
2 changed files with 4 additions and 5 deletions
|
@ -97,6 +97,8 @@ public class GuiLaserRelayItemWhitelist extends AAScreen<ContainerLaserRelayItem
|
|||
@Override
|
||||
public void render(@Nonnull GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTicks) {
|
||||
super.render(guiGraphics, mouseX, mouseY, partialTicks);
|
||||
this.leftFilter.drawHover(guiGraphics, mouseX, mouseY);
|
||||
this.rightFilter.drawHover(guiGraphics, mouseX, mouseY);
|
||||
|
||||
if (this.buttonSmartWhitelistLeft.isMouseOver(mouseX, mouseY) || this.buttonSmartWhitelistRight.isMouseOver(mouseX, mouseY)) {
|
||||
List<FormattedCharSequence> list = new ArrayList<>();
|
||||
|
@ -104,9 +106,6 @@ public class GuiLaserRelayItemWhitelist extends AAScreen<ContainerLaserRelayItem
|
|||
list.addAll(this.font.split(Component.translatable("info.actuallyadditions.gui.smartInfo"), 200));
|
||||
guiGraphics.renderTooltip(this.font, list, mouseX, mouseY); //renderTooltip
|
||||
}
|
||||
|
||||
this.leftFilter.drawHover(guiGraphics, mouseX, mouseY);
|
||||
this.rightFilter.drawHover(guiGraphics, mouseX, mouseY);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -88,8 +88,8 @@ public class SackGui extends AAScreen<SackContainer> {
|
|||
text.add(Component.literal("Auto-Insert " + (this.container.autoInsert
|
||||
? "On"
|
||||
: "Off")).withStyle(ChatFormatting.BOLD));
|
||||
text.add(Component.literal("Turn this on to make items that get picked up automatically go into the bag.")); //TODO how to word wrap these to 200?
|
||||
text.add(Component.literal("Note that this WON'T work when you are holding the bag in your hand.").withStyle(ChatFormatting.GRAY).withStyle(ChatFormatting.ITALIC)); //TODO this too
|
||||
text.add(Component.literal("Turn this on to make items that get picked up automatically go into the sack.")); //TODO how to word wrap these to 200?
|
||||
text.add(Component.literal("Note that this WON'T work when you are holding the sack in your hand.").withStyle(ChatFormatting.GRAY).withStyle(ChatFormatting.ITALIC)); //TODO this too
|
||||
guiGraphics.renderTooltip(font, text, Optional.empty(), mouseX, mouseY); //TODO i have no idea what im doing here...
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue