Client Settings Button - Quest Tracking Fixes

- Adds Client Setting Button and Options to Inventory Tab
- Quest Tracking Center Alignment Fix
- Dialog Speed / Sound Settings
- Chat Bubbles Setting
- Faction Tab is now a Visual Only Change
This commit is contained in:
Kam committed 2024-03-14 04:50:53 -04:00
1 parent 28b92396d0
commit 0e1abbc038
10 files changed
+266 -138

No files matched your search

@@ -24,9 +24,6 @@ public class ConfigClient
public static Property CacheLifeProperty;
public static int CacheLife = 10;
public static Property enableFactionTabProperty;
public static boolean enableFactionTab = true;
/**
* Visual Properties
**/
@@ -36,6 +33,9 @@ public class ConfigClient
public static Property InventoryGuiEnabledProperty;
public static boolean InventoryGuiEnabled = true;
public static Property enableFactionTabProperty;
public static boolean enableFactionTab = true;
public static Property FontTypeProperty;
public static String FontType = "Default";
@@ -54,6 +54,12 @@ public class ConfigClient
public static Property TrackingInfoYProperty;
public static int TrackingInfoY = 0;
public static Property DialogSpeedProperty;
public static int DialogSpeed = 10;
public static Property DialogSoundProperty;
public static boolean DialogSound = true;
public static void init(File configFile)
{
config = new Configuration(configFile);
@@ -66,9 +72,6 @@ public class ConfigClient
CacheLifeProperty = config.get(GENERAL, "Cache Life", 10, "How long should downloaded imagery data be saved client side? (In minutes)");
CacheLife = CacheLifeProperty.getInt(10);
enableFactionTabProperty = config.get(GENERAL, "Enable Faction Tab", true, "Enable the Faction Tab");
enableFactionTab = enableFactionTabProperty.getBoolean(true);
// Visual
EnableChatBubblesProperty = config.get(VISUAL, "Enable Chat Bubbles", true, "Enable/Disable Chat Bubbles");
EnableChatBubbles = EnableChatBubblesProperty.getBoolean(true);
@@ -76,6 +79,9 @@ public class ConfigClient
InventoryGuiEnabledProperty = config.get(VISUAL, "Enable Inventory Tabs", true, "Enable/Disable Inventory Tabs");
InventoryGuiEnabled = InventoryGuiEnabledProperty.getBoolean(true);
enableFactionTabProperty = config.get(VISUAL, "Enable Faction Tab", true, "Enable the Faction Tab");
enableFactionTab = enableFactionTabProperty.getBoolean(true);
FontTypeProperty = config.get(VISUAL, "Font Type", "Default", "When set to Minecraft it will use minecrafts font, when Default it will use OpenSans. Can only use fonts installed on your PC");
FontType = FontTypeProperty.getString();
@@ -92,6 +98,12 @@ public class ConfigClient
TrackingInfoYProperty = config.get(QUESTING, "Tracking Info Y", 0, "Client sided! Offsets the tracking info GUI by this amount in the Y direction.");
TrackingInfoY = TrackingInfoYProperty.getInt(0);
DialogSpeedProperty = config.get(VISUAL, "Dialog Speed", 10, "Only set for gradual dialogs");
DialogSpeed = DialogSpeedProperty.getInt(10);
DialogSoundProperty = config.get(VISUAL, "Dialog Sound", 10, "Only for dialogs with sounds");
DialogSound = DialogSoundProperty.getBoolean(true);
// Convert to Legacy
if(CustomNpcs.legacyExist){
EnableChatBubbles = LegacyConfig.EnableChatBubbles;
@@ -132,4 +144,4 @@ public class ConfigClient
}
}
}
}
}