New Curios-Inspired GUI (#13)

This commit is contained in:
koolkrafter5 authored and GitHub committed 2025-09-14 20:35:31 +02:00
1 parent 63833f2fbb
commit b57a7a1dd6
13 files changed
+704 -322

No files matched your search

@@ -10,6 +10,9 @@ public class BaublesConfig {
public static boolean hideDebugItem = true;
public static int[] soulBoundEnchantments = new int[] {};
public static boolean useOldGuiButton = false;
public static boolean useOldGuiRendering = false;
public static boolean showUnusedSlots = false;
public static boolean manualSlotSelection = false;
@@ -23,6 +26,7 @@ public class BaublesConfig {
static final String categoryDebug = "debug";
static final String categoryGeneral = "general";
static final String categoryMenu = "menu";
static final String categoryClient = "client";
static final String categoryOverride = "override";
public static void loadConfig(Configuration config) {
@@ -38,6 +42,10 @@ public class BaublesConfig {
"IDs of enchantments that should be treated as soul bound when on items in a bauble slot."
).getIntList();
//categoryClient
useOldGuiButton = config.getBoolean("useOldGuiButton", categoryClient, useOldGuiButton, "Use the old Baubles Button texture and location instead.\n");
useOldGuiRendering = config.getBoolean("useOldRendering", categoryClient, useOldGuiRendering, "Display the old Bauble GUI instead of the new sidebar.\n");
//categoryMenu
showUnusedSlots = config.getBoolean("showUnusedSlots", categoryMenu, showUnusedSlots, "Display unused Bauble slots.\n");
manualSlotSelection = config.getBoolean("manualSlotSelection", categoryMenu, manualSlotSelection,
@@ -51,11 +59,11 @@ public class BaublesConfig {
config.getCategory(categoryOverride).get("defualtSlotTypes").set(currentSlotAssignments);
overrideSlotTypes = config.getStringList("slotTypeOverrides", categoryOverride, overrideSlotTypes,
"Slot assignments to use if manualSlotSelection is enabled.\nAny assignents after the first " +
"Slot assignments to use if manualSlotSelection is enabled.\nAny assignments after the first " +
BaubleExpandedSlots.slotLimit + " will be ignored.\n!Adding, moving, or removing slots of the "
+ BaubleExpandedSlots.amuletType + ", " + BaubleExpandedSlots.ringType + ", or " + BaubleExpandedSlots.beltType +
" types will reduce compatibility with mods made for original Baubles versions!\n",
currentlyRegisteredTypes.toArray(new String[currentlyRegisteredTypes.size()])
currentlyRegisteredTypes.toArray(new String[0])
);
if(manualSlotSelection) {