From 83659d80ca5d41b0e9c15dbfdc57c24f56e6c556 Mon Sep 17 00:00:00 2001 From: Sollace Date: Fri, 27 Jul 2018 15:45:16 +0200 Subject: [PATCH] Rewrite GuiSkins --- .../java/com/minelittlepony/gui/Button.java | 36 ++- .../java/com/minelittlepony/gui/Checkbox.java | 4 +- .../java/com/minelittlepony/gui/GameGui.java | 6 +- .../com/minelittlepony/gui/IGuiAction.java | 15 ++ .../com/minelittlepony/gui/IGuiCallback.java | 15 ++ .../java/com/minelittlepony/gui/Label.java | 5 +- .../com/minelittlepony/gui/SettingsPanel.java | 2 +- .../java/com/minelittlepony/gui/Slider.java | 6 +- .../hdskins/gui/GuiItemStackButton.java | 16 +- .../voxelmodpack/hdskins/gui/GuiSkins.java | 214 ++++++++---------- .../hdskins/mixin/MixinGuiMainMenu.java | 13 +- .../minelittlepony/gui/GuiPonySettings.java | 2 +- .../hdskins/gui/GuiSkinsMineLP.java | 53 ++--- .../settings/SensibleConfig.java | 4 +- 14 files changed, 200 insertions(+), 191 deletions(-) create mode 100644 src/common/java/com/minelittlepony/gui/IGuiAction.java create mode 100644 src/common/java/com/minelittlepony/gui/IGuiCallback.java diff --git a/src/common/java/com/minelittlepony/gui/Button.java b/src/common/java/com/minelittlepony/gui/Button.java index 0d8a21c2..247d49a5 100644 --- a/src/common/java/com/minelittlepony/gui/Button.java +++ b/src/common/java/com/minelittlepony/gui/Button.java @@ -1,14 +1,22 @@ package com.minelittlepony.gui; +import java.util.List; + +import com.google.common.base.Splitter; + +import net.minecraft.client.Minecraft; import net.minecraft.client.gui.GuiButton; public class Button extends GuiButton implements IActionable { - private IGUIAction