本文整理汇总了Java中net.minecraft.client.gui.GuiButtonLanguage类的典型用法代码示例。如果您正苦于以下问题:Java GuiButtonLanguage类的具体用法?Java GuiButtonLanguage怎么用?Java GuiButtonLanguage使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
GuiButtonLanguage类属于net.minecraft.client.gui包,在下文中一共展示了GuiButtonLanguage类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: initGui
import net.minecraft.client.gui.GuiButtonLanguage; //导入依赖的package包/类
/**
* Adds the buttons (and other controls) to the screen in question.
*/
public void initGui()
{
super.initGui();
int startY = this.height / 4 + 50;
int spaceY = 22;
this.buttonList.clear();
addSingleplayerMultiplayerButtons(startY, spaceY);
this.buttonList.add(new GuiButton(10, this.width / 2 - 100, startY + spaceY * 2, "Animator"));
this.buttonList.add(new GuiButton(0, this.width / 2 - 100, startY + spaceY * 4, 98, 20, I18n.format("menu.options", new Object[0])));
this.buttonList.add(new GuiButton(4, this.width / 2 + 2, startY + spaceY * 4, 98, 20, I18n.format("menu.quit", new Object[0])));
this.buttonList.add(new GuiButtonLanguage(5, this.width / 2 - 124, startY + spaceY * 4));
}
开发者ID:ObsidianSuite,项目名称:ObsidianSuite,代码行数:18,代码来源:GuiAnimationMainMenu.java
示例2: getDisplayString
import net.minecraft.client.gui.GuiButtonLanguage; //导入依赖的package包/类
@Override
public String getDisplayString() {
if(button instanceof GuiButtonLanguage) {
return I18n.format("gui.button.language");
}
return button.displayString;
}
开发者ID:thilokru,项目名称:Controller-Support,代码行数:8,代码来源:GuiButtonSelector.java
示例3: func_73866_w_
import net.minecraft.client.gui.GuiButtonLanguage; //导入依赖的package包/类
public void func_73866_w_() {
this.field_73977_n = new DynamicTexture(256, 256);
this.field_110351_G = this.field_73882_e.func_110434_K().func_110578_a("background", this.field_73977_n);
Calendar var1 = Calendar.getInstance();
var1.setTime(new Date());
if(var1.get(2) + 1 == 11 && var1.get(5) == 9) {
this.field_73975_c = "Happy birthday, ez!";
} else if(var1.get(2) + 1 == 6 && var1.get(5) == 1) {
this.field_73975_c = "Happy birthday, Notch!";
} else if(var1.get(2) + 1 == 12 && var1.get(5) == 24) {
this.field_73975_c = "Merry X-mas!";
} else if(var1.get(2) + 1 == 1 && var1.get(5) == 1) {
this.field_73975_c = "Happy new year!";
} else if(var1.get(2) + 1 == 10 && var1.get(5) == 31) {
this.field_73975_c = "OOoooOOOoooo! Spooky!";
}
boolean var2 = true;
int var3 = this.field_73881_g / 4 + 48;
if(this.field_73882_e.func_71355_q()) {
this.func_73972_b(var3, 24);
} else {
this.func_73969_a(var3, 24);
}
this.func_130020_g();
this.field_73887_h.add(new GuiButton(0, this.field_73880_f / 2 - 100, var3 + 72 + 12, 98, 20, I18n.func_135053_a("menu.options")));
this.field_73887_h.add(new GuiButton(4, this.field_73880_f / 2 + 2, var3 + 72 + 12, 98, 20, I18n.func_135053_a("menu.quit")));
this.field_73887_h.add(new GuiButtonLanguage(5, this.field_73880_f / 2 - 124, var3 + 72 + 12));
Object var4 = this.field_104025_t;
synchronized(this.field_104025_t) {
this.field_92023_s = this.field_73886_k.func_78256_a(this.field_92025_p);
this.field_92024_r = this.field_73886_k.func_78256_a(field_96138_a);
int var5 = Math.max(this.field_92023_s, this.field_92024_r);
this.field_92022_t = (this.field_73880_f - var5) / 2;
this.field_92021_u = ((GuiButton)this.field_73887_h.get(0)).field_73743_d - 24;
this.field_92020_v = this.field_92022_t + var5;
this.field_92019_w = this.field_92021_u + 24;
}
}
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:41,代码来源:GuiMainMenu.java
示例4: initGui
import net.minecraft.client.gui.GuiButtonLanguage; //导入依赖的package包/类
public void initGui()
{
this.viewportTexture = new DynamicTexture(256, 256);
this.field_110351_G = this.mc.getTextureManager().getDynamicTextureLocation("background", this.viewportTexture);
Calendar calendar = Calendar.getInstance();
calendar.setTime(new Date());
if (calendar.get(2) + 1 == 11 && calendar.get(5) == 9)
{
this.splashText = "Happy birthday, ez!";
}
else if (calendar.get(2) + 1 == 6 && calendar.get(5) == 1)
{
this.splashText = "Happy birthday, Notch!";
}
else if (calendar.get(2) + 1 == 12 && calendar.get(5) == 24)
{
this.splashText = "Merry X-mas!";
}
else if (calendar.get(2) + 1 == 1 && calendar.get(5) == 1)
{
this.splashText = "Happy new year!";
}
else if (calendar.get(2) + 1 == 10 && calendar.get(5) == 31)
{
this.splashText = "OOoooOOOoooo! Spooky!";
}
boolean flag = true;
int i = this.height / 4 + 48;
if (this.mc.isDemo())
{
this.addDemoButtons(i, 24);
}
else
{
this.addSingleplayerMultiplayerButtons(i, 24);
}
this.buttonList.add(new GuiButton(0, this.width / 2 - 100, i + 72 + 12, 98, 20, I18n.format("menu.options", new Object[0])));
this.buttonList.add(new GuiButton(4, this.width / 2 + 2, i + 72 + 12, 98, 20, I18n.format("menu.quit", new Object[0])));
this.buttonList.add(new GuiButtonLanguage(20, this.width / 2 - 124, i + 72 + 12));
synchronized (this.rectDownload_t)
{
this.rectDownload_u = ((GuiButton)this.buttonList.get(0)).yPosition - 24;
this.rectDownload_w = this.rectDownload_u + 24;
}
}
开发者ID:yeyaowei,项目名称:New-Menu,代码行数:50,代码来源:NewMenu.java
示例5: initGui
import net.minecraft.client.gui.GuiButtonLanguage; //导入依赖的package包/类
/**
* Adds the buttons (and other controls) to the screen in question.
*/
public void initGui()
{
this.viewportTexture = new DynamicTexture(256, 256);
this.field_110351_G = this.mc.getTextureManager().getDynamicTextureLocation("background", this.viewportTexture);
Calendar calendar = Calendar.getInstance();
calendar.setTime(new Date());
if (calendar.get(2) + 1 == 11 && calendar.get(5) == 9)
{
this.splashText = "Happy birthday, ez!";
}
else if (calendar.get(2) + 1 == 6 && calendar.get(5) == 1)
{
this.splashText = "Happy birthday, Notch!";
}
else if (calendar.get(2) + 1 == 12 && calendar.get(5) == 24)
{
this.splashText = "Merry X-mas!";
}
else if (calendar.get(2) + 1 == 1 && calendar.get(5) == 1)
{
this.splashText = "Happy new year!";
}
else if (calendar.get(2) + 1 == 10 && calendar.get(5) == 31)
{
this.splashText = "OOoooOOOoooo! Spooky!";
}
boolean flag = true;
int i = this.height / 4 + 48;
if (this.mc.isDemo())
{
this.addDemoButtons(i, 24);
}
else
{
this.addSingleplayerMultiplayerButtons(i, 24);
}
this.buttonList.add(new GuiButton(0, this.width / 2 - 100, i + 72 + 12, 98, 20, I18n.format("menu.options", new Object[0])));
this.buttonList.add(new GuiButton(4, this.width / 2 + 2, i + 72 + 12, 98, 20, I18n.format("menu.quit", new Object[0])));
this.buttonList.add(new GuiButtonLanguage(5, this.width / 2 - 124, i + 72 + 12));
Object object = this.field_104025_t;
synchronized (this.field_104025_t)
{
this.field_92023_s = this.fontRendererObj.getStringWidth(this.field_92025_p);
this.field_92024_r = this.fontRendererObj.getStringWidth(this.field_146972_A);
int j = Math.max(this.field_92023_s, this.field_92024_r);
this.field_92022_t = (this.width - j) / 2;
this.field_92021_u = ((GuiButton)this.buttonList.get(0)).yPosition - 24;
this.field_92020_v = this.field_92022_t + j;
this.field_92019_w = this.field_92021_u + 24;
}
}
开发者ID:jtrent238,项目名称:PopularMMOS-EpicProportions-Mod,代码行数:60,代码来源:GuiMainMenu.java
示例6: initGui
import net.minecraft.client.gui.GuiButtonLanguage; //导入依赖的package包/类
/**
* Adds the buttons (and other controls) to the screen in question.
*/
public void initGui()
{
this.viewportTexture = new DynamicTexture(256, 256);
this.field_110351_G = this.mc.getTextureManager().getDynamicTextureLocation("background",
this.viewportTexture);
Calendar calendar = Calendar.getInstance();
calendar.setTime(new Date());
if (calendar.get(2) + 1 == 11 && calendar.get(5) == 9)
{
this.splashText = "Happy birthday, ez!";
}
else if (calendar.get(2) + 1 == 6 && calendar.get(5) == 1)
{
this.splashText = "Happy birthday, Notch!";
}
else if (calendar.get(2) + 1 == 12 && calendar.get(5) == 24)
{
this.splashText = "Merry X-mas!";
}
else if (calendar.get(2) + 1 == 1 && calendar.get(5) == 1)
{
this.splashText = "Happy new year!";
}
else if (calendar.get(2) + 1 == 10 && calendar.get(5) == 31)
{
this.splashText = "OOoooOOOoooo! Spooky!";
}
boolean flag = true;
int i = this.height / 4 + 48;
if (this.mc.isDemo())
{
this.addDemoButtons(i, 24);
}
else
{
this.addSingleplayerMultiplayerButtons(i, 24);
}
this.buttonList.add(new GuiARKButton(0, this.width / 2 - 100, i + 72 + 12, 98, 20, I18n
.format("menu.options", new Object[0])));
this.buttonList.add(new GuiARKButton(4, this.width / 2 + 2, i + 72 + 12, 98, 20, I18n
.format("menu.quit", new Object[0])));
this.buttonList.add(new GuiButtonLanguage(5, this.width / 2 - 124, i + 72 + 12));
Object object = this.threadLock;
synchronized (this.threadLock)
{
this.field_92023_s = this.fontRendererObj.getStringWidth(this.openGLWarning1);
this.field_92024_r = this.fontRendererObj.getStringWidth(this.openGLWarning2);
int j = Math.max(this.field_92023_s, this.field_92024_r);
this.field_92022_t = (this.width - j) / 2;
this.field_92021_u = ((GuiARKButton) this.buttonList.get(0)).yPosition - 24;
this.field_92020_v = this.field_92022_t + j;
this.field_92019_w = this.field_92021_u + 24;
}
}
开发者ID:Archiving,项目名称:ARKCraft-Code,代码行数:63,代码来源:GuiMainMenuOverride.java
注:本文中的net.minecraft.client.gui.GuiButtonLanguage类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论