
question UI
Closed this issue ยท 1 comments
sry for many question last question
how can i remove that?
protected final TabList tabList = new TabList(accessor).add(30, LegacyTabButton.Type.LEFT,Component.translatable("legacy.menu.minigames.create"), b-> repositionElements()).add(30, LegacyTabButton.Type.MIDDLE,Component.translatable("legacy.menu.minigames.join"), b-> repositionElements()).add(30, LegacyTabButton.Type.RIGHT, (t, guiGraphics, i, j, f) -> t.renderString(guiGraphics,font,canNotifyOnlineFriends() ? 0xFFFFFF : CommonColor.INVENTORY_GRAY_TEXT.get(),canNotifyOnlineFriends()),Component.translatable("legacy.menu.minigames.friends"), b-> {
//if (this.minecraft.options.skipMultiplayerWarning)
// repositionElements();
//else minecraft.setScreen(new ConfirmationScreen(this,SAFETY_TITLE,Component.translatable("legacy.menu.multiplayer_warning").append("\n").append(SAFETY_CONTENT)){
// @OverRide
// protected void addButtons() {
// renderableVList.addRenderable(Button.builder(SAFETY_CHECK, b-> {
// this.minecraft.options.skipMultiplayerWarning = true;
// this.minecraft.options.save();
// onClose();
// }).bounds(panel.x + (panel.width - 200) / 2, panel.y + panel.height - 52,200,20).build());
// renderableVList.addRenderable(okButton = Button.builder(Component.translatable("gui.ok"),b-> okAction.accept(this)).bounds(panel.x + (panel.width - 200) / 2, panel.y + panel.height - 30,200,20).build());
// }
//});
});
other tabs dont habe that? what part of code is causing that?