Skip to content

Commit

Permalink
fix: button placement
Browse files Browse the repository at this point in the history
  • Loading branch information
IMB11 committed Aug 21, 2024
1 parent 42d720c commit 91af258
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public static Screen getConfigScreen(Screen parent) {

public static ArrayList<ClickableWidget> createCarouselWidgets(Screen screen) {
ArrayList<ClickableWidget> widgets = new ArrayList<>();
int y = (screen.height / 4 + 48) + 72;
int y = (screen.height / 4 + 48) + 84;
int x = screen.width / 2 + 104 + 25;

if(screen instanceof GameMenuScreen gameMenuScreen) {
Expand All @@ -55,13 +55,6 @@ public static ArrayList<ClickableWidget> createCarouselWidgets(Screen screen) {
widgets.add(new WarningIndicatorButton(x + 72, y, gameMenuScreen));
}

if (FabricLoader.getInstance().isModLoaded("modmenu")) {
if(!SkinShuffleConfig.get().displayInTitleScreen) return widgets;
if (ModMenuConfig.MODS_BUTTON_STYLE.getValue() == ModMenuConfig.TitleMenuButtonStyle.CLASSIC && screen instanceof TitleScreen) {
y += 51 / 4;
}
}

widgets.add(new OpenCarouselButton(x, y, 72, 20));

return widgets;
Expand Down

0 comments on commit 91af258

Please sign in to comment.