1
mirror of https://github.com/Shiewk/Widgets.git synced 2026-04-28 11:34:17 +02:00

Make all 'show label' settings use the same translation key

This commit is contained in:
Shy
2024-12-15 12:47:04 +01:00
parent c8579f673c
commit 8d33de5eca
6 changed files with 9 additions and 15 deletions
@@ -16,7 +16,7 @@ public class BiomeWidget extends BasicTextWidget {
public BiomeWidget(Identifier id) {
super(id, List.of(
new ToggleWidgetSetting("show_label", Text.translatable("widgets.widgets.biome.showLabel"), true)
new ToggleWidgetSetting("show_label", Text.translatable("widgets.widgets.common.showLabel"), true)
));
}
@@ -15,7 +15,7 @@ public class MemoryUsageWidget extends BasicTextWidget {
public MemoryUsageWidget(Identifier id) {
super(id, List.of(
new ToggleWidgetSetting("percentage", Text.translatable("widgets.widgets.memory.showPercentage"), true),
new ToggleWidgetSetting("label", Text.translatable("widgets.widgets.memory.showLabel"), true)
new ToggleWidgetSetting("label", Text.translatable("widgets.widgets.common.showLabel"), true)
));
}
@@ -12,7 +12,7 @@ import java.util.List;
public class PlayerCountWidget extends BasicTextWidget{
public PlayerCountWidget(Identifier id) {
super(id, List.of(
new ToggleWidgetSetting("showlabel", Text.translatable("widgets.widgets.playerCount.showLabel"), true)
new ToggleWidgetSetting("showlabel", Text.translatable("widgets.widgets.common.showLabel"), true)
));
}
@@ -13,7 +13,7 @@ import java.util.List;
public class TPSWidget extends BasicTextWidget {
public TPSWidget(Identifier id) {
super(id, List.of(
new ToggleWidgetSetting("show_label", Text.translatable("widgets.widgets.tps.showLabel"), true),
new ToggleWidgetSetting("show_label", Text.translatable("widgets.widgets.common.showLabel"), true),
new ToggleWidgetSetting("dynamic_color", Text.translatable("widgets.widgets.tps.dynamicColor"), true)
));
getSettings().optionById("textcolor").setShowCondition(() -> !this.dynamicColor);