Skip to content

Commit fb29c8f

Browse files
committed
more lang, remove todo
1 parent 445c94c commit fb29c8f

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

src/main/java/gregtech/common/metatileentities/storage/MetaTileEntityWorkbench.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import net.minecraft.network.PacketBuffer;
2424
import net.minecraft.util.EnumFacing;
2525
import net.minecraft.util.ResourceLocation;
26+
import net.minecraft.util.text.TextFormatting;
2627
import net.minecraft.world.World;
2728
import net.minecraftforge.fml.relauncher.Side;
2829
import net.minecraftforge.fml.relauncher.SideOnly;
@@ -217,9 +218,13 @@ public ModularPanel buildUI(PosGuiData guiData, PanelSyncManager guiSyncManager)
217218
.topRel(0f, 3, 1f)
218219
.child(new PageButton(0, controller)
219220
.tab(GuiTextures.TAB_TOP, 0)
221+
.addTooltipLine(IKey.lang("gregtech.machine.workbench.tab.workbench"))
220222
.overlay(WORKSTATION))
221223
.child(new PageButton(1, controller)
222224
.tab(GuiTextures.TAB_TOP, 0)
225+
.addTooltipLine(IKey.lang("gregtech.machine.workbench.tab.item_list"))
226+
.addTooltipLine(IKey.lang("gregtech.machine.workbench.storage_note")
227+
.format(TextFormatting.DARK_GRAY))
223228
.overlay(CHEST)))
224229
.child(IKey.lang(getMetaFullName())
225230
.asWidget()
@@ -235,7 +240,6 @@ public ModularPanel buildUI(PosGuiData guiData, PanelSyncManager guiSyncManager)
235240
.debugName("crafting page")
236241
.coverChildrenWidth()
237242
.child(Flow.row()
238-
// todo add clear crafting grid button
239243
.debugName("crafting row")
240244
.coverChildrenHeight()
241245
.widthRel(1f)
@@ -299,6 +303,7 @@ public IWidget createCraftingGrid() {
299303
.topRel(0f)
300304
.rightRel(0f, 0, 1f)
301305
.background(GTGuiTextures.BUTTON_CLEAR_GRID)
306+
.addTooltipLine(IKey.lang("gregtech.machine.workbench.clear_grid"))
302307
.disableHoverBackground()
303308
.onMousePressed(mouseButton -> {
304309
this.recipeLogic.clearCraftingGrid();

src/main/resources/assets/gregtech/lang/en_us.lang

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2831,8 +2831,8 @@ gregtech.machine.workbench.tooltip1=Better than Forestry
28312831
gregtech.machine.workbench.tooltip2=Has Item Storage, Tool Storage, pulls from adjacent Inventories, and saves Recipes.
28322832
gregtech.machine.workbench.tab.workbench=Crafting
28332833
gregtech.machine.workbench.tab.item_list=Storage
2834-
gregtech.machine.workbench.storage_note_1=(Available items from connected
2835-
gregtech.machine.workbench.storage_note_2=inventories usable for crafting)
2834+
gregtech.machine.workbench.storage_note=(Available items from connected\ninventories usable for crafting)
2835+
gregtech.machine.workbench.clear_grid=Clear Crafting Grid
28362836
gregtech.item_list.item_stored=§7Stored: %,d
28372837

28382838
gregtech.machine.workbench.tab.crafting=Crafting

0 commit comments

Comments
 (0)