mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-18 03:25:18 +00:00
68 lines
2.4 KiB
Diff
68 lines
2.4 KiB
Diff
--- ../src-base/minecraft/net/minecraft/client/gui/GuiMainMenu.java
|
|
+++ ../src-work/minecraft/net/minecraft/client/gui/GuiMainMenu.java
|
|
@@ -1,5 +1,7 @@
|
|
package net.minecraft.client.gui;
|
|
|
|
+import cpw.mods.fml.client.GuiModList;
|
|
+import cpw.mods.fml.common.FMLCommonHandler;
|
|
import cpw.mods.fml.relauncher.Side;
|
|
import cpw.mods.fml.relauncher.SideOnly;
|
|
import java.awt.image.BufferedImage;
|
|
@@ -11,6 +13,7 @@
|
|
import java.util.ArrayList;
|
|
import java.util.Calendar;
|
|
import java.util.Date;
|
|
+import java.util.List;
|
|
import java.util.Random;
|
|
import net.minecraft.client.Minecraft;
|
|
import net.minecraft.client.renderer.Tessellator;
|
|
@@ -24,6 +27,9 @@
|
|
import net.minecraft.world.storage.WorldInfo;
|
|
import org.lwjgl.opengl.GL11;
|
|
import org.lwjgl.util.glu.GLU;
|
|
+
|
|
+import com.google.common.base.Strings;
|
|
+import com.google.common.collect.Lists;
|
|
|
|
@SideOnly(Side.CLIENT)
|
|
public class GuiMainMenu extends GuiScreen
|
|
@@ -148,6 +154,8 @@
|
|
|
|
this.func_96137_a(stringtranslate, i, 24);
|
|
|
|
+ this.field_73887_h.add(new GuiButton(6, this.field_73880_f / 2 - 100, i + 49, "Mods"));
|
|
+
|
|
if (this.field_73882_e.field_71448_m)
|
|
{
|
|
this.field_73887_h.add(new GuiButton(0, this.field_73880_f / 2 - 100, i + 72, stringtranslate.func_74805_b("menu.options")));
|
|
@@ -264,6 +272,11 @@
|
|
if (p_73875_1_.field_73741_f == 4)
|
|
{
|
|
this.field_73882_e.func_71400_g();
|
|
+ }
|
|
+
|
|
+ if (p_73875_1_.field_73741_f == 6)
|
|
+ {
|
|
+ this.field_73882_e.func_71373_a(new GuiModList(this));
|
|
}
|
|
|
|
if (p_73875_1_.field_73741_f == 11)
|
|
@@ -500,7 +513,16 @@
|
|
s = s + " Demo";
|
|
}
|
|
|
|
- this.func_73731_b(this.field_73886_k, s, 2, this.field_73881_g - 10, 16777215);
|
|
+ List<String> brandings = Lists.reverse(FMLCommonHandler.instance().getBrandings());
|
|
+ for (int i = 0; i < brandings.size(); i++)
|
|
+ {
|
|
+ String brd = brandings.get(i);
|
|
+ if (!Strings.isNullOrEmpty(brd))
|
|
+ {
|
|
+ this.func_73731_b(this.field_73886_k, brd, 2, this.field_73881_g - ( 10 + i * (this.field_73886_k.field_78288_b + 1)), 16777215);
|
|
+ }
|
|
+ }
|
|
+
|
|
String s1 = "Copyright Mojang AB. Do not distribute!";
|
|
this.func_73731_b(this.field_73886_k, s1, this.field_73880_f - this.field_73886_k.func_78256_a(s1) - 2, this.field_73881_g - 10, 16777215);
|
|
|