-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
69 additions
and
284 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
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,56 +1,12 @@ | ||
package dm.earth.cabricality.config; | ||
|
||
import net.fabricmc.loader.api.FabricLoader; | ||
import net.krlite.pierced.annotation.Silent; | ||
import net.krlite.pierced.annotation.Table; | ||
import net.krlite.pierced.config.Pierced; | ||
|
||
import java.io.File; | ||
|
||
public class CabfConfig extends Pierced { | ||
private static @Silent final File FILE = FabricLoader.getInstance().getConfigDir().resolve("cabricality.toml").toFile(); | ||
private static @Silent final CabfConfig INSTANCE = new CabfConfig(); | ||
|
||
private CabfConfig() { | ||
super(CabfConfig.class, FILE); | ||
load(); | ||
} | ||
|
||
public static void override() { | ||
INSTANCE.save(); | ||
} | ||
|
||
private boolean includeVersionInWindowTitle = false; | ||
|
||
public static boolean includeVersionInWindowTitle() { | ||
return INSTANCE.includeVersionInWindowTitle; | ||
} | ||
|
||
public static void includeVersionInWindowTitle(boolean includeVersionInGameTitle) { | ||
INSTANCE.includeVersionInWindowTitle = includeVersionInGameTitle; | ||
INSTANCE.save(); | ||
} | ||
|
||
private boolean fadeScreenBackground = true; | ||
|
||
public static boolean fadeScreenBackground() { | ||
return INSTANCE.fadeScreenBackground; | ||
} | ||
|
||
public static void fadeScreenBackground(boolean fadeScreenBackground) { | ||
INSTANCE.fadeScreenBackground = fadeScreenBackground; | ||
INSTANCE.save(); | ||
} | ||
|
||
@Table("debug") | ||
private boolean debugInfo = false; | ||
|
||
public static boolean debugInfo() { | ||
return INSTANCE.debugInfo; | ||
} | ||
|
||
public static void debugInfo(boolean debugInfo) { | ||
INSTANCE.debugInfo = debugInfo; | ||
INSTANCE.save(); | ||
} | ||
import me.shedaniel.autoconfig.ConfigData; | ||
import me.shedaniel.autoconfig.annotation.Config; | ||
import me.shedaniel.autoconfig.annotation.ConfigEntry; | ||
|
||
@Config(name = "cabricality") | ||
public class CabfConfig implements ConfigData { | ||
@ConfigEntry.Gui.Tooltip | ||
public boolean includesVersionInWindowTitle = false; | ||
public boolean debugInfoEnabled = false; | ||
} |
1 change: 0 additions & 1 deletion
1
src/main/java/dm/earth/cabricality/config/key/CabfKeyBinds.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
68 changes: 0 additions & 68 deletions
68
src/main/java/dm/earth/cabricality/config/modmenu/CabfConfigScreen.java
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
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
Oops, something went wrong.