Example #1
0
 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);
   }
 }
Example #2
0
 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);
   }
 }
Example #3
0
 public void draw(GuiTfMachineBase gui) {
   if (part != null) gui.drawGuiPart(x, y, part);
 }