Make Minimum NEI Bookmark Columns Viewable Configurable (#355)

This commit is contained in:
Julia authored and GitHub committed 2026-10-20 04:53:29 +02:00
1 parent 644373000c
commit ad556b6b0a
3 files changed
+13 -1

No files matched your search

+4
View File
@@ -24,6 +24,10 @@ dependencies {
runtimeOnly('com.github.GTNewHorizons:TiC-Tooltips:1.4.2:dev'){transitive = false}
runtimeOnly("com.github.GTNewHorizons:ServerUtilities:2.4.10:dev")
// For testing crafting station layouts with large inventories (Binnie compartments)
devOnlyNonPublishable("com.github.GTNewHorizons:ForestryMC:4.11.39:dev")
devOnlyNonPublishable("com.github.GTNewHorizons:Binnie:2.6.48:dev")
// For testing scythe crop harvesting
// devOnlyNonPublishable("net.industrial-craft:industrialcraft-2:2.2.828-experimental:dev")
@@ -47,7 +47,7 @@ public class CraftingStationGui extends GuiContainer implements INEIGuiHandler {
private static final int NEI_VERTICAL_MARGIN = 22;
private static final int NEI_PANEL_MARGIN = 2;
private static final int NEI_BOOKMARK_GROUP_WIDTH = 7;
private static final int MIN_BOOKMARK_COLUMNS = 4;
private static final int MIN_BOOKMARK_COLUMNS = PHConstruct.craftingStationMinBookmarkColumns;
private static final int SCROLL_SEPARATOR_HEIGHT = 4;
private static final int OUTSIDE_SLOT_ID = -999;
private static final int CLICK_MODE_PICKUP = 0;
@@ -294,6 +294,13 @@ public class PHConstruct {
false,
"Use the classic crafting station layout with at most 10 visible inventory rows and scrolling for larger inventories, client-side only")
.getBoolean(false);
craftingStationMinBookmarkColumns = config.getInt(
"craftingStationMinBookmarkColumns",
"Looks",
4,
1,
64,
"Minimum width in slots kept free for the NEI bookmark panel when laying out the crafting station inventory, client-side only");
// dimension blacklist
cfgForbiddenDim = config
@@ -582,6 +589,7 @@ public class PHConstruct {
public static boolean showTravellerAccessories;
public static boolean enableTinkerInventoryTab;
public static boolean classicCraftingStationLayout;
public static int craftingStationMinBookmarkColumns;
// dimensionblacklist
public static boolean slimeIslGenDim0Only;