本文整理汇总了Java中codechicken.lib.gui.GuiDraw.drawTexturedModalRect方法的典型用法代码示例。如果您正苦于以下问题:Java GuiDraw.drawTexturedModalRect方法的具体用法?Java GuiDraw.drawTexturedModalRect怎么用?Java GuiDraw.drawTexturedModalRect使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类codechicken.lib.gui.GuiDraw
的用法示例。
在下文中一共展示了GuiDraw.drawTexturedModalRect方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: drawBackground
import codechicken.lib.gui.GuiDraw; //导入方法依赖的package包/类
@Override
public void drawBackground(int recipe)
{
int progress = this.ticksPassed % 144;
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
GuiDraw.changeTexture(RefineryRecipeHandler.refineryGuiTexture);
GuiDraw.drawTexturedModalRect(-2, 0, 3, 4, 168, 64);
if (progress < 104 && progress > 40)
{
GuiDraw.drawTexturedModalRect(2, 42, 176, 6, 16, 20);
}
else if (progress < 124)
{
GuiDraw.drawTexturedModalRect(148, 42, 176 + 16, 6, 16, 20);
}
GuiDraw.drawTexturedModalRect(21, 21, 0, 186, progress, 20);
}
示例2: drawBackground
import codechicken.lib.gui.GuiDraw; //导入方法依赖的package包/类
@Override
public void drawBackground(int recipe)
{
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
GuiDraw.changeTexture(IngotCompressorRecipeHandler.ingotCompressorTexture);
GuiDraw.drawTexturedModalRect(20, 25, 18, 17, 137, 78);
if (IngotCompressorRecipeHandler.ticksPassed % 70 > 26)
{
GuiDraw.drawTexturedModalRect(103, 36, 176, 0, 17, 13);
}
GuiDraw.drawTexturedModalRect(79, 44, 176, 13, Math.min(IngotCompressorRecipeHandler.ticksPassed % 70, 53), 17);
int yOffset = (int) Math.floor(IngotCompressorRecipeHandler.ticksPassed % 48 * 0.29166666666666666666666666666667D);
GuiDraw.drawTexturedModalRect(83, 35 + yOffset, 176, 30 + yOffset, 14, 14 - yOffset);
}
示例3: drawBackground
import codechicken.lib.gui.GuiDraw; //导入方法依赖的package包/类
@Override
public void drawBackground(int recipe) {
GL11.glScalef(0.19f, 0.19f, 0.19f);
//GL11.glColor4f(1, 1, 1, 1);
GuiDraw.changeTexture(getGuiTexture());
GuiDraw.drawTexturedModalRect(290, 200, 11, 10, 235, 240);//Actual Crucible
GuiDraw.changeTexture("thaumcraft:textures/gui/gui_research.png");
GL11.glScalef(5.25f, 5.25f, 5.25f);
GuiDraw.drawTexturedModalRect(35, 5, 0, 230, 24, 24);//Input Slot
GuiDraw.drawTexturedModalRect(140, 46, 55, 230, 24, 24);//Output Slot
GL11.glEnable(GL11.GL_BLEND);
GuiDraw.changeTexture(Reference.MOD_ID+":textures/gui/crucible_arrow_1.png");
GL11.glScalef(0.14f, 0.14f, 0.14f);
//GL11.glRotatef(135f, 0f, 0f, 1f);
GuiDraw.drawTexturedModalRect(730, 300, 0, 0, 250, 250);//Output Arrow
GuiDraw.changeTexture(Reference.MOD_ID+":textures/gui/crucible_arrow_2.png");
//GL11.glScalef(1f,1f,1f);
GuiDraw.drawTexturedModalRect(425, 550, 0, 0, 260, 260);//Aspect Input Arrow
GuiDraw.changeTexture(Reference.MOD_ID+":textures/gui/crucible_arrow_3.png");
GuiDraw.drawTexturedModalRect(425, 8, 0, 0, 260, 260);//Item Input Arrow
GL11.glDisable(GL11.GL_BLEND);
}
示例4: drawBackground
import codechicken.lib.gui.GuiDraw; //导入方法依赖的package包/类
@Override
public void drawBackground(int recipe) {
GL11.glScalef(0.70f, 0.65f, 0.59f);
GuiDraw.changeTexture(getGuiTexture());
GuiDraw.drawTexturedModalRect(0, 0, 0, 0, 52, 55);
GuiDraw.drawTexturedModalRect(106, 115, 0, 56, 28, 28);
GuiDraw.drawTexturedModalRect(151, 0, 177, 0, 79, 83);
GuiDraw.drawTexturedModalRect(1, 150, 53, 0, 28, 28);
GuiDraw.drawTexturedModalRect(210, 150, 53, 0, 28, 28);
GuiDraw.drawTexturedModalRect(106, 150, 53, 0, 28, 28);
GuiDraw.drawTexturedModalRect(106, 80, 53, 0, 28, 28);
GL11.glDisable(GL11.GL_BLEND);
}
示例5: drawBackground
import codechicken.lib.gui.GuiDraw; //导入方法依赖的package包/类
@Override
public void drawBackground(int recipe) {
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
Minecraft.getMinecraft().getTextureManager()
.bindTexture(new ResourceLocation(NeiLotr.MODID + ":textures/gui/trade.png"));
GuiDraw.changeTexture(getGuiTexture());
GuiDraw.drawTexturedModalRect((int) (176 / 2.0f - 153 / 2.0f), 10, 0, 16, 153, 34);
}
示例6: drawBackground
import codechicken.lib.gui.GuiDraw; //导入方法依赖的package包/类
@Override
public void drawBackground(int recipe) {
GL11.glColor4f(1, 1, 1, 1);
if (!this.guiBackgroundTextureLocation.equals("nei:textures/gui/recipebg.png") && recipe % recipiesPerPage() == 0) {
CCRenderState.changeTexture(this.guiBackgroundTextureLocation);
GuiDraw.drawTexturedModalRect(-5, -16, 0, 0, 176, 166);
}
if (this.getGuiTexture() != null && !this.getGuiTexture().isEmpty()) {
CCRenderState.changeTexture(getGuiTexture());
GuiDraw.drawTexturedModalRect(0, 0, this.guiOffset.offsetX, this.guiOffset.offsetY, 166, 65);
}
}
示例7: drawForeground
import codechicken.lib.gui.GuiDraw; //导入方法依赖的package包/类
@SideOnly(Side.CLIENT)
public void drawForeground(final int recipe) {
final int x = (GuiDraw.getStringWidth("+") + 10) / 2;
GuiDraw.drawString("+", 60 - x, 40, -12566464, false);
GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
GuiDraw.changeTexture(Gui.icons);
GuiDraw.drawTexturedModalRect(60 + x - 9, 40, 16, 0, 9, 9);
GuiDraw.drawTexturedModalRect(60 + x - 9, 40, 52, 0, 9, 9);
}
示例8: drawBackground
import codechicken.lib.gui.GuiDraw; //导入方法依赖的package包/类
@Override
public void drawBackground(int recipe)
{
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
GuiDraw.changeTexture(RocketT2RecipeHandler.rocketGuiTexture);
GuiDraw.drawTexturedModalRect(0, -8, 3, 4, 168, 140);
}
示例9: drawBackground
import codechicken.lib.gui.GuiDraw; //导入方法依赖的package包/类
@Override
public void drawBackground(int recipe)
{
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
GuiDraw.changeTexture(CargoRocketRecipeHandler.cargoRocketTexture);
GuiDraw.drawTexturedModalRect(0, 0, 3, 4, 168, 125);
}
示例10: drawBackground
import codechicken.lib.gui.GuiDraw; //导入方法依赖的package包/类
@Override
public void drawBackground(int recipe)
{
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
GuiDraw.changeTexture(RocketT3RecipeHandler.rocketGuiTexture);
GuiDraw.drawTexturedModalRect(0, -8, 3, 4, 168, 140);
}
示例11: drawBackground
import codechicken.lib.gui.GuiDraw; //导入方法依赖的package包/类
@Override
public void drawBackground(int recipe)
{
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
GuiDraw.changeTexture(AstroMinerRecipeHandler.rocketGuiTexture);
GuiDraw.drawTexturedModalRect(0, -8, 3, 32, 168, 104);
}
示例12: drawBackground
import codechicken.lib.gui.GuiDraw; //导入方法依赖的package包/类
@Override
public void drawBackground(int recipe)
{
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
GuiDraw.changeTexture(ElectricIngotCompressorRecipeHandler.ingotCompressorTexture);
GuiDraw.drawTexturedModalRect(20, 25, 18, 17, 137, 54);
if (ElectricIngotCompressorRecipeHandler.ticksPassed % 70 > 26)
{
GuiDraw.drawTexturedModalRect(103, 38, 176, 0, 17, 13);
}
GuiDraw.drawTexturedModalRect(79, 46, 176, 13, Math.min(ElectricIngotCompressorRecipeHandler.ticksPassed % 70, 53), 17);
}
示例13: drawBackground
import codechicken.lib.gui.GuiDraw; //导入方法依赖的package包/类
@Override
public void drawBackground(int recipe)
{
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
GuiDraw.changeTexture(CircuitFabricatorRecipeHandler.circuitFabricatorTexture);
GuiDraw.drawTexturedModalRect(-2, 9, 3, 4, 168, 64);
GuiDraw.drawTexturedModalRect(68, 73, 73, 68, 96, 35);
GuiDraw.drawTexturedModalRect(83, 25, 176, 17 + 10 * (Math.min(this.ticksPassed % 70, 51) / 3 % 3), Math.min(this.ticksPassed % 70, 51), 10);
}
示例14: drawBackground
import codechicken.lib.gui.GuiDraw; //导入方法依赖的package包/类
@Override
public void drawBackground(int recipe)
{
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
GuiDraw.changeTexture(RocketT1RecipeHandler.rocketGuiTexture);
GuiDraw.drawTexturedModalRect(0, 0, 3, 4, 168, 130);
}
示例15: drawBackground
import codechicken.lib.gui.GuiDraw; //导入方法依赖的package包/类
@Override
public void drawBackground(int recipe)
{
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
GuiDraw.changeTexture(BuggyRecipeHandler.buggyGuiTexture);
GuiDraw.drawTexturedModalRect(0, 0, 3, 4, 168, 130);
}