Skip to content

Commit

Permalink
Reorders the categories in the configs, adds sections, and expands `g…
Browse files Browse the repository at this point in the history
…eneral` category
  • Loading branch information
Zailer43 committed Sep 7, 2024
1 parent c98a182 commit 75f5a68
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 14 deletions.
29 changes: 15 additions & 14 deletions src/main/java/fzmm/zailer/me/config/FzmmConfigModel.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,34 +16,34 @@
public class FzmmConfigModel {

@Nest
@Expanded
public GeneralNest general = new GeneralNest();

@Nest
public ColorsNest colors = new ColorsNest();
@Nest
public GuiStyleNest guiStyle = new GuiStyleNest();


@Nest
public ItemEditorBannerNest itemEditorBanner = new ItemEditorBannerNest();

@SectionHeader("externalAPIs")
public MineskinNest mineskin = new MineskinNest();
@Nest
public HeadGalleryNest headGallery = new HeadGalleryNest();

@SectionHeader("gui")
@Nest
public ColorsNest colors = new ColorsNest();
public ImagetextNest imagetext = new ImagetextNest();
@Nest
public EncryptbookNest encryptbook = new EncryptbookNest();
public TextFormatNest textFormat = new TextFormatNest();
@Nest
public HeadGalleryNest headGallery = new HeadGalleryNest();
public PlayerStatueNest playerStatue = new PlayerStatueNest();
@Nest
public EncryptbookNest encryptbook = new EncryptbookNest();
@Nest
public HeadGeneratorNest headGenerator = new HeadGeneratorNest();
@Nest
public HistoryNest history = new HistoryNest();
@Nest
public ImagetextNest imagetext = new ImagetextNest();
@Nest
public MineskinNest mineskin = new MineskinNest();
@Nest
public PlayerStatueNest playerStatue = new PlayerStatueNest();
@Nest
public TextFormatNest textFormat = new TextFormatNest();
public ItemEditorBannerNest itemEditorBanner = new ItemEditorBannerNest();

public static class GeneralNest {
public boolean disableItalic = true;
Expand Down Expand Up @@ -141,6 +141,7 @@ public static class ColorsNest {
}

public static class HeadGalleryNest {
@RestartRequired
public boolean cacheCategories = true;
public boolean stylingHeads = true;
@RangeConstraint(min = 1, max = 2500)
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/assets/fzmm/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -675,5 +675,7 @@
"text.config.fzmm.option.textFormat.maxRainbowHueStep.tooltip": "Maximum value for the step between the change of each hue in the rainbow tab,\nvery high values can cause it to not look like a rainbow.",
"text.config.fzmm.option.textFormat.minRainbowHueStep": "Minimum rainbow hue step",
"text.config.fzmm.option.textFormat.minRainbowHueStep.tooltip": "Minimum value for the step between the change of each hue in the rainbow tab.",
"text.config.fzmm.section.externalAPIs": "External APIs",
"text.config.fzmm.section.gui": "GUIs",
"text.config.fzmm.title": "FZMM configs"
}

0 comments on commit 75f5a68

Please sign in to comment.