From 8e17ee621940cd41b5916d99055565cc5a8a12b6 Mon Sep 17 00:00:00 2001 From: Sollace Date: Fri, 27 Jul 2018 19:42:37 +0200 Subject: [PATCH] Fix layering of tooltips and make buttons more hmmmhmmmhmmm --- .../minelittlepony/gui/IGuiTooltipped.java | 7 ++ .../java/com/minelittlepony/gui/Button.java | 6 +- .../java/com/minelittlepony/gui/GameGui.java | 15 ++++ .../voxelmodpack/hdskins/gui/GuiSkins.java | 10 ++- .../hdskins/gui/HDSkinsConfigPanel.java | 84 ++++--------------- .../minelittlepony/gui/GuiPonySettings.java | 4 +- .../hdskins/gui/GuiSkinsMineLP.java | 20 +++-- 7 files changed, 60 insertions(+), 86 deletions(-) create mode 100644 src/common/java/com/minelittlepony/gui/IGuiTooltipped.java diff --git a/src/common/java/com/minelittlepony/gui/IGuiTooltipped.java b/src/common/java/com/minelittlepony/gui/IGuiTooltipped.java new file mode 100644 index 00000000..edb3acaa --- /dev/null +++ b/src/common/java/com/minelittlepony/gui/IGuiTooltipped.java @@ -0,0 +1,7 @@ +package com.minelittlepony.gui; + +import net.minecraft.client.Minecraft; + +public interface IGuiTooltipped { + void renderToolTip(Minecraft mc, int mouseX, int mouseY); +} diff --git a/src/hdskins/java/com/minelittlepony/gui/Button.java b/src/hdskins/java/com/minelittlepony/gui/Button.java index 247d49a5..7963ca56 100644 --- a/src/hdskins/java/com/minelittlepony/gui/Button.java +++ b/src/hdskins/java/com/minelittlepony/gui/Button.java @@ -7,7 +7,7 @@ import com.google.common.base.Splitter; import net.minecraft.client.Minecraft; import net.minecraft.client.gui.GuiButton; -public class Button extends GuiButton implements IActionable { +public class Button extends GuiButton implements IActionable, IGuiTooltipped { private IGuiAction