Skip to content

Commit

Permalink
Default Behavior
Browse files Browse the repository at this point in the history
Good feature so why put in setting :3
  • Loading branch information
machiecodes committed Jan 1, 2025
1 parent d0f7265 commit 1f6c033
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,9 @@ private void onOpenScreen(OpenScreenEvent event) {

wasWidgetScreen = event.screen instanceof WidgetScreen;

if (!GuiThemes.get().showHUDInEditor()) return;
if (!(event.screen instanceof HudEditorScreen)) return;
mc.options.hudHidden = false;
if (event.screen instanceof HudEditorScreen) {
mc.options.hudHidden = false;
}
}

public static Identifier identifier(String path) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,6 @@ public WidgetScreen proxiesScreen() {

public abstract boolean hideHUD();

public abstract boolean showHUDInEditor();

public double textWidth(String text, int length, boolean title) {
return scale(textRenderer().getWidth(text, length, false) * (title ? TITLE_TEXT_SCALE : 1));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,6 @@ public class MeteorGuiTheme extends GuiTheme {
.build()
);

public final Setting<Boolean> showInEditor = sgGeneral.add(new BoolSetting.Builder()
.name("show-in-editor")
.description("Show the HUD when using the Meteor HUD editor.")
.defaultValue(false)
.visible(hideHUD::get)
.build()
);

// Colors

public final Setting<SettingColor> accentColor = color("accent", "Main color of the GUI.", new SettingColor(145, 61, 226));
Expand Down Expand Up @@ -385,11 +377,6 @@ public boolean hideHUD() {
return hideHUD.get();
}

@Override
public boolean showHUDInEditor() {
return showInEditor.get();
}

public class ThreeStateColorSetting {
private final Setting<SettingColor> normal, hovered, pressed;

Expand Down

0 comments on commit 1f6c033

Please sign in to comment.