From 7d60a05317f57f2d6d59d94e8bac520eed7c54e0 Mon Sep 17 00:00:00 2001 From: Sollace Date: Fri, 27 Jul 2018 14:27:32 +0200 Subject: [PATCH] Rewrite SkinsGui using the new-age gui classes --- .../java/com/minelittlepony/gui/Button.java | 47 ++++ .../java/com/minelittlepony/gui/Checkbox.java | 10 +- .../java/com/minelittlepony/gui/GameGui.java | 19 ++ .../com/minelittlepony/gui/IActionable.java | 0 .../com/minelittlepony/gui/IGuiAction.java | 15 ++ .../com/minelittlepony/gui/IGuiCallback.java} | 2 +- .../minelittlepony/gui/IGuiTooltipped.java | 7 + .../com/minelittlepony/gui/IconicButton.java | 31 +++ .../java/com/minelittlepony/gui/Label.java | 11 +- .../minelittlepony/gui/SettingsPanel.java} | 19 +- .../java/com/minelittlepony/gui/Slider.java | 12 +- .../hdskins/gui/GuiItemStackButton.java | 16 +- .../voxelmodpack/hdskins/gui/GuiSkins.java | 214 ++++++++---------- .../hdskins/mixin/MixinGuiMainMenu.java | 13 +- .../minelittlepony/LiteModMineLittlePony.java | 4 +- .../minelittlepony/gui/GuiPonySettings.java | 21 +- .../hdskins/gui/GuiSkinsMineLP.java | 57 ++--- .../settings/SensibleConfig.java | 4 +- 18 files changed, 293 insertions(+), 209 deletions(-) create mode 100644 src/hdskins/java/com/minelittlepony/gui/Button.java rename src/{main => hdskins}/java/com/minelittlepony/gui/Checkbox.java (72%) create mode 100644 src/hdskins/java/com/minelittlepony/gui/GameGui.java rename src/{main => hdskins}/java/com/minelittlepony/gui/IActionable.java (100%) create mode 100644 src/hdskins/java/com/minelittlepony/gui/IGuiAction.java rename src/{main/java/com/minelittlepony/gui/IGUIAction.java => hdskins/java/com/minelittlepony/gui/IGuiCallback.java} (89%) create mode 100644 src/hdskins/java/com/minelittlepony/gui/IGuiTooltipped.java create mode 100644 src/hdskins/java/com/minelittlepony/gui/IconicButton.java rename src/{main => hdskins}/java/com/minelittlepony/gui/Label.java (77%) rename src/{main/java/com/minelittlepony/gui/PonySettingsPanel.java => hdskins/java/com/minelittlepony/gui/SettingsPanel.java} (83%) rename src/{main => hdskins}/java/com/minelittlepony/gui/Slider.java (78%) diff --git a/src/hdskins/java/com/minelittlepony/gui/Button.java b/src/hdskins/java/com/minelittlepony/gui/Button.java new file mode 100644 index 00000000..247d49a5 --- /dev/null +++ b/src/hdskins/java/com/minelittlepony/gui/Button.java @@ -0,0 +1,47 @@ +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