mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-12-02 00:37:59 +01:00
Fix seapony toggles (again) and center the skin manager title
This commit is contained in:
parent
2716de4b4b
commit
94b01a460f
2 changed files with 7 additions and 7 deletions
|
@ -193,7 +193,7 @@ public class GuiSkins extends GameGui {
|
||||||
|
|
||||||
panorama.init();
|
panorama.init();
|
||||||
|
|
||||||
addButton(new Label(width / 2, 10, "hdskins.manager", 0xffffff));
|
addButton(new Label(width / 2, 10, "hdskins.manager", 0xffffff, true));
|
||||||
|
|
||||||
addButton(new Button(30, height - 36, 60, 20, "Browse...", sender ->{
|
addButton(new Button(30, height - 36, 60, 20, "Browse...", sender ->{
|
||||||
selectedSkin = null;
|
selectedSkin = null;
|
||||||
|
|
|
@ -42,10 +42,14 @@ public class GuiSkinsMineLP extends GuiSkins {
|
||||||
super.initGui();
|
super.initGui();
|
||||||
|
|
||||||
addButton(btnModeWet = new GuiItemStackButton(2, 99, new ItemStack(Items.WATER_BUCKET), sender -> {
|
addButton(btnModeWet = new GuiItemStackButton(2, 99, new ItemStack(Items.WATER_BUCKET), sender -> {
|
||||||
|
if (!isWet) {
|
||||||
setWet(true);
|
setWet(true);
|
||||||
|
}
|
||||||
})).setTooltip("minelp.mode.wet");
|
})).setTooltip("minelp.mode.wet");
|
||||||
addButton(btnModeDry = new GuiItemStackButton(2, 80, new ItemStack(Items.BUCKET), sender -> {
|
addButton(btnModeDry = new GuiItemStackButton(2, 80, new ItemStack(Items.BUCKET), sender -> {
|
||||||
|
if (isWet) {
|
||||||
setWet(false);
|
setWet(false);
|
||||||
|
}
|
||||||
})).setTooltip("minelp.mode.dry");
|
})).setTooltip("minelp.mode.dry");
|
||||||
|
|
||||||
setWet(false);
|
setWet(false);
|
||||||
|
@ -59,10 +63,6 @@ public class GuiSkinsMineLP extends GuiSkins {
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void setWet(boolean wet) {
|
protected void setWet(boolean wet) {
|
||||||
if (isWet == wet) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
isWet = wet;
|
isWet = wet;
|
||||||
localPlayer.releaseTextures();
|
localPlayer.releaseTextures();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue