diff options
| author | shedaniel <daniel@shedaniel.me> | 2020-04-28 01:21:16 +0800 |
|---|---|---|
| committer | shedaniel <daniel@shedaniel.me> | 2020-04-28 01:21:16 +0800 |
| commit | 43614d50fe2d965246b8ee4522f0ece646031ae9 (patch) | |
| tree | e27b3c54153acd1f4478bd16fd035313c4d6be15 /src/main/java/me/shedaniel/rei/impl/ConfigObjectImpl.java | |
| parent | 0ab63c3b5ac0dd28e31dbb1fbe86a1212e52b985 (diff) | |
| download | RoughlyEnoughItems-43614d50fe2d965246b8ee4522f0ece646031ae9.tar.gz RoughlyEnoughItems-43614d50fe2d965246b8ee4522f0ece646031ae9.tar.bz2 RoughlyEnoughItems-43614d50fe2d965246b8ee4522f0ece646031ae9.zip | |
Disable dynamically adjust recipe screen height and width
Signed-off-by: shedaniel <daniel@shedaniel.me>
Diffstat (limited to 'src/main/java/me/shedaniel/rei/impl/ConfigObjectImpl.java')
| -rw-r--r-- | src/main/java/me/shedaniel/rei/impl/ConfigObjectImpl.java | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/main/java/me/shedaniel/rei/impl/ConfigObjectImpl.java b/src/main/java/me/shedaniel/rei/impl/ConfigObjectImpl.java index 710c768f3..18853b482 100644 --- a/src/main/java/me/shedaniel/rei/impl/ConfigObjectImpl.java +++ b/src/main/java/me/shedaniel/rei/impl/ConfigObjectImpl.java @@ -163,7 +163,7 @@ public class ConfigObjectImpl implements ConfigObject, ConfigData { @Override public int getMaxRecipePerPage() { - return appearance.maxRecipePerPage; + return appearance.maxRecipesPerPage; } @Override @@ -336,6 +336,11 @@ public class ConfigObjectImpl implements ConfigObject, ConfigData { return experimental.isSubsetsEnabled; } + @Override + public boolean shouldResizeDynamically() { + return appearance.resizeDynamically; + } + @Retention(RetentionPolicy.RUNTIME) @Target({ElementType.FIELD}) @interface DontApplyFieldName {} @@ -381,7 +386,7 @@ public class ConfigObjectImpl implements ConfigObject, ConfigData { private SearchFieldLocation searchFieldLocation = SearchFieldLocation.CENTER; @Comment("Declares the position of the item list panel.") private boolean mirrorItemPanel = false; @Comment("Declares the maximum amount of recipes displayed in a page if possible.") @ConfigEntry.BoundedDiscrete(min = 2, max = 99) - private int maxRecipePerPage = 3; + private int maxRecipesPerPage = 15; private boolean clickableRecipeArrows = true; @Comment("Declares the appearance of recipe's border.") @ConfigEntry.Gui.EnumHandler(option = ConfigEntry.Gui.EnumHandler.EnumDisplayOption.BUTTON) private RecipeBorderType recipeBorder = RecipeBorderType.DEFAULT; @@ -395,6 +400,8 @@ public class ConfigObjectImpl implements ConfigObject, ConfigData { @UsePercentage(min = 0.25, max = 4.0) private double entrySize = 1.0; private boolean useCompactTabs = true; private boolean lowerConfigButton = false; + @Comment("Declares whether REI should resize its recipe window dynamically") + private boolean resizeDynamically = false; } public static class Technical { |
