Skip to content

Commit

Permalink
replace hard coded strings part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
strubium committed Feb 19, 2024
1 parent 1c9050b commit 7e8b8c8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/main/java/mcjty/theoneprobe/gui/GuiNote.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public void drawScreen(int mouseX, int mouseY, float partialTicks) {
drawTexturedModalRect(guiLeft, guiTop, 0, 0, WIDTH, HEIGHT);
int x = guiLeft+5;
int y = guiTop+8;
RenderHelper.renderText(Minecraft.getMinecraft(), x, y, "Things you should know about" + TextFormatting.GOLD + " The One Probe"); y += 10;
RenderHelper.renderText(Minecraft.getMinecraft(), x, y, "{*item.theoneprobe.probenote.things_to_know*}" + TextFormatting.GOLD + " The One Probe"); y += 10;
y += 10;

RenderHelper.renderText(Minecraft.getMinecraft(), x, y, BOLD + "This mod can show a tooltip on screen"); y += 10;
Expand Down Expand Up @@ -112,13 +112,13 @@ private int setInConfig(int x, int y) {
hitY = y + guiTop;
hitX = x + guiLeft;
drawRect(x, y, x + BUTTON_WIDTH, y + BUTTON_HEIGHT, 0xff000000);
RenderHelper.renderText(Minecraft.getMinecraft(), x + 3, y + 4, "Needed"); x += BUTTON_MARGIN;
RenderHelper.renderText(Minecraft.getMinecraft(), x + 3, y + 4, "{*item.theoneprobe.probenote.needed*}"); x += BUTTON_MARGIN;

drawRect(x, y, x + BUTTON_WIDTH, y + BUTTON_HEIGHT, 0xff000000);
RenderHelper.renderText(Minecraft.getMinecraft(), x + 3, y + 4, "Not needed"); x += BUTTON_MARGIN;
RenderHelper.renderText(Minecraft.getMinecraft(), x + 3, y + 4, "{*item.theoneprobe.probenote.not_needed*}"); x += BUTTON_MARGIN;

drawRect(x, y, x + BUTTON_WIDTH, y + BUTTON_HEIGHT, 0xff000000);
RenderHelper.renderText(Minecraft.getMinecraft(), x + 3, y + 4, "Extended"); x += BUTTON_MARGIN;
RenderHelper.renderText(Minecraft.getMinecraft(), x + 3, y + 4, "{*item.theoneprobe.probenote.extended*}"); x += BUTTON_MARGIN;

y += BUTTON_HEIGHT - 4;
return y;
Expand Down
7 changes: 6 additions & 1 deletion src/main/resources/assets/theoneprobe/lang/en_us.lang
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ item.theoneprobe.diamond_helmet_probe.name=Diamond Helmet with Probe
item.theoneprobe.gold_helmet_probe.name=Gold Helmet with Probe
item.theoneprobe.iron_helmet_probe.name=Iron Helmet with Probe
item.theoneprobe.creativeprobe.name=The Creative Probe
item.theoneprobe.probenote.name=The One Probe Read Me
theoneprobe.probe.enchanting_power=Enchanting Power:
theoneprobe.probe.tnt_fuse=TNT Fuse:

Expand All @@ -22,4 +21,10 @@ theoneprobe.probe.speed_indicator=Speed:
theoneprobe.probe.collar_color_indicator=Collar Color:


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
item.theoneprobe.probenote.not_needed=Needed
item.theoneprobe.probenote.extended=Extended

itemGroup.Probe=The One Probe

0 comments on commit 7e8b8c8

Please sign in to comment.