Java Code Examples for codechicken.lib.gui.GuiDraw#drawTexturedModalRect()

The following examples show how to use codechicken.lib.gui.GuiDraw#drawTexturedModalRect() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: RecipeHandlerComposter.java    From NEI-Integration with MIT License 5 votes vote down vote up
@Override
public void drawBackground(int recipe) {
    this.changeToGuiTexture();
    GuiDraw.drawTexturedModalRect(0, 0, 11, 13, 160, 65);
    this.changeToOverlayTexture();
    GuiDraw.drawTexturedModalRect(76, 25, 0, 15, 22, 15);
}
 
Example 2
Source File: RecipeHandlerSewer.java    From NEI-Integration with MIT License 5 votes vote down vote up
@Override
public void drawBackground(int recipe) {
    this.changeToGuiTexture();
    GuiDraw.drawTexturedModalRect(0, 0, 11, 13, 160, 65);
    this.changeToOverlayTexture();
    GuiDraw.drawTexturedModalRect(76, 25, 0, 0, 22, 15);
    
    if (!((CachedSewerRecipe) this.arecipes.get(recipe)).essenceRecipe) {
        GuiDraw.drawTexturedModalRect(48, 24, 0, 64, 16, 16);
    } else {
        GuiDraw.drawTexturedModalRect(48, 24, 0, 80, 16, 16);
    }
}
 
Example 3
Source File: RecipeHandlerHarvester.java    From NEI-Integration with MIT License 5 votes vote down vote up
@Override
public void drawBackground(int recipe) {
    this.changeToGuiTexture();
    GuiDraw.drawTexturedModalRect(0, 0, 11, 13, 160, 65);
    this.changeToOverlayTexture();
    GuiDraw.drawTexturedModalRect(48, 24, 0, 48, 16, 16);
    GuiDraw.drawTexturedModalRect(76, 25, 0, 0, 22, 15);
}
 
Example 4
Source File: RecipeHandlerGrinder.java    From NEI-Integration with MIT License 5 votes vote down vote up
@Override
public void drawBackground(int recipe) {
    this.changeToGuiTexture();
    GuiDraw.drawTexturedModalRect(0, 0, 11, 13, 160, 65);
    this.changeToOverlayTexture();
    GuiDraw.drawTexturedModalRect(74, 25, 0, 0, 22, 15);
    GuiDraw.drawTexturedModalRect(44, 24, 16, 64, 16, 16);
}
 
Example 5
Source File: RecipeHandlerSludgeBoiler.java    From NEI-Integration with MIT License 5 votes vote down vote up
@Override
public void drawBackground(int recipe) {
    this.changeToGuiTexture();
    GuiDraw.drawTexturedModalRect(0, 0, 11, 13, 160, 65);
    this.changeToOverlayTexture();
    GuiDraw.drawTexturedModalRect(76, 25, 0, 15, 22, 15);
}
 
Example 6
Source File: RecipeHandlerSlaughterhouse.java    From NEI-Integration with MIT License 5 votes vote down vote up
@Override
public void drawBackground(int recipe) {
    this.changeToGuiTexture();
    GuiDraw.drawTexturedModalRect(0, 0, 11, 13, 160, 65);
    this.changeToOverlayTexture();
    GuiDraw.drawTexturedModalRect(56, 25, 0, 0, 22, 15);
    GuiDraw.drawTexturedModalRect(28, 24, 0, 64, 16, 16);
}
 
Example 7
Source File: RecipeHandlerMeatPacker.java    From NEI-Integration with MIT License 5 votes vote down vote up
@Override
public void drawBackground(int recipe) {
    this.changeToGuiTexture();
    GuiDraw.drawTexturedModalRect(0, 0, 11, 13, 160, 65);
    this.changeToOverlayTexture();
    GuiDraw.drawTexturedModalRect(76, 25, 0, 15, 22, 15);
}
 
Example 8
Source File: RecipeHandlerBioReactor.java    From NEI-Integration with MIT License 5 votes vote down vote up
@Override
public void drawBackground(int recipe) {
    this.changeToGuiTexture();
    GuiDraw.drawTexturedModalRect(8, 5, 7, 14, 54, 54);
    GuiDraw.drawTexturedModalRect(120, 0, 131, 13, 38, 65);
    this.changeToOverlayTexture();
    GuiDraw.drawTexturedModalRect(80, 25, 0, 0, 22, 15);
}
 
Example 9
Source File: RecipeHandlerLaserDrill.java    From NEI-Integration with MIT License 5 votes vote down vote up
@Override
public void drawBackground(int recipe) {
    this.changeToGuiTexture();
    GuiDraw.drawTexturedModalRect(0, 0, 11, 13, 160, 65);
    this.changeToOverlayTexture();
    GuiDraw.drawTexturedModalRect(19, 23, 0, 30, 18, 18);
    GuiDraw.drawTexturedModalRect(104, 25, 0, 15, 22, 15);
}
 
Example 10
Source File: RecipeHandlerLaserDrill.java    From NEI-Integration with MIT License 5 votes vote down vote up
@Override
public void drawExtras(int recipe) {
    GuiDraw.drawTexturedModalRect(111, 2, 176, 0, 16, 60);
    this.drawProgressBar(139, 0, 176, 58, 8, 62, 1.0F, 3);
    this.drawProgressBar(149, 0, 185, 58, 8, 62, 60, 3);
    
    CachedLaserDrillRecipe crecipe = (CachedLaserDrillRecipe) this.arecipes.get(recipe);
    NumberFormat percentFormat = NumberFormat.getPercentInstance();
    percentFormat.setMaximumFractionDigits(2);
    GuiDraw.drawStringC(percentFormat.format(crecipe.chance), 83, 44, 0x808080, false);
    GuiDraw.drawStringC(Utils.translate("handler.laserdrill.focus"), 29, 44, 0x808080, false);
}
 
Example 11
Source File: RecipeHandlerBottler.java    From NEI-Integration with MIT License 4 votes vote down vote up
@Override
public void drawBackground(int recipe) {
    this.changeToGuiTexture();
    GuiDraw.drawTexturedModalRect(43, 0, 48, 11, 123, 65);
}
 
Example 12
Source File: RecipeHandlerHCBase.java    From NEI-Integration with MIT License 4 votes vote down vote up
@Override
public void drawBackground(int recipe) {
    this.changeToGuiTexture();
    GuiDraw.drawTexturedModalRect(0, 0, 0, 0, 160, 65);
}
 
Example 13
Source File: RecipeHandlerRollingMachine.java    From NEI-Integration with MIT License 4 votes vote down vote up
@Override
public void drawBackground(int recipe) {
    this.changeToGuiTexture();
    GuiDraw.drawTexturedModalRect(0, 2, 5, 11, 150, 65);
}
 
Example 14
Source File: RecipeHandlerStill.java    From NEI-Integration with MIT License 4 votes vote down vote up
@Override
public void drawExtras(int recipe) {
    this.drawProgressBar(79, 6, 176, 74, 4, 18, 80, 11);
    GuiDraw.drawTexturedModalRect(77, 46, 176, 60, 14, 14);
}
 
Example 15
Source File: RecipeHandlerLavaFabricator.java    From NEI-Integration with MIT License 4 votes vote down vote up
@Override
public void drawBackground(int recipe) {
    this.changeToGuiTexture();
    GuiDraw.drawTexturedModalRect(0, 0, 11, 13, 160, 65);
}
 
Example 16
Source File: RecipeHandlerRockCrusher.java    From NEI-Integration with MIT License 4 votes vote down vote up
@Override
public void drawBackground(int recipe) {
    GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
    GuiDraw.changeTexture(this.getGuiTexture());
    GuiDraw.drawTexturedModalRect(9, 0, 5, 11, 146, 65);
}
 
Example 17
Source File: RecipeHandlerFluidRegistry.java    From NEI-Integration with MIT License 4 votes vote down vote up
@Override
public void drawBackground(int recipe) {
    this.changeToGuiTexture();
    GuiDraw.drawTexturedModalRect(0, 0, 0, 0, 160, 65);
}
 
Example 18
Source File: RecipeHandlerOreDictionary.java    From NEI-Integration with MIT License 4 votes vote down vote up
@Override
public void drawBackground(int recipe) {
    this.changeToGuiTexture();
    GuiDraw.drawTexturedModalRect(0, 0, 0, 0, 160, 65);
}
 
Example 19
Source File: RecipeHandlerFermenter.java    From NEI-Integration with MIT License 4 votes vote down vote up
@Override
public void drawBackground(int recipe) {
    this.changeToGuiTexture();
    GuiDraw.drawTexturedModalRect(25, 0, 30, 15, 116, 65);
}
 
Example 20
Source File: RecipeHandlerCarpenter.java    From NEI-Integration with MIT License 4 votes vote down vote up
@Override
public void drawBackground(int recipe) {
    this.changeToGuiTexture();
    GuiDraw.drawTexturedModalRect(0, 0, 5, 14, 166, 65);
}