mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-12-02 08:48:00 +01:00
Arrange buttons
This commit is contained in:
parent
5635e9cd4c
commit
2df8368341
2 changed files with 9 additions and 9 deletions
|
@ -195,7 +195,7 @@ public class GuiSkins extends GameGui {
|
||||||
|
|
||||||
addButton(new Label(width / 2, 10, "hdskins.manager", 0xffffff, true));
|
addButton(new Label(width / 2, 10, "hdskins.manager", 0xffffff, true));
|
||||||
|
|
||||||
addButton(new Button(30, height - 36, 60, 20, "Browse...", sender ->{
|
addButton(new Button(width / 2 - 150, height - 27, 90, 20, "Browse...", sender ->{
|
||||||
selectedSkin = null;
|
selectedSkin = null;
|
||||||
localPlayer.releaseTextures();
|
localPlayer.releaseTextures();
|
||||||
openFileThread = new ThreadOpenFilePNG(mc, format("hdskins.open.title"), (fileDialog, dialogResult) -> {
|
openFileThread = new ThreadOpenFilePNG(mc, format("hdskins.open.title"), (fileDialog, dialogResult) -> {
|
||||||
|
@ -218,30 +218,30 @@ public class GuiSkins extends GameGui {
|
||||||
}
|
}
|
||||||
})).setEnabled(false);
|
})).setEnabled(false);
|
||||||
|
|
||||||
addButton(btnClear = new Button(width - 90, height - 36, 60, 20, "Clear", sender -> {
|
addButton(btnClear = new Button(width / 2 + 60, height - 27, 90, 20, "Clear", sender -> {
|
||||||
if (remotePlayer.isTextureSetupComplete()) {
|
if (remotePlayer.isTextureSetupComplete()) {
|
||||||
punchServer("hdskins.request", null);
|
punchServer("hdskins.request", null);
|
||||||
btnUpload.enabled = selectedSkin != null;
|
btnUpload.enabled = selectedSkin != null;
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
|
|
||||||
addButton(new Button(width / 2 - 50, height - 36, 100, 20, "Close", sender -> {
|
addButton(new Button(width / 2 - 50, height - 25, 100, 20, "Close", sender -> {
|
||||||
mc.displayGuiScreen(new GuiMainMenu());
|
mc.displayGuiScreen(new GuiMainMenu());
|
||||||
}));
|
}));
|
||||||
|
|
||||||
addButton(btnModeSkin = new GuiItemStackButton(2, 2, new ItemStack(Items.LEATHER_LEGGINGS), 0x3c5dcb, sender -> {
|
addButton(btnModeSkin = new GuiItemStackButton(width - 25, 32, new ItemStack(Items.LEATHER_LEGGINGS), 0x3c5dcb, sender -> {
|
||||||
switchSkinMode(sender, false, SKIN, ItemStack.EMPTY);
|
switchSkinMode(sender, false, SKIN, ItemStack.EMPTY);
|
||||||
})).setEnabled(thinArmType).setTooltip("hdskins.mode.skin");
|
})).setEnabled(thinArmType).setTooltip("hdskins.mode.skin");
|
||||||
|
|
||||||
addButton(btnModeElytra = new GuiItemStackButton(2, 52, new ItemStack(Items.ELYTRA), sender -> {
|
addButton(btnModeElytra = new GuiItemStackButton(width - 25, 82, new ItemStack(Items.ELYTRA), sender -> {
|
||||||
switchSkinMode(sender, thinArmType, ELYTRA, new ItemStack(Items.ELYTRA));
|
switchSkinMode(sender, thinArmType, ELYTRA, new ItemStack(Items.ELYTRA));
|
||||||
})).setEnabled(textureType == SKIN).setTooltip("hdskins.mode.elytra");
|
})).setEnabled(textureType == SKIN).setTooltip("hdskins.mode.elytra");
|
||||||
|
|
||||||
addButton(btnModeSkinnySkin = new GuiItemStackButton(2, 21, new ItemStack(Items.LEATHER_LEGGINGS), 0xfff500, sender -> {
|
addButton(btnModeSkinnySkin = new GuiItemStackButton(width - 25, 51, new ItemStack(Items.LEATHER_LEGGINGS), 0xfff500, sender -> {
|
||||||
switchSkinMode(sender, true, SKIN, ItemStack.EMPTY);
|
switchSkinMode(sender, true, SKIN, ItemStack.EMPTY);
|
||||||
})).setEnabled(!thinArmType).setTooltip("hdskins.mode.skinny");
|
})).setEnabled(!thinArmType).setTooltip("hdskins.mode.skinny");
|
||||||
|
|
||||||
addButton(new Button(width - 25, height - 25, 20, 20, "?", sender -> {
|
addButton(new Button(width - 25, height - 65, 20, 20, "?", sender -> {
|
||||||
|
|
||||||
})).setTooltip(Splitter.on("\r\n").splitToList(HDSkinManager.INSTANCE.getGatewayServer().toString()));
|
})).setTooltip(Splitter.on("\r\n").splitToList(HDSkinManager.INSTANCE.getGatewayServer().toString()));
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,12 +41,12 @@ public class GuiSkinsMineLP extends GuiSkins {
|
||||||
public void initGui() {
|
public void initGui() {
|
||||||
super.initGui();
|
super.initGui();
|
||||||
|
|
||||||
addButton(btnModeWet = new GuiItemStackButton(2, 99, new ItemStack(Items.WATER_BUCKET), sender -> {
|
addButton(btnModeWet = new GuiItemStackButton(width - 25, 139, new ItemStack(Items.WATER_BUCKET), sender -> {
|
||||||
if (!isWet) {
|
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(width - 25, 120, new ItemStack(Items.BUCKET), sender -> {
|
||||||
if (isWet) {
|
if (isWet) {
|
||||||
setWet(false);
|
setWet(false);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue