Added some nicer tooltips to Oredictionificator interfaces

This commit is contained in:
Aidan C. Brady 2015-03-28 23:51:38 -04:00
parent ac41365c86
commit 2605751af0
3 changed files with 30 additions and 0 deletions

View file

@ -134,6 +134,7 @@ public class GuiOredictionificator extends GuiMekanism
} }
fontRendererObj.drawString(MekanismUtils.localize("gui.filter"), 32, yStart + 2, 0x404040); fontRendererObj.drawString(MekanismUtils.localize("gui.filter"), 32, yStart + 2, 0x404040);
renderScaledText(filter.filter, 32, yStart + 2 + 9, 0x404040, 117);
} }
} }

View file

@ -156,6 +156,32 @@ public class GuiOredictionificatorFilter extends GuiMekanism
} catch(Exception e) {} } catch(Exception e) {}
} }
if(xAxis >= 31 && xAxis <= 43 && yAxis >= 21 && yAxis <= 33)
{
drawCreativeTabHoveringText(MekanismUtils.localize("gui.lastItem"), xAxis, yAxis);
}
if(xAxis >= 63 && xAxis <= 75 && yAxis >= 21 && yAxis <= 33)
{
drawCreativeTabHoveringText(MekanismUtils.localize("gui.nextItem"), xAxis, yAxis);
}
if(xAxis >= 33 && xAxis <= 129 && yAxis >= 48 && yAxis <= 60)
{
drawCreativeTabHoveringText(MekanismUtils.localize("gui.oreDictCompat"), xAxis, yAxis);
}
if(xAxis >= 45 && xAxis <= 61 && yAxis >= 19 && yAxis <= 35)
{
if(renderStack != null)
{
String name = MekanismUtils.getMod(renderStack);
String extra = name.equals("null") ? "" : " (" + name + ")";
drawCreativeTabHoveringText(renderStack.getDisplayName() + extra, xAxis, yAxis);
}
}
super.drawGuiContainerForegroundLayer(mouseX, mouseY); super.drawGuiContainerForegroundLayer(mouseX, mouseY);
} }

View file

@ -457,6 +457,9 @@ gui.mult=Mult
gui.chunk=Chunk gui.chunk=Chunk
gui.vibrating gui.vibrating
gui.abundancy=Abundancy gui.abundancy=Abundancy
gui.nextItem=Next Item
gui.lastItem=Last Item
gui.oreDictCompat=Compatible OreDict Key
gui.reactor.injectionRate=Injection Rate gui.reactor.injectionRate=Injection Rate