-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
its much less bloated and easier to work with than cloth config
- Loading branch information
Showing
9 changed files
with
41 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 9 additions & 19 deletions
28
src/main/java/io/github/stereo528/mainmenuchanger/config/ModConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,21 @@ | ||
package io.github.stereo528.mainmenuchanger.config; | ||
|
||
import me.shedaniel.autoconfig.ConfigData; | ||
import me.shedaniel.autoconfig.annotation.Config; | ||
import me.shedaniel.autoconfig.annotation.ConfigEntry; | ||
import me.shedaniel.cloth.clothconfig.shadowed.blue.endless.jankson.Comment; | ||
import eu.midnightdust.lib.config.MidnightConfig; | ||
|
||
|
||
@Config(name = "mainmenuchanger") | ||
public class ModConfig implements ConfigData { | ||
public class ModConfig extends MidnightConfig { | ||
|
||
public boolean smallerSplash = false; | ||
@Entry public static boolean smallerSplash = false; | ||
|
||
public boolean changeCopyrightToC = false; | ||
@Entry public static boolean changeCopyrightToC = false; | ||
|
||
@Comment("Changes the version text to <version> <modloader>.") | ||
@ConfigEntry.Gui.Tooltip | ||
public boolean shorterVersionText = false; | ||
@Entry public static boolean shorterVersionText = false; | ||
|
||
public boolean modCount = false; | ||
@Entry public static boolean modCount = false; | ||
|
||
public boolean disableRealmsButtonAndNotifs = false; | ||
@Entry public static boolean disableRealmsButtonAndNotifs = false; | ||
|
||
@Comment("Removes Language and Accessibility buttons from the title screen.") | ||
@ConfigEntry.Gui.Tooltip | ||
public boolean disableSideButtons = false; | ||
@Entry public static boolean disableSideButtons = false; | ||
|
||
@Comment("Make the Multiplayer and Singleplayer buttons be on the same line") | ||
@ConfigEntry.Gui.Tooltip | ||
public boolean mergeMultiAndSingle = false; | ||
@Entry public static boolean mergeMultiAndSingle = false; | ||
} |
6 changes: 4 additions & 2 deletions
6
src/main/java/io/github/stereo528/mainmenuchanger/config/ModMenuIntegration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
package io.github.stereo528.mainmenuchanger.config; | ||
|
||
import eu.midnightdust.lib.config.MidnightConfig; | ||
import net.fabricmc.api.EnvType; | ||
import net.fabricmc.api.Environment; | ||
import com.terraformersmc.modmenu.api.ConfigScreenFactory; | ||
import com.terraformersmc.modmenu.api.ModMenuApi; | ||
import me.shedaniel.autoconfig.AutoConfig; | ||
|
||
import static io.github.stereo528.mainmenuchanger.client.MainMenuChangerClient.MODID; | ||
|
||
@Environment(EnvType.CLIENT) | ||
public class ModMenuIntegration implements ModMenuApi { | ||
|
||
@Override | ||
public ConfigScreenFactory<?> getModConfigScreenFactory() { | ||
return screen -> AutoConfig.getConfigScreen(ModConfig.class, screen).get(); | ||
return parent -> MidnightConfig.getScreen(parent, MODID); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters