2323import net .minecraft .network .PacketBuffer ;
2424import net .minecraft .util .EnumFacing ;
2525import net .minecraft .util .ResourceLocation ;
26+ import net .minecraft .util .text .TextFormatting ;
2627import net .minecraft .world .World ;
2728import net .minecraftforge .fml .relauncher .Side ;
2829import 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 ();
0 commit comments