public void showInfoTip(GuiTfMachineBase gui, int px, int py, List text) { if (infoTip != null && gui.isPointInRegion(x, y, part.xSize, part.ySize, px, py)) // isPointInRegion { gui.drawTfHoveringText(text, px, py, infoTip.pos); } }
public void showInfoTip( GuiTfMachineBase gui, int px, int py, GuiTfMachineBase.IHoverDrawingHandler handler) { if (infoTip != null && gui.isPointInRegion(x, y, part.xSize, part.ySize, px, py)) // isPointInRegion { gui.drawTfHoveringTipFixedSize(px, py, infoTip.wTip, infoTip.hTip, infoTip.pos, handler); } }
public void draw(GuiTfMachineBase gui) { if (part != null) gui.drawGuiPart(x, y, part); }