本文整理汇总了Java中net.minecraft.client.gui.Gui.func_146110_a方法的典型用法代码示例。如果您正苦于以下问题:Java Gui.func_146110_a方法的具体用法?Java Gui.func_146110_a怎么用?Java Gui.func_146110_a使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.minecraft.client.gui.Gui
的用法示例。
在下文中一共展示了Gui.func_146110_a方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: drawScreen
import net.minecraft.client.gui.Gui; //导入方法依赖的package包/类
@Override
public void drawScreen(int mouseX, int mouseY, float partialTicks)
{
this.drawDefaultBackground();
super.drawScreen(mouseX, mouseY, partialTicks);
this.drawCenteredString(this.fontRendererObj, Util.localize("info.server_name"), this.width / 2, this.height / 2 - 65, -1);
int colour;
if (nameChecked && isAcceptable)
{
colour = 0x00FF00;
}
else
{
colour = 0xFF0000;
}
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
this.mc.getTextureManager().bindTexture(lockIcon);
Gui.func_146110_a(this.width / 2 - 8, (this.height / 2) + 40, 0.0F, 0.0F, 16, 16, 16.0F, 16.0F);
int strStart = 61;
this.drawCenteredString(fontRendererObj, Util.localize("secure.line1"), this.width / 2, (this.height / 2) + strStart, 0xFFFFFF);
this.drawCenteredString(fontRendererObj, Util.localize("secure.line2"), this.width / 2, (this.height / 2) + strStart + 10, 0xFFFFFF);
this.drawCenteredString(fontRendererObj, Util.localize("secure.line3"), this.width / 2, (this.height / 2) + strStart + 20, 0xFFFFFF);
this.nameField.drawTextBox();
this.drawCenteredString(fontRendererObj, message, (this.width / 2), (this.height / 2) - 26, colour);
}