Skip to content

Commit

Permalink
Re-added alternate stronghold positions setting.
Browse files Browse the repository at this point in the history
  • Loading branch information
Abstruse Paradox committed Jan 23, 2025
1 parent 104783c commit 037729c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ class BasicSettingsTab {
private final UICheckBox oceanMonuments;
private final UICheckBox woodlandMansions;
private final UICheckBox dungeons;
private final UICheckBox alternateStrongholdsPositions;
private final UISelect<BiomeOption> biome;

private final UISlider<Integer> dungeonCount;
Expand Down Expand Up @@ -90,15 +91,19 @@ class BasicSettingsTab {
.add(this.woodlandMansions = makeCheckbox(gui, malisisText("woodlandMansions"), conf.getBool("woodlandMansions")),
new UIVerticalTableLayout.GridLocation(WIDTH_2_COL * 1, 3, WIDTH_2_COL))

.add(this.alternateStrongholdsPositions = makeCheckbox(gui, malisisText("alternate_strongholds"), conf.getBool(
"alternateStrongholdsPositions")),
new UIVerticalTableLayout.GridLocation(WIDTH_2_COL * 0, 4, WIDTH_2_COL))

.add(this.biome = makeBiomeList(gui, conf.getInt("biome")),
new UIVerticalTableLayout.GridLocation(WIDTH_2_COL * 0, 5, WIDTH_2_COL))
new UIVerticalTableLayout.GridLocation(WIDTH_2_COL * 0, 6, WIDTH_2_COL))
.add(this.dungeonCount = makeIntSlider(gui, malisisText("dungeonCount", ": %d"), 1, 100, conf.getInt("dungeonCount")),
new UIVerticalTableLayout.GridLocation(WIDTH_2_COL * 1, 5, WIDTH_2_COL))
new UIVerticalTableLayout.GridLocation(WIDTH_2_COL * 1, 6, WIDTH_2_COL))

.add(this.biomeSize = makeIntSlider(gui, malisisText("biomeSize", ": %d"), 1, 8, conf.getInt("biomeSize")),
new UIVerticalTableLayout.GridLocation(WIDTH_2_COL * 0, 6, WIDTH_2_COL))
new UIVerticalTableLayout.GridLocation(WIDTH_2_COL * 0, 7, WIDTH_2_COL))
.add(this.riverSize = makeIntSlider(gui, malisisText("riverSize", ": %d"), 1, 5, conf.getInt("riverSize")),
new UIVerticalTableLayout.GridLocation(WIDTH_2_COL * 1, 6, WIDTH_2_COL));
new UIVerticalTableLayout.GridLocation(WIDTH_2_COL * 1, 7, WIDTH_2_COL));

this.container = layout;
}
Expand All @@ -109,6 +114,7 @@ UIVerticalTableLayout getContainer() {

void writeConfig(JsonObjectView conf) {
conf.put("strongholds", strongholds.isChecked());
conf.put("alternateStrongholdsPositions", alternateStrongholdsPositions.isChecked());
conf.put("villages", villages.isChecked());
conf.put("mineshafts", mineshafts.isChecked());
conf.put("temples", temples.isChecked());
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/assets/cubicgen/lang/en_gb.lang
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ cubicgen.gui.cubicgen.dungeons=Dungeons
cubicgen.gui.cubicgen.dungeonCount=Dungeon count

cubicgen.gui.cubicgen.strongholds=Strongholds
cubicgen.gui.cubicgen.alternate_strongholds=Alternate stronghold positions

cubicgen.gui.cubicgen.villages=Villages*

Expand Down
1 change: 1 addition & 0 deletions src/main/resources/assets/cubicgen/lang/en_us.lang
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ cubicgen.gui.cubicgen.dungeons=Dungeons
cubicgen.gui.cubicgen.dungeonCount=Dungeon Count

cubicgen.gui.cubicgen.strongholds=Strongholds
cubicgen.gui.cubicgen.alternate_strongholds=Alternate Stronghold Positions

cubicgen.gui.cubicgen.villages=Villages*

Expand Down

0 comments on commit 037729c

Please sign in to comment.