mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 06:42:56 +00:00
port new dump button design from 1.7.10 #67
This commit is contained in:
3 files changed
+2
-2
No files matched your search
@@ -65,7 +65,7 @@ public class GuiFactory extends GuiMekanismTile<TileEntityFactory> {
|
||||
@Override
|
||||
public void initGui() {
|
||||
super.initGui();
|
||||
this.buttonList.add(this.infuserDumpButton = new GuiButtonImage(1, this.guiLeft+6, this.guiTop+44, 21, 10, 147, 72, 0, MekanismUtils.getResource(ResourceType.GUI, "GuiMetallurgicInfuser.png")){
|
||||
this.buttonList.add(this.infuserDumpButton = new GuiButtonImage(1, this.guiLeft+6, this.guiTop+44, 24, 9, 145, 73, 0, MekanismUtils.getResource(ResourceType.GUI, "GuiMetallurgicInfuser.png")){
|
||||
@Override
|
||||
public void drawButton(Minecraft mc, int mouseX, int mouseY, float partialTicks) {
|
||||
if (GuiFactory.this.tileEntity.getRecipeType() == RecipeType.INFUSING) {
|
||||
|
||||
@@ -89,7 +89,7 @@ public class GuiMetallurgicInfuser extends GuiMekanismTile<TileEntityMetallurgic
|
||||
if (button == 0) {
|
||||
int xAxis = x - guiLeft;
|
||||
int yAxis = y - guiTop;
|
||||
if (xAxis > 148 && xAxis < 168 && yAxis > 73 && yAxis < 82) {
|
||||
if (xAxis > 144 && xAxis < 169 && yAxis > 72 && yAxis < 82) {
|
||||
TileNetworkList data = TileNetworkList.withContents(0);
|
||||
Mekanism.packetHandler.sendToServer(new TileEntityMessage(tileEntity, data));
|
||||
SoundHandler.playSound(SoundEvents.UI_BUTTON_CLICK);
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 4.0 KiB |
Reference in new issue
Block a user