Skip to content

Commit becf11d

Browse files
authored
Progress Bar Updates (#1504)
1 parent 2c8cdb2 commit becf11d

27 files changed

Lines changed: 8 additions & 7 deletions

src/main/java/gregtech/api/gui/GuiTextures.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ public class GuiTextures {
119119
public static final TextureArea PROGRESS_BAR_LATHE = TextureArea.fullImage("textures/gui/progress_bar/progress_bar_lathe.png");
120120
public static final TextureArea PROGRESS_BAR_MACERATE = TextureArea.fullImage("textures/gui/progress_bar/progress_bar_macerate.png");
121121
public static final TextureArea PROGRESS_BAR_MAGNET = TextureArea.fullImage("textures/gui/progress_bar/progress_bar_magnet.png");
122+
public static final TextureArea PROGRESS_BAR_MIXER = TextureArea.fullImage("textures/gui/progress_bar/progress_bar_mixer.png");
122123
public static final TextureArea PROGRESS_BAR_RECYCLER = TextureArea.fullImage("textures/gui/progress_bar/progress_bar_recycler.png");
123124
public static final TextureArea PROGRESS_BAR_SIFT = TextureArea.fullImage("textures/gui/progress_bar/progress_bar_sift.png");
124125
public static final TextureArea PROGRESS_BAR_SLICE = TextureArea.fullImage("textures/gui/progress_bar/progress_bar_slice.png");

src/main/java/gregtech/api/recipes/RecipeMap.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ public ModularUI.Builder createJeiUITemplate(IItemHandlerModifiable importItems,
279279
//this DOES NOT include machine control widgets or binds player inventory
280280
public ModularUI.Builder createUITemplate(DoubleSupplier progressSupplier, IItemHandlerModifiable importItems, IItemHandlerModifiable exportItems, FluidTankList importFluids, FluidTankList exportFluids) {
281281
ModularUI.Builder builder = ModularUI.defaultBuilder();
282-
builder.widget(new ProgressWidget(progressSupplier, 77, 22, 20, 20, progressBarTexture, moveType));
282+
builder.widget(new ProgressWidget(progressSupplier, 77, 22, 21, 20, progressBarTexture, moveType));
283283
addInventorySlotGroup(builder, importItems, importFluids, false);
284284
addInventorySlotGroup(builder, exportItems, exportFluids, true);
285285
return builder;

src/main/java/gregtech/api/recipes/RecipeMaps.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public class RecipeMaps {
2121
@ZenProperty
2222
public static final RecipeMap<SimpleRecipeBuilder> COMPRESSOR_RECIPES = new RecipeMap<>("compressor", 1, 1, 1, 1, 0, 0, 0, 0, new SimpleRecipeBuilder().duration(400).EUt(2))
2323
.setSlotOverlay(false, false, GuiTextures.COMPRESSOR_OVERLAY)
24-
.setProgressBar(GuiTextures.PROGRESS_BAR_COMPRESS, MoveType.HORIZONTAL);
24+
.setProgressBar(GuiTextures.PROGRESS_BAR_BENDING, MoveType.HORIZONTAL);
2525

2626

2727
@ZenProperty
@@ -149,7 +149,7 @@ public class RecipeMaps {
149149
public static final RecipeMap<SimpleRecipeBuilder> MIXER_RECIPES = new RecipeMap<>("mixer", 0, 4, 0, 1, 0, 2, 0, 1, new SimpleRecipeBuilder())
150150
.setSlotOverlay(false, false, GuiTextures.DUST_OVERLAY)
151151
.setSlotOverlay(true, false, GuiTextures.DUST_OVERLAY)
152-
.setProgressBar(GuiTextures.PROGRESS_BAR_BATH, MoveType.HORIZONTAL);
152+
.setProgressBar(GuiTextures.PROGRESS_BAR_MIXER, MoveType.HORIZONTAL);
153153

154154
/**
155155
* Example:
@@ -220,7 +220,7 @@ public class RecipeMaps {
220220

221221
@ZenProperty
222222
public static final RecipeMap<SimpleRecipeBuilder> CHEMICAL_BATH_RECIPES = new RecipeMap<>("chemical_bath", 1, 1, 1, 3, 1, 1, 0, 0, new SimpleRecipeBuilder())
223-
.setProgressBar(GuiTextures.PROGRESS_BAR_BATH, MoveType.HORIZONTAL);
223+
.setProgressBar(GuiTextures.PROGRESS_BAR_MIXER, MoveType.HORIZONTAL);
224224

225225
/**
226226
* Example:
@@ -558,7 +558,7 @@ public class RecipeMaps {
558558
@ZenProperty
559559
public static final RecipeMap<IntCircuitRecipeBuilder> BENDER_RECIPES = new RecipeMap<>("metal_bender", 2, 2, 1, 1, 0, 0, 0, 0, new IntCircuitRecipeBuilder())
560560
.setSlotOverlay(false, false, false, GuiTextures.BENDER_OVERLAY)
561-
.setProgressBar(GuiTextures.PROGRESS_BAR_BENDING, MoveType.HORIZONTAL);
561+
.setProgressBar(GuiTextures.PROGRESS_BAR_COMPRESS, MoveType.HORIZONTAL);
562562

563563

564564
@ZenProperty

src/main/java/gregtech/api/recipes/machines/RecipeMapGroupOutput.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public Builder createJeiUITemplate(IItemHandlerModifiable importItems, IItemHand
2727
@Override
2828
public Builder createUITemplate(DoubleSupplier progressSupplier, IItemHandlerModifiable importItems, IItemHandlerModifiable exportItems, FluidTankList importFluids, FluidTankList exportFluids) {
2929
ModularUI.Builder builder = ModularUI.defaultBuilder();
30-
builder.widget(new ProgressWidget(progressSupplier, 77, 22, 20, 20, progressBarTexture, moveType));
30+
builder.widget(new ProgressWidget(progressSupplier, 77, 22, 21, 20, progressBarTexture, moveType));
3131
addInventorySlotGroup(builder, importItems, importFluids, false);
3232
BooleanWrapper booleanWrapper = new BooleanWrapper();
3333
ServerWidgetGroup itemOutputGroup = createItemOutputWidgetGroup(exportItems, new ServerWidgetGroup(() -> !booleanWrapper.getCurrentMode()));

src/main/java/gregtech/common/metatileentities/steam/SteamMacerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public ModularUI createUI(EntityPlayer player) {
4242
return createUITemplate(player)
4343
.widget(new SlotWidget(this.importItems, 0, 53, 25)
4444
.setBackgroundTexture(BRONZE_SLOT_BACKGROUND_TEXTURE, getFullGuiTexture("slot_%s_macerator_background")))
45-
.widget(new ProgressWidget(workableHandler::getProgressPercent, 78, 25, 20, 18)
45+
.widget(new ProgressWidget(workableHandler::getProgressPercent, 78, 25, 21, 18)
4646
.setProgressBar(getFullGuiTexture("progress_bar_%s_macerator"),
4747
getFullGuiTexture("progress_bar_%s_macerator_filled"),
4848
ProgressWidget.MoveType.HORIZONTAL))
-95 Bytes
Loading
-66 Bytes
Loading
-139 Bytes
Loading
-45 Bytes
Loading
-83 Bytes
Loading

0 commit comments

Comments
 (0)