Skip to content

Commit

Permalink
replace hard coded strings part 4
Browse files Browse the repository at this point in the history
  • Loading branch information
strubium committed Feb 19, 2024
1 parent 5e530a1 commit 40e50f9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ public class TopModConfigGui extends GuiConfig {

public TopModConfigGui(GuiScreen parentScreen) {
super(parentScreen, new ConfigElement(ConfigSetup.mainConfig.getCategory(ConfigSetup.CATEGORY_CLIENT)).getChildElements(),
TheOneProbe.MODID, false, false, "The One Probe Config");
TheOneProbe.MODID, false, false, "{*theoneprobe.probe.config*}");
}
}
8 changes: 4 additions & 4 deletions src/main/java/mcjty/theoneprobe/gui/GuiConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -92,15 +92,15 @@ public void drawScreen(int mouseX, int mouseY, float partialTicks) {
y += 20;

hitboxes = new ArrayList<>();
RenderHelper.renderText(Minecraft.getMinecraft(), x, y, TextFormatting.GOLD + "Presets:");
RenderHelper.renderText(Minecraft.getMinecraft(), x, y, TextFormatting.GOLD + "{*theoneprobe.probe.config.presets*}");
y += 12;
for (Preset preset : presets) {
y = addPreset(x, y, preset);
}

y += 20;

RenderHelper.renderText(Minecraft.getMinecraft(), x, y, TextFormatting.GOLD + "Scale:");
RenderHelper.renderText(Minecraft.getMinecraft(), x, y, TextFormatting.GOLD + "{*theoneprobe.probe.config.scale*}");
y += 12;
addButton(x+10, y, 30, 14, "--", () -> { ConfigSetup.setScale(1.2f);}); x += 36;
addButton(x+10, y, 30, 14, "-", () -> { ConfigSetup.setScale(1.1f);}); x += 36;
Expand Down Expand Up @@ -188,8 +188,8 @@ private void renderProbe() {
.vertical()
.text(NAME + pickBlock.getDisplayName())
.text(MODNAME + modid);
probeInfo.text(LABEL + "Fuel: " + INFO + "5 volts");
probeInfo.text(LABEL + "Error: " + ERROR + "Oups!");
probeInfo.text(LABEL + "{*theoneprobe.probe.fuel_indicator*} " + INFO + "5 volts");
probeInfo.text(LABEL + "{*theoneprobe.probe.error_indicator*} " + ERROR + "Oups!");

renderElements(probeInfo, ConfigSetup.getDefaultOverlayStyle());
}
Expand Down
5 changes: 5 additions & 0 deletions src/main/resources/assets/theoneprobe/lang/en_us.lang
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ theoneprobe.probe.harvestable_indicator=Harvestable
theoneprobe.probe.not_harvestable_indicator=Not Harvestable
theoneprobe.probe.fuel_indicator=Fuel:
theoneprobe.probe.time_indicator=Time:
theoneprobe.probe.error_indicator=Error:
theoneprobe.probe.tool_indicator=Tool:
theoneprobe.probe.growing_time_indicator=Growing Time:
theoneprobe.probe.health_indicator=Health:
Expand All @@ -26,6 +27,10 @@ theoneprobe.probe.speed_indicator=Speed:
theoneprobe.probe.collar_color_indicator=Collar Color:


theoneprobe.probe.config=The One Probe Config
theoneprobe.probe.config.presets=Presets:
theoneprobe.probe.config.scale=Scale:

item.theoneprobe.probenote.name=The One Probe Read Me
item.theoneprobe.probenote.things_to_know=Things you should know about
item.theoneprobe.probenote.needed=Needed
Expand Down

0 comments on commit 40e50f9

Please sign in to comment.