hide legendary button on crafted and transmog screens

This commit is contained in:
radimous 2025-01-18 11:43:03 +01:00
parent 10f586e5db
commit 5e02499406

View file

@ -134,6 +134,8 @@ public class GearModifierScreen extends AbstractElementScreen {
ISpatial modListSpatial = Spatials.positionXY(7, 50).size(this.getGuiSpatial().width() - 14, this.getGuiSpatial().height() - 57); 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.innerScreen = new TransmogListContainer(modListSpatial, getCurrGear()).layout(this.translateWorldSpatial());
this.modifierCategoryButton.setDisabled(true); 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.windowName.set(new TranslatableComponent("vhatcaniroll.screen.title.transmogs").withStyle(ChatFormatting.BLACK));
this.addElement(this.innerScreen); this.addElement(this.innerScreen);
ScreenLayout.requestLayout(); 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); 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.innerScreen = new ModifierListContainer(modListSpatial, lvlInput.getValue(), modifierCategory, getCurrGear()).layout(this.translateWorldSpatial());
this.modifierCategoryButton.setDisabled(false); 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.windowName.set(new TranslatableComponent("vhatcaniroll.screen.title.random").withStyle(ChatFormatting.BLACK));
this.addElement(this.innerScreen); this.addElement(this.innerScreen);
ScreenLayout.requestLayout(); 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); 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.innerScreen = new CraftedModifiersListContainer(modListSpatial, lvlInput.getValue(), modifierCategory, getCurrGear()).layout(this.translateWorldSpatial());
this.modifierCategoryButton.setDisabled(true); 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.windowName.set(new TranslatableComponent("vhatcaniroll.screen.title.crafted").withStyle(ChatFormatting.BLACK));
this.addElement(this.innerScreen); this.addElement(this.innerScreen);
ScreenLayout.requestLayout(); ScreenLayout.requestLayout();