Skip to content

Commit

Permalink
fixed compile error, fixed torch on button overlay texture
Browse files Browse the repository at this point in the history
  • Loading branch information
Trinsdar committed Sep 14, 2023
1 parent 9413718 commit 49ecfd8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ public class ButtonOverlay implements IAntimatterObject {

public static ButtonOverlay STOP = new ButtonOverlay(Ref.ID,"stop",16, 16);
public static ButtonOverlay TORCH_OFF = new ButtonOverlay(Ref.ID,"torch_off",16, 16);
public static ButtonOverlay TORCH_ON = new ButtonOverlay(Ref.ID,"torch_on",16, 16)
.setTextureOverride(new ResourceLocation("textures/item/redstone_torch.png"));
public static ButtonOverlay TORCH_ON = new ButtonOverlay(Ref.ID,"torch_on",16, 16);
public static ButtonOverlay REDSTONE = new ButtonOverlay(Ref.ID, "redstone", 16, 16)
.setTextureOverride(new ResourceLocation("textures/item/redstone.png"));
public static ButtonOverlay EXPORT = new ButtonOverlay(Ref.ID,"export",16, 16);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@ public static WidgetSupplier build(ToIntFunction<IGuiHandler> syncFunction, IGui
}

public static WidgetSupplier build(ToIntFunction<IGuiHandler> syncFunction, IGuiEvent.IGuiEventFactory ev, int id, IntFunction<String> tooltipKey, ButtonOverlay... buttons) {
return builder(((a, b) -> new CycleButtonWidget(a, b, but -> but.gui.sendPacket(but.gui.handler.createGuiPacket(new GuiEvents.GuiEvent(ev, Screen.hasShiftDown() ? 1 : 0, id))), syncFunction, buttons).setTooltipKey(tooltipKey)));
return builder(((a, b) -> new CycleButtonWidget(a, b, but -> but.gui.sendPacket(but.gui.handler.createGuiPacket(new GuiEvents.GuiEvent(ev, Screen.hasShiftDown() ? 1 : 0, id))), syncFunction, buttons).setTooltipKeyFunction(tooltipKey)));
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 49ecfd8

Please sign in to comment.