From 24c8ce90e3925a397975b617eedf796ae52208ae Mon Sep 17 00:00:00 2001 From: CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> Date: Sat, 7 Oct 2023 11:43:32 +1100 Subject: Feature: Compact tab list (from sba but better) (#459) Added Advanced Tab List #459 --- src/main/java/at/hannibal2/skyhanni/data/GuiEditManager.kt | 6 +++--- src/main/java/at/hannibal2/skyhanni/data/RenderGuiData.kt | 6 +++--- src/main/java/at/hannibal2/skyhanni/data/TitleUtils.kt | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/data') diff --git a/src/main/java/at/hannibal2/skyhanni/data/GuiEditManager.kt b/src/main/java/at/hannibal2/skyhanni/data/GuiEditManager.kt index ad32abc15..4313fcb35 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/GuiEditManager.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/GuiEditManager.kt @@ -44,7 +44,7 @@ class GuiEditManager { } @SubscribeEvent(priority = EventPriority.LOWEST) - fun onRenderOverlay(event: GuiRenderEvent.GameOverlayRenderEvent) { + fun onRenderOverlay(event: GuiRenderEvent.GuiOverlayRenderEvent) { latestPositions = currentPositions.toMap() currentPositions.clear() } @@ -78,11 +78,11 @@ class GuiEditManager { GlStateManager.translate(0f, 0f, 200f) - GuiRenderEvent.GameOverlayRenderEvent().postAndCatch() + GuiRenderEvent.GuiOverlayRenderEvent().postAndCatch() GlStateManager.pushMatrix() GlStateManager.enableDepth() - GuiRenderEvent.ChestBackgroundRenderEvent().postAndCatch() + GuiRenderEvent.ChestGuiOverlayRenderEvent().postAndCatch() GlStateManager.popMatrix() GlStateManager.translate(0f, 0f, -200f) diff --git a/src/main/java/at/hannibal2/skyhanni/data/RenderGuiData.kt b/src/main/java/at/hannibal2/skyhanni/data/RenderGuiData.kt index 1b6acd634..1d7a544ca 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/RenderGuiData.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/RenderGuiData.kt @@ -17,7 +17,7 @@ class RenderGuiData { if (event.type != RenderGameOverlayEvent.ElementType.HOTBAR) return if (GuiEditManager.isInGui() || FFGuideGUI.isInGui()) return - GuiRenderEvent.GameOverlayRenderEvent().postAndCatch() + GuiRenderEvent.GuiOverlayRenderEvent().postAndCatch() } @SubscribeEvent @@ -30,10 +30,10 @@ class RenderGuiData { GlStateManager.enableDepth() if (GuiEditManager.isInGui()) { - GuiRenderEvent.GameOverlayRenderEvent().postAndCatch() + GuiRenderEvent.GuiOverlayRenderEvent().postAndCatch() } - GuiRenderEvent.ChestBackgroundRenderEvent().postAndCatch() + GuiRenderEvent.ChestGuiOverlayRenderEvent().postAndCatch() GlStateManager.popMatrix() } diff --git a/src/main/java/at/hannibal2/skyhanni/data/TitleUtils.kt b/src/main/java/at/hannibal2/skyhanni/data/TitleUtils.kt index 2004a1ed1..3970a1777 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/TitleUtils.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/TitleUtils.kt @@ -30,7 +30,7 @@ class TitleUtils { } @SubscribeEvent - fun onRenderOverlay(event: GuiRenderEvent.GameOverlayRenderEvent) { + fun onRenderOverlay(event: GuiRenderEvent.GuiOverlayRenderEvent) { if (endTime.isInPast()) return val scaledResolution = ScaledResolution(Minecraft.getMinecraft()) -- cgit