aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-10-07 17:41:22 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-10-07 17:41:22 +0200
commit8f7e2334587f5f84bfbc0da74da3f099736d7193 (patch)
treed7035bb3854febc39bc6712edc664fe8866f4b66 /src/main/java/at/hannibal2
parenteb325b5680d211276f6b78644b75c39e9211432e (diff)
downloadskyhanni-8f7e2334587f5f84bfbc0da74da3f099736d7193.tar.gz
skyhanni-8f7e2334587f5f84bfbc0da74da3f099736d7193.tar.bz2
skyhanni-8f7e2334587f5f84bfbc0da74da3f099736d7193.zip
Added option to hide player icons in tab list
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/MiscConfig.java5
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/compacttablist/TabListRenderer.kt2
2 files changed, 6 insertions, 1 deletions
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
@@ -565,6 +565,11 @@ public class MiscConfig {
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
public boolean hideRankColor = false;
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)