diff options
author | querns <33518699+querns@users.noreply.github.com> | 2023-09-09 08:39:16 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-09 15:39:16 +0200 |
commit | cac77610b54a76300227bdd2e6d576480ec7725f (patch) | |
tree | e95bd5e477ceb5976b36edf5ef4578fdec6ee9ce /src/main/java/gregtech/common/tileentities | |
parent | 505850f40010719ebff477fc5cac41f0786e0f41 (diff) | |
download | GT5-Unofficial-cac77610b54a76300227bdd2e6d576480ec7725f.tar.gz GT5-Unofficial-cac77610b54a76300227bdd2e6d576480ec7725f.tar.bz2 GT5-Unofficial-cac77610b54a76300227bdd2e6d576480ec7725f.zip |
Request drill changes, eliminates recipe info in drill GUI (#2285)
Diffstat (limited to 'src/main/java/gregtech/common/tileentities')
2 files changed, 11 insertions, 6 deletions
diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_DrillerBase.java b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_DrillerBase.java index 983e6c5998..f40c70d2a4 100644 --- a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_DrillerBase.java +++ b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_DrillerBase.java @@ -61,7 +61,7 @@ import gregtech.api.GregTech_API; import gregtech.api.enums.ItemList; import gregtech.api.enums.Materials; import gregtech.api.gui.modularui.GT_UITextures; -import gregtech.api.gui.widgets.GT_DisabledWhileActiveButton; +import gregtech.api.gui.widgets.GT_LockedWhileActiveButton; import gregtech.api.interfaces.IChunkLoader; import gregtech.api.interfaces.IHatchElement; import gregtech.api.interfaces.ITexture; @@ -789,6 +789,11 @@ public abstract class GT_MetaTileEntity_DrillerBase .widget(new FakeSyncWidget.StringSyncer(() -> shutdownReason, newString -> shutdownReason = newString)); } + @Override + protected boolean showRecipeTextInGUI() { + return false; + } + /** * Adds additional buttons to the main button row. You do not need to set the position. * @@ -805,7 +810,7 @@ public abstract class GT_MetaTileEntity_DrillerBase final int BUTTON_Y_LEVEL = 91; builder.widget( - new GT_DisabledWhileActiveButton(this.getBaseMetaTileEntity(), builder) + new GT_LockedWhileActiveButton(this.getBaseMetaTileEntity(), builder) .setOnClick((clickData, widget) -> mChunkLoadingEnabled = !mChunkLoadingEnabled) .setPlayClickSound(true) .setBackground(() -> { diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_OreDrillingPlantBase.java b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_OreDrillingPlantBase.java index 8103ff632b..7986e52208 100644 --- a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_OreDrillingPlantBase.java +++ b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_OreDrillingPlantBase.java @@ -44,7 +44,7 @@ import gregtech.api.enums.Materials; import gregtech.api.enums.OrePrefixes; import gregtech.api.enums.SoundResource; import gregtech.api.gui.modularui.GT_UITextures; -import gregtech.api.gui.widgets.GT_DisabledWhileActiveButton; +import gregtech.api.gui.widgets.GT_LockedWhileActiveButton; import gregtech.api.interfaces.IHatchElement; import gregtech.api.objects.GT_ChunkManager; import gregtech.api.objects.ItemData; @@ -623,7 +623,7 @@ public abstract class GT_MetaTileEntity_OreDrillingPlantBase extends GT_MetaTile @Override protected List<ButtonWidget> getAdditionalButtons(ModularWindow.Builder builder, UIBuildContext buildContext) { return ImmutableList.of( - (ButtonWidget) new GT_DisabledWhileActiveButton(this.getBaseMetaTileEntity(), builder) + (ButtonWidget) new GT_LockedWhileActiveButton(this.getBaseMetaTileEntity(), builder) .setOnClick((clickData, widget) -> adjustChunkRadius(clickData.mouseButton == 0)) .setPlayClickSound(true) .setBackground(GT_UITextures.BUTTON_STANDARD, GT_UITextures.OVERLAY_WORK_AREA) @@ -639,12 +639,12 @@ public abstract class GT_MetaTileEntity_OreDrillingPlantBase extends GT_MetaTile StatCollector.translateToLocal("GT5U.gui.button.ore_drill_radius_2"))) .setTooltipShowUpDelay(TOOLTIP_DELAY) .setSize(16, 16), - (ButtonWidget) new GT_DisabledWhileActiveButton(this.getBaseMetaTileEntity(), builder) + (ButtonWidget) new GT_LockedWhileActiveButton(this.getBaseMetaTileEntity(), builder) .setOnClick((clickData, widget) -> replaceWithCobblestone = !replaceWithCobblestone) .setPlayClickSound(true) .setBackground(() -> { if (replaceWithCobblestone) { - return new IDrawable[] { GT_UITextures.BUTTON_STANDARD, + return new IDrawable[] { GT_UITextures.BUTTON_STANDARD_PRESSED, GT_UITextures.OVERLAY_REPLACE_COBBLE_ON }; } return new IDrawable[] { GT_UITextures.BUTTON_STANDARD, GT_UITextures.OVERLAY_REPLACE_COBBLE_OFF }; |