|
| 1 | +/* |
| 2 | + * Copyright (c) 2014-2026 Wurst-Imperium and contributors. |
| 3 | + * |
| 4 | + * This source code is subject to the terms of the GNU General Public |
| 5 | + * License, version 3. If a copy of the GPL was not distributed with this |
| 6 | + * file, You can obtain one at: https://www.gnu.org/licenses/gpl-3.0.txt |
| 7 | + */ |
| 8 | +package net.wurstclient.hacks; |
| 9 | + |
| 10 | +import net.wurstclient.Category; |
| 11 | +import net.wurstclient.SearchTags; |
| 12 | +import net.wurstclient.hack.Hack; |
| 13 | +import net.wurstclient.settings.CheckboxSetting; |
| 14 | + |
| 15 | +@SearchTags({"hide render", "no render", "no esp", "hide esp", "no hud", |
| 16 | + "hide hud"}) |
| 17 | +public final class HideWurstHack extends Hack |
| 18 | +{ |
| 19 | + private final CheckboxSetting hideUiMixins = |
| 20 | + new CheckboxSetting("Hide UI mixins", |
| 21 | + "Hide Wurst UI injections on menus and container screens.", false); |
| 22 | + private final CheckboxSetting hideFromModMenu = |
| 23 | + new CheckboxSetting("Hide from ModMenu", |
| 24 | + "Remove Wurst from ModMenu's mod list while this hack is enabled.", |
| 25 | + false); |
| 26 | + private final CheckboxSetting hideToggleChat = new CheckboxSetting( |
| 27 | + "Hide toggle chat", |
| 28 | + "Suppress enabled/disabled chat messages while this hack is enabled.", |
| 29 | + false); |
| 30 | + |
| 31 | + public HideWurstHack() |
| 32 | + { |
| 33 | + super("HideWurst"); |
| 34 | + setCategory(Category.RENDER); |
| 35 | + addSetting(hideUiMixins); |
| 36 | + addSetting(hideFromModMenu); |
| 37 | + addSetting(hideToggleChat); |
| 38 | + } |
| 39 | + |
| 40 | + // Rendering is blocked in EventManager when this hack is enabled. |
| 41 | + |
| 42 | + public boolean shouldHideUiMixins() |
| 43 | + { |
| 44 | + return isEnabled() && hideUiMixins.isChecked(); |
| 45 | + } |
| 46 | + |
| 47 | + public boolean shouldHideFromModMenu() |
| 48 | + { |
| 49 | + return isEnabled() && hideFromModMenu.isChecked(); |
| 50 | + } |
| 51 | + |
| 52 | + public boolean shouldHideToggleChatFeedback() |
| 53 | + { |
| 54 | + return isEnabled() && hideToggleChat.isChecked(); |
| 55 | + } |
| 56 | +} |
0 commit comments