示例#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);
   }
 }
示例#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);
   }
 }