From 189a44e3c8bb918e9efdd611002ee1e17983108e Mon Sep 17 00:00:00 2001 From: radimous Date: Sat, 18 Jan 2025 11:43:03 +0100 Subject: [PATCH] hide legendary button on crafted and transmog screens --- .../com/radimous/vhatcaniroll/ui/GearModifierScreen.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/com/radimous/vhatcaniroll/ui/GearModifierScreen.java b/src/main/java/com/radimous/vhatcaniroll/ui/GearModifierScreen.java index a0fc9b1..4d91050 100644 --- a/src/main/java/com/radimous/vhatcaniroll/ui/GearModifierScreen.java +++ b/src/main/java/com/radimous/vhatcaniroll/ui/GearModifierScreen.java @@ -134,6 +134,8 @@ public class GearModifierScreen extends AbstractElementScreen { ISpatial modListSpatial = Spatials.positionXY(7, 50).size(this.getGuiSpatial().width() - 14, this.getGuiSpatial().height() - 57); this.innerScreen = new TransmogListContainer(modListSpatial, getCurrGear()).layout(this.translateWorldSpatial()); this.modifierCategoryButton.setDisabled(true); + this.modifierCategoryButton.setVisible(false); + this.modifierCategoryLabel.setVisible(false); this.windowName.set(new TranslatableComponent("vhatcaniroll.screen.title.transmogs").withStyle(ChatFormatting.BLACK)); this.addElement(this.innerScreen); ScreenLayout.requestLayout(); @@ -144,6 +146,8 @@ public class GearModifierScreen extends AbstractElementScreen { ISpatial modListSpatial = Spatials.positionXY(7, 50).size(this.getGuiSpatial().width() - 14, this.getGuiSpatial().height() - 57); this.innerScreen = new ModifierListContainer(modListSpatial, lvlInput.getValue(), modifierCategory, getCurrGear()).layout(this.translateWorldSpatial()); this.modifierCategoryButton.setDisabled(false); + this.modifierCategoryButton.setVisible(true); + this.modifierCategoryLabel.setVisible(true); this.windowName.set(new TranslatableComponent("vhatcaniroll.screen.title.random").withStyle(ChatFormatting.BLACK)); this.addElement(this.innerScreen); ScreenLayout.requestLayout(); @@ -156,6 +160,8 @@ public class GearModifierScreen extends AbstractElementScreen { ISpatial modListSpatial = Spatials.positionXY(7, 50).size(this.getGuiSpatial().width() - 14, this.getGuiSpatial().height() - 57); this.innerScreen = new CraftedModifiersListContainer(modListSpatial, lvlInput.getValue(), modifierCategory, getCurrGear()).layout(this.translateWorldSpatial()); this.modifierCategoryButton.setDisabled(true); + this.modifierCategoryButton.setVisible(false); + this.modifierCategoryLabel.setVisible(false); this.windowName.set(new TranslatableComponent("vhatcaniroll.screen.title.crafted").withStyle(ChatFormatting.BLACK)); this.addElement(this.innerScreen); ScreenLayout.requestLayout();