mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-25 13:57:59 +01:00
Fixed mod menu messing with our button
This commit is contained in:
parent
0056d078c9
commit
7bff1f2625
1 changed files with 6 additions and 6 deletions
|
@ -147,16 +147,16 @@ public class MineLittlePony implements ClientModInitializer {
|
|||
));
|
||||
|
||||
if (show) {
|
||||
int y = hasHdSkins ? 80 : 50;
|
||||
buttons.add(new Button(screen.width - 50, screen.height - y, 20, 20).onClick(sender -> {
|
||||
MinecraftClient.getInstance().openScreen(new GuiPonySettings());
|
||||
}).setStyle(new com.minelittlepony.common.client.gui.style.Style()
|
||||
int y = hasHdSkins ? 75 : 50;
|
||||
Button button = buttons.add(new Button(screen.width - 50, screen.height - y, 20, 20))
|
||||
.onClick(sender -> MinecraftClient.getInstance().openScreen(new GuiPonySettings()));
|
||||
button.getStyle()
|
||||
.setIcon(new TextureSprite()
|
||||
.setPosition(2, 2)
|
||||
.setTexture(new Identifier("minelittlepony", "textures/gui/pony.png"))
|
||||
.setTextureSize(16, 16)
|
||||
.setSize(16, 16))
|
||||
));
|
||||
.setSize(16, 16));
|
||||
button.y = screen.height - y; // ModMenu
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue