Examples of drawStringWithShadow()


Examples of net.minecraft.client.gui.FontRenderer.drawStringWithShadow()

      RenderUtil.renderGuiTank(gen.fuelTank.getFluid(), gen.fuelTank.getCapacity(), gen.fuelTank.getFluidAmount(), x, y, zLevel, 15, 47);

      if(gen.isActive()) {
        txt = gen.tickPerBucketOfFuel / 1000 + " t/Mb";
        sw = fr.getStringWidth(txt);
        fr.drawStringWithShadow(txt, x - sw / 2 + 7, y + fr.FONT_HEIGHT / 2 + 46, ColorUtil.getRGB(Color.WHITE));
      }     
    }

    RenderUtil.bindTexture("enderio:textures/gui/zombieGenerator.png");
    super.drawGuiContainerBackgroundLayer(par1, par2, par3);
View Full Code Here

Examples of net.minecraft.client.gui.FontRenderer.drawStringWithShadow()

    if(gen.isActive()) {     
      output = gen.getGeneratedLastTick();
    }
    String txt =  Lang.localize("combustionGenerator.output") + " " + PowerDisplayUtil.formatPower(output) + " " + PowerDisplayUtil.abrevation() + PowerDisplayUtil.perTickStr();
    int sw = fr.getStringWidth(txt);
    fr.drawStringWithShadow(txt, guiLeft + xSize / 2 - sw / 2, guiTop + fr.FONT_HEIGHT / 2 + 3, ColorUtil.getRGB(Color.WHITE));

    int x = guiLeft + 48;
    int y = guiTop + 21;
    if(gen.getCoolantTank().getFluidAmount() > 0) {
      x = guiLeft + 114;
View Full Code Here

Examples of net.minecraft.client.gui.FontRenderer.drawStringWithShadow()

      RenderUtil.renderGuiTank(gen.getCoolantTank().getFluid(), 4000, gen.getCoolantTank().getFluidAmount() - 1000, x, y, zLevel, 15, 47);

      if(gen.isActive()) {
        txt = gen.getNumTicksPerMbCoolant() + " t/MB";
        sw = fr.getStringWidth(txt);
        fr.drawStringWithShadow(txt, x - sw / 2 + 7, y + fr.FONT_HEIGHT / 2 + 47, ColorUtil.getRGB(Color.WHITE));
      }

      x = guiLeft + 72;
      y = guiTop + 14;
      //center coolant chamber
View Full Code Here

Examples of net.minecraft.client.gui.FontRenderer.drawStringWithShadow()

      RenderUtil.renderGuiTank(gen.getFuelTank().getFluid(), 4000, gen.getFuelTank().getFluidAmount() - 1000, x, y, zLevel, 15, 47);

      if(gen.isActive()) {
        txt = gen.getNumTicksPerMbFuel() + " t/MB";
        sw = fr.getStringWidth(txt);
        fr.drawStringWithShadow(txt, x - sw / 2 + 7, y + fr.FONT_HEIGHT / 2 + 47, ColorUtil.getRGB(Color.WHITE));
      }

      //center tank
      //RenderUtil.renderGuiTank(gen.fuelTank.getFluid(), 1000, Math.min(gen.fuelTank.getFluidAmount(), 1000), guiLeft + 81, guiTop + 5, zLevel, 14, 14);
      RenderUtil.renderGuiTank(gen.getFuelTank().getFluid(), 1000, Math.min(gen.getFuelTank().getFluidAmount(), 1000), guiLeft + 81, guiTop + 5, zLevel, 14, 14);
View Full Code Here

Examples of net.minecraft.client.gui.FontRenderer.drawStringWithShadow()

    FontRenderer fr = Minecraft.getMinecraft().fontRenderer;
    for(int i=0;i<inputBounds.length;i++) {
      String mod = filter.getModAt(i);
      if(mod != null) {
        Rectangle r = inputBounds[i];
        fr.drawStringWithShadow(mod, gui.getGuiLeft() + r.x  + 41, gui.getGuiTop() + r.y + 4 , ColorUtil.getRGB(Color.white));
      }
    }
   
    RenderUtil.bindTexture("enderio:textures/gui/externalConduitConnection.png");   
    int edge = inputBounds[0].x + tfWidth + 46;
View Full Code Here

Examples of net.minecraft.client.gui.FontRenderer.drawStringWithShadow()

      drawGradientRect(var6 - 3, var7 + var9 + 2, z, var6 + var5 + 3, var7 + var9 + 3, var12, var12);

      GL11.glDisable(GL11.GL_DEPTH_TEST);
      for (int var13 = 0; var13 < tooltipData.size(); ++var13) {
        String var14 = tooltipData.get(var13);
        fontRenderer.drawStringWithShadow(var14, var6, var7, -1);
        if (var13 == 0)
          var7 += 2;
        var7 += 10;
      }
      GL11.glEnable(GL11.GL_DEPTH_TEST);
View Full Code Here

Examples of net.minecraft.client.gui.FontRenderer.drawStringWithShadow()

        font = mc.fontRenderer;
      }

      RenderItem.getInstance().renderItemIntoGUI(mc.fontRenderer, mc.renderEngine, new ItemStack(ModItems.lexicon), sx, sy);
      GL11.glDisable(GL11.GL_LIGHTING);
      font.drawStringWithShadow(drawStr, sx + 10, sy + 8, 0xFFFFFFFF);
    }

    GL11.glDisable(GL11.GL_BLEND);
    GL11.glColor4f(1F, 1F, 1F, 1F);
    profiler.endSection();
View Full Code Here

Examples of net.minecraft.client.gui.FontRenderer.drawStringWithShadow()

              {
                tileDisplay = obj.getTileEntity(world).getClass().getSimpleName();
              }
            }
 
            font.drawStringWithShadow("Block: " + obj.getBlock(world).getUnlocalizedName(), 1, 1, 0x404040);
            font.drawStringWithShadow("Metadata: " + obj.getMetadata(world), 1, 10, 0x404040);
            font.drawStringWithShadow("Location: " + MekanismUtils.getCoordDisplay(obj), 1, 19, 0x404040);
            font.drawStringWithShadow("TileEntity: " + tileDisplay, 1, 28, 0x404040);
            font.drawStringWithShadow("Side: " + pos.sideHit, 1, 37, 0x404040);
          }
View Full Code Here

Examples of net.minecraft.client.gui.FontRenderer.drawStringWithShadow()

                tileDisplay = obj.getTileEntity(world).getClass().getSimpleName();
              }
            }
 
            font.drawStringWithShadow("Block: " + obj.getBlock(world).getUnlocalizedName(), 1, 1, 0x404040);
            font.drawStringWithShadow("Metadata: " + obj.getMetadata(world), 1, 10, 0x404040);
            font.drawStringWithShadow("Location: " + MekanismUtils.getCoordDisplay(obj), 1, 19, 0x404040);
            font.drawStringWithShadow("TileEntity: " + tileDisplay, 1, 28, 0x404040);
            font.drawStringWithShadow("Side: " + pos.sideHit, 1, 37, 0x404040);
          }
        }
View Full Code Here

Examples of net.minecraft.client.gui.FontRenderer.drawStringWithShadow()

              }
            }
 
            font.drawStringWithShadow("Block: " + obj.getBlock(world).getUnlocalizedName(), 1, 1, 0x404040);
            font.drawStringWithShadow("Metadata: " + obj.getMetadata(world), 1, 10, 0x404040);
            font.drawStringWithShadow("Location: " + MekanismUtils.getCoordDisplay(obj), 1, 19, 0x404040);
            font.drawStringWithShadow("TileEntity: " + tileDisplay, 1, 28, 0x404040);
            font.drawStringWithShadow("Side: " + pos.sideHit, 1, 37, 0x404040);
          }
        }
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.