Added some nicer tooltips to Oredictionificator interfaces
This commit is contained in:
parent
ac41365c86
commit
2605751af0
3 changed files with 30 additions and 0 deletions
|
@ -134,6 +134,7 @@ public class GuiOredictionificator extends GuiMekanism
|
|||
}
|
||||
|
||||
fontRendererObj.drawString(MekanismUtils.localize("gui.filter"), 32, yStart + 2, 0x404040);
|
||||
renderScaledText(filter.filter, 32, yStart + 2 + 9, 0x404040, 117);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -155,6 +155,32 @@ public class GuiOredictionificatorFilter extends GuiMekanism
|
|||
GL11.glPopMatrix();
|
||||
} 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);
|
||||
}
|
||||
|
|
|
@ -457,6 +457,9 @@ gui.mult=Mult
|
|||
gui.chunk=Chunk
|
||||
gui.vibrating
|
||||
gui.abundancy=Abundancy
|
||||
gui.nextItem=Next Item
|
||||
gui.lastItem=Last Item
|
||||
gui.oreDictCompat=Compatible OreDict Key
|
||||
|
||||
gui.reactor.injectionRate=Injection Rate
|
||||
|
||||
|
|
Loading…
Reference in a new issue