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

The following examples show how to use codechicken.lib.gui.GuiDraw#drawStringC() . 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: RecipeHandlerSludgeBoiler.java    From NEI-Integration with MIT License 5 votes vote down vote up
@Override
public void drawExtras(int recipe) {
    this.drawProgressBar(129, 0, 176, 58, 8, 62, 1.0F, 3);
    this.drawProgressBar(139, 0, 185, 58, 8, 62, 40, 3);
    
    CachedSludgeBoilerRecipe crecipe = (CachedSludgeBoilerRecipe) this.arecipes.get(recipe);
    NumberFormat percentFormat = NumberFormat.getPercentInstance();
    percentFormat.setMaximumFractionDigits(2);
    GuiDraw.drawStringC(percentFormat.format(crecipe.chance), 57, 44, 0x808080, false);
}
 
Example 2
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 3
Source File: RecipeHandlerBlastFurnace.java    From NEI-Integration with MIT License 5 votes vote down vote up
@Override
public void drawExtras(int recipe) {
    GuiDraw.drawStringC(((CachedBlastFurnaceRecipe) this.arecipes.get(recipe)).cookTime + " " + Utils.translate("ticks"), 120, 6, 0x808080, false);
    this.changeToGuiTexture();
    this.drawProgressBar(51, 25, 176, 0, 14, 14, 48, 7);
    this.drawProgressBar(74, 23, 176, 14, 24, 16, 48, 0);
}
 
Example 4
Source File: RecipeHandlerBase.java    From NEI-Integration with MIT License 5 votes vote down vote up
@Override
public void drawForeground(int recipe) {
    super.drawForeground(recipe);
    this.drawFluidTanks(recipe);
    if (recipe % this.recipiesPerPage() == 0 && this.getRecipeSubName() != null) {
        GuiDraw.drawStringC(this.getRecipeSubName(), 83, -2, 0x404040, false);
    }
    this.changeToGuiTexture();
}
 
Example 5
Source File: RecipeHandlerOreDictionary.java    From NEI-Integration with MIT License 4 votes vote down vote up
@Override
public void drawExtras(int recipe) {
    GuiDraw.drawStringC(((CachedOreDictionaryRecipe) this.arecipes.get(recipe)).oreName, 83, 5, 0x808080, false);
}
 
Example 6
Source File: RecipeHandlerCyaniteReprocessor.java    From NEI-Integration with MIT License 4 votes vote down vote up
@Override
public void drawExtras(int recipe) {
    this.drawProgressBar(68, 24, 0, 177, 27, 18, 100, 0);
    GuiDraw.drawStringC("2000 RF", 81, 48, 0x808080, false);
}
 
Example 7
Source File: RecipeHandlerCokeOven.java    From NEI-Integration with MIT License 4 votes vote down vote up
@Override
public void drawExtras(int recipe) {
    this.drawProgressBar(40, 32, 177, 61, 21, 16, 100, 0);
    this.drawProgressBar(21, 15, 176, 47, 14, 14, 100, 11);
    GuiDraw.drawStringC(((CachedCokeOvenRecipe) this.arecipes.get(recipe)).cookTime + " " + Utils.translate("ticks"), 64, 12, 0x808080, false);
}