From 8f7e2334587f5f84bfbc0da74da3f099736d7193 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sat, 7 Oct 2023 17:41:22 +0200 Subject: Added option to hide player icons in tab list --- src/main/java/at/hannibal2/skyhanni/config/features/MiscConfig.java | 5 +++++ .../skyhanni/features/misc/compacttablist/TabListRenderer.kt | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'src/main/java') diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/MiscConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/MiscConfig.java index 84a8dbacb..343762d32 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/MiscConfig.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/MiscConfig.java @@ -564,6 +564,11 @@ public class MiscConfig { @ConfigEditorBoolean public boolean reverseSort = false; + @Expose + @ConfigOption(name = "Hide Player Icons", desc = "Hide the icons of player in the tab list.") + @ConfigEditorBoolean + public boolean hidePlayerIcons = false; + @Expose @ConfigOption(name = "Hide Rank Color", desc = "Hide the player rank color.") @ConfigEditorBoolean diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/compacttablist/TabListRenderer.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/compacttablist/TabListRenderer.kt index 8c4640603..57867b0dd 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/compacttablist/TabListRenderer.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/compacttablist/TabListRenderer.kt @@ -105,7 +105,7 @@ object TabListRenderer { for (tabLine in column.lines) { val savedX = middleX - if (tabLine.type == TabStringType.PLAYER) { + if (tabLine.type == TabStringType.PLAYER && !config.hidePlayerIcons) { val playerInfo = tabLine.getInfo() if (playerInfo != null) { minecraft.textureManager.bindTexture(playerInfo.locationSkin) -- cgit