Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
package meteordevelopment.meteorclient.mixin;

import meteordevelopment.meteorclient.gui.GuiThemes;
import meteordevelopment.meteorclient.systems.config.Config;
import meteordevelopment.meteorclient.systems.modules.Modules;
import meteordevelopment.meteorclient.systems.modules.player.NameProtect;
import meteordevelopment.meteorclient.systems.proxies.Proxies;
Expand Down Expand Up @@ -48,6 +49,9 @@ public MultiplayerScreenMixin(Text title) {

@Inject(method = "refreshWidgetPositions", at = @At("TAIL"))
private void onInit(CallbackInfo info) {
if (!Config.get().showAccountManager.get())
return;

textColor1 = Color.fromRGBA(255, 255, 255, 255);
textColor2 = Color.fromRGBA(175, 175, 175, 255);

Expand Down Expand Up @@ -77,6 +81,9 @@ private void onInit(CallbackInfo info) {
public void render(DrawContext context, int mouseX, int mouseY, float deltaTicks) {
super.render(context, mouseX, mouseY, deltaTicks);

if (!Config.get().showAccountManager.get())
return;

int x = 3;
int y = 3;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,13 @@ public class Config extends System<Config> {
.build()
);

public final Setting<Boolean> showAccountManager = sgMisc.add(new BoolSetting.Builder()
.name("show-account-manager")
.description("Render the account manager on the Multiplayer screen.")
.defaultValue(true)
.build()
);

public List<String> dontShowAgainPrompts = new ArrayList<>();

public Config() {
Expand Down