Skip to content

Commit

Permalink
Update SodiumGameOptionPages.java
Browse files Browse the repository at this point in the history
  • Loading branch information
mcbianxiao authored Sep 17, 2024
1 parent 4f97b6d commit 7f6d796
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -346,4 +346,22 @@ public static OptionPage advanced() {

return new OptionPage(Text.translatable("sodium.options.pages.advanced"), ImmutableList.copyOf(groups));
}


public static OptionPage pojavLauncher() {
List<OptionGroup> groups = new ArrayList<>();

groups.add(OptionGroup.createBuilder()
.add(OptionImpl.createBuilder(boolean.class, sodiumOpts)
.setName(Text.translatable("sodium.options.pojav_launcher"))
.setTooltip(Text.translatable("sodium.options.pojav_launcher.tooltip"))
.setControl(TickBoxControl::new)
.setBinding((opts, value) -> opts.pojav.noLongerWarnPojavLauncher = value, opts -> opts.pojav.noLongerWarnPojavLauncher)
.build()
)
.build());

return new OptionPage(Text.translatable("sodium.options.pages.pojav_launcher"), ImmutableList.copyOf(groups));
}

}

0 comments on commit 7f6d796

Please sign in to comment.