Skip to content

Commit

Permalink
Update Wurst Options text
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander01998 committed Nov 9, 2023
1 parent 437c60f commit 4bbef3b
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 28 deletions.
54 changes: 29 additions & 25 deletions src/main/java/net/wurstclient/options/WurstOptionsScreen.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import net.wurstclient.hacks.XRayHack;
import net.wurstclient.other_features.VanillaSpoofOtf;
import net.wurstclient.settings.CheckboxSetting;
import net.wurstclient.util.ChatUtils;

public class WurstOptionsScreen extends Screen
{
Expand Down Expand Up @@ -70,29 +71,26 @@ private void addSettingButtons()

new WurstOptionsButton(-154, 48,
() -> "Count Users: " + (analytics.isEnabled() ? "ON" : "OFF"),
"Counts how many people are using Wurst\n"
+ "and which versions are the most popular.\n"
+ "We use this data to decide when to stop\n"
+ "supporting old Minecraft versions.\n\n"
+ "We use a random ID to tell users apart\n"
+ "so that this data can never be linked to\n"
+ "your Minecraft account. The random ID is\n"
+ "changed every 3 days to make extra sure\n"
+ "that you remain anonymous.",
"Counts how many people are using Wurst and which versions are the"
+ " most popular. We use this data to decide when to stop"
+ " supporting old Minecraft versions.\n\n"
+ "We use a random ID to tell users apart so that this data can"
+ " never be linked to your Minecraft account. The random ID is"
+ " changed every 3 days to make extra sure that you remain"
+ " anonymous.",
b -> analytics.setEnabled(!analytics.isEnabled()));

new WurstOptionsButton(-154, 72,
() -> "Spoof Vanilla: "
+ (vanillaSpoofOtf.isEnabled() ? "ON" : "OFF"),
vanillaSpoofOtf.getWrappedDescription(200),
vanillaSpoofOtf.getDescription(),
b -> vanillaSpoofOtf.doPrimaryAction());

new WurstOptionsButton(-154, 96,
() -> "Translations: " + (!forceEnglish.isChecked() ? "ON" : "OFF"),
"§cThis is an experimental feature!\n"
+ "We don't have many translations yet. If you\n"
+ "speak both English and some other language,\n"
+ "please help us by adding more translations.",
"Allows text in Wurst to be displayed in other languages than"
+ " English. It will use the same language that Minecraft is"
+ " set to.\n\n" + "This is an experimental feature!",
b -> forceEnglish.setChecked(!forceEnglish.isChecked()));
}

Expand All @@ -101,18 +99,17 @@ private void addManagerButtons()
XRayHack xRayHack = WurstClient.INSTANCE.getHax().xRayHack;

new WurstOptionsButton(-50, 24, () -> "Keybinds",
"Keybinds allow you to toggle any hack\n"
+ "or command by simply pressing a\n" + "button.",
"Keybinds allow you to toggle any hack or command by simply"
+ " pressing a button.",
b -> client.setScreen(new KeybindManagerScreen(this)));

new WurstOptionsButton(-50, 48, () -> "X-Ray Blocks",
"Manager for the blocks\n" + "that X-Ray will show.",
"Manager for the blocks that X-Ray will show.",
b -> xRayHack.openBlockListEditor(this));

new WurstOptionsButton(-50, 72, () -> "Zoom",
"The Zoom Manager allows you to\n"
+ "change the zoom key, how far it\n"
+ "will zoom in and more.",
"The Zoom Manager allows you to change the zoom key and how far it"
+ " will zoom in.",
b -> client.setScreen(new ZoomManagerScreen(this)));
}

Expand All @@ -121,22 +118,29 @@ private void addLinkButtons()
OperatingSystem os = Util.getOperatingSystem();

new WurstOptionsButton(54, 24, () -> "Official Website",
"WurstClient.net", b -> os.open(
"§n§lWurstClient.net", b -> os.open(
"https://www.wurstclient.net/?utm_source=Wurst+Client&utm_medium=Wurst+Options&utm_content=Official+Website"));

new WurstOptionsButton(54, 48, () -> "Wurst Wiki", "Wurst.Wiki",
new WurstOptionsButton(54, 48, () -> "Wurst Wiki", "§n§lWurst.Wiki\n"
+ "We are looking for volunteers to help us expand"
+ " the wiki and keep it up to date with the latest Wurst updates.",
b -> os.open(
"https://wurst.wiki/?utm_source=Wurst+Client&utm_medium=Wurst+Options&utm_content=Wurst+Wiki"));

new WurstOptionsButton(54, 72, () -> "WurstForum", "WurstForum.net",
new WurstOptionsButton(54, 72, () -> "WurstForum", "§n§lWurstForum.net",
b -> os.open(
"https://wurstforum.net/?utm_source=Wurst+Client&utm_medium=Wurst+Options&utm_content=WurstForum"));

new WurstOptionsButton(54, 96, () -> "Twitter", "@Wurst_Imperium",
b -> os.open("https://www.wurstclient.net/twitter/"));

new WurstOptionsButton(54, 120, () -> "Donate",
"WurstClient.net/donate", b -> os.open(
"§n§lWurstClient.net/donate\n"
+ "Donate now to help me keep the Wurst Client alive and free"
+ " to use for everyone.\n\n"
+ "Every bit helps and is much appreciated! You can also get a"
+ " few cool perks in return.",
b -> os.open(
"https://www.wurstclient.net/donate/?utm_source=Wurst+Client&utm_medium=Wurst+Options&utm_content=Donate"));
}

Expand Down Expand Up @@ -215,7 +219,7 @@ public WurstOptionsButton(int xOffset, int yOffset,
this.tooltip = Arrays.asList();
else
{
String[] lines = tooltip.split("\n");
String[] lines = ChatUtils.wrapText(tooltip, 200).split("\n");

Text[] lines2 = new Text[lines.length];
for(int i = 0; i < lines.length; i++)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@ public final class TranslationsOtf extends OtherFeature

public TranslationsOtf()
{
super("Translations", "Localization settings.\n\n"
+ "\u00a7cThis is an experimental feature!\u00a7r\n"
+ "We don't have many translations yet. If you speak both English and some other language, please help us by adding more translations.");
super("Translations", "Allows text in Wurst to be displayed"
+ " in other languages than English. It will use the same language"
+ " that Minecraft is set to.\n\n"
+ "This is an experimental feature!");
addSetting(forceEnglish);
}

Expand Down

0 comments on commit 4bbef3b

Please sign in to comment.