aboutsummaryrefslogtreecommitdiff
path: root/common/src/main/java
diff options
context:
space:
mode:
authorHacktheTime <l4bg0jb7@duck.com>2023-12-15 19:06:11 +0100
committerHacktheTime <l4bg0jb7@duck.com>2023-12-15 19:06:11 +0100
commit2a22b024361e195819337b736e57a68742029a5a (patch)
tree2c37c7f89f6f4ccbc3dc8ec80765451ea235c36f /common/src/main/java
parent595bb1aca851f8ab4eb216fadbd0e15f7831e4f5 (diff)
downloadBBsentials-2a22b024361e195819337b736e57a68742029a5a.tar.gz
BBsentials-2a22b024361e195819337b736e57a68742029a5a.tar.bz2
BBsentials-2a22b024361e195819337b736e57a68742029a5a.zip
added toggles for the Splash Overlay.
Diffstat (limited to 'common/src/main/java')
-rw-r--r--common/src/main/java/de/hype/bbsentials/common/client/Config.java7
-rw-r--r--common/src/main/java/de/hype/bbsentials/common/client/SplashStatusUpdateListener.java1
2 files changed, 6 insertions, 2 deletions
diff --git a/common/src/main/java/de/hype/bbsentials/common/client/Config.java b/common/src/main/java/de/hype/bbsentials/common/client/Config.java
index 5f7fb29..5b4f4a3 100644
--- a/common/src/main/java/de/hype/bbsentials/common/client/Config.java
+++ b/common/src/main/java/de/hype/bbsentials/common/client/Config.java
@@ -15,14 +15,14 @@ public class Config implements Serializable {
public static int apiVersion = 1;
public static List<String> partyMembers = new ArrayList<>();
public transient final Sender sender = new Sender();
+ public boolean devMode = false;
+ public boolean detailedDevMode = false;
// Gson object for serialization
private final transient Gson GSON = new GsonBuilder().setPrettyPrinting().create();
// File object for storing the config
private final transient File CONFIG_FILE = new File(EnvironmentCore.mcUtils.getConfigPath(), "BBsential_settings.json");
//You can change again
public boolean allowServerPartyInvite = true;
- public boolean devMode = false;
- public boolean detailedDevMode = false;
public boolean devSecurity = true;
public transient String overwriteActionBar = "";
public transient String alreadyReported = "";
@@ -46,6 +46,8 @@ public class Config implements Serializable {
public boolean allowBBinviteMe = true;
public boolean doDesktopNotifications = false;
public boolean showSplashStatusUpdates = true;
+ public boolean useSplashLeecherOverlayHud = true;
+ public boolean showMusicPants = true;
public boolean doGammaOverride = true;
public boolean acceptReparty;
public boolean autoSplashStatusUpdates;
@@ -58,6 +60,7 @@ public class Config implements Serializable {
// set automatically
private transient boolean isPartyLeader;
private transient String username;
+
// Constructor
public Config() {
setDefaults();
diff --git a/common/src/main/java/de/hype/bbsentials/common/client/SplashStatusUpdateListener.java b/common/src/main/java/de/hype/bbsentials/common/client/SplashStatusUpdateListener.java
index f214629..7f96681 100644
--- a/common/src/main/java/de/hype/bbsentials/common/client/SplashStatusUpdateListener.java
+++ b/common/src/main/java/de/hype/bbsentials/common/client/SplashStatusUpdateListener.java
@@ -24,6 +24,7 @@ public class SplashStatusUpdateListener implements Runnable {
}
public boolean showSplashOverlay() {
+ if (!BBsentials.config.useSplashLeecherOverlayHud) return false;
return splashLobby.get() || showSplashOverlayOverrideDisplay;
}