credits pre
This commit is contained in:
parent
0d14a75957
commit
d73a5f888a
2 changed files with 43 additions and 77 deletions
|
@ -4,83 +4,6 @@
|
||||||
//private static final String[] DISTANCES = new String[] {"Gruselig", "Winzig", "Gering", "Normal", "Weit"};
|
//private static final String[] DISTANCES = new String[] {"Gruselig", "Winzig", "Gering", "Normal", "Weit"};
|
||||||
|
|
||||||
|
|
||||||
private static final String[] AUTHORS = {"Sen"};
|
|
||||||
|
|
||||||
private final List<String> textLines = Lists.<String>newArrayList();
|
|
||||||
private final boolean cracked;
|
|
||||||
|
|
||||||
private void addLines(String alternate, String category, String... authors) {
|
|
||||||
this.textLines.add((this.cracked ? TextColor.BLUE : TextColor.LIGHT_GRAY)
|
|
||||||
+ (this.cracked ? alternate : category) + ":");
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
for(String author : authors) {
|
|
||||||
if(sb.length() > 0)
|
|
||||||
sb.append(", ");
|
|
||||||
sb.append(author);
|
|
||||||
}
|
|
||||||
this.textLines.add((this.cracked ? TextColor.DARK_PURPLE : TextColor.WHITE) + " " + sb.toString());
|
|
||||||
}
|
|
||||||
|
|
||||||
public GuiCredits(boolean hax) {
|
|
||||||
this.cracked = hax;
|
|
||||||
this.textLines.add("&" + (hax ? TextColor.DARK_AQUA : TextColor.WHITE) + "=============================");
|
|
||||||
this.textLines.add("&" + (hax ? TextColor.RED : TextColor.YELLOW) + (hax ? "Das Team -- TCQ" : "Mitwirkende"));
|
|
||||||
this.textLines.add("&" + (hax ? TextColor.DARK_AQUA : TextColor.WHITE) + "=============================");
|
|
||||||
this.textLines.add("");
|
|
||||||
this.addLines("Absolut größter Lamer des Universums", "Ursprünglich erstellt von",
|
|
||||||
"Markus Persson");
|
|
||||||
this.addLines("Crack und weitere Programmierung", "Spiel-Design, Programmierung und Grafiken",
|
|
||||||
"Jens Bergensten", "Nathan Adams", "Ryan Holtz", "Michael Stoyke");
|
|
||||||
this.addLines("Ressourcen entschlüsselt von", "Programmierung",
|
|
||||||
"Erik Broes", "Paul Spooner", "Ryan Hitchman", "Elliot Segal");
|
|
||||||
this.addLines("Cracktro, Grafiken und Intromusik", "Töne und Geräusche",
|
|
||||||
"Daniel Rosenfeld", "freesound.org");
|
|
||||||
this.addLines("Packing und Verbreitung", "Management, Administration und Spaß",
|
|
||||||
"Carl Manneh", "Daniel Kaplan", "Lydia Winters");
|
|
||||||
this.addLines("Server und Hosting", "Zahlen und Statistiken",
|
|
||||||
"Patrick Geuder");
|
|
||||||
this.addLines("Weiterer Dank geht an", "Entwickler von Mo' Creatures (Pferde usw.)",
|
|
||||||
"John Olarte", "Kent Christian Jensen", "Dan Roque");
|
|
||||||
this.addLines("Genutzte Exploits", "Weiterer Quellcode",
|
|
||||||
"Albert Pham - WorldEdit", "Joonas Vali - NameGenerator");
|
|
||||||
this.addLines("Der dunkle Herrscher", "Mod erstellt von",
|
|
||||||
GuiCredits.AUTHORS);
|
|
||||||
this.addLines("Verwendete Programme und Tools", "Verwendete Technologien",
|
|
||||||
"Java 8 (Sun, Oracle)", "LWJGL 2", "JOrbis (JCraft)", "\"3D Sound System\" (Paul Lamb)");
|
|
||||||
}
|
|
||||||
|
|
||||||
protected void actionPerformed(Button button) {
|
|
||||||
if(button.enabled && button.id == 0)
|
|
||||||
this.gm.displayGuiScreen(null);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void initGui() {
|
|
||||||
this.buttonList.add(new Button(0, this.width / 2 - 100, this.height - 28, 200, 20, "Fertig"));
|
|
||||||
}
|
|
||||||
|
|
||||||
public void drawScreen(int mouseX, int mouseY, float partialTicks) {
|
|
||||||
this.drawBackground();
|
|
||||||
for(int z = 0; z < this.textLines.size(); z++) {
|
|
||||||
String s = this.textLines.get(z);
|
|
||||||
if(s.startsWith("&"))
|
|
||||||
FontRenderer.drawCenteredString(s.substring(1), this.width / 2, 24 + z * 12, 16777215);
|
|
||||||
else
|
|
||||||
FontRenderer.drawStringWithShadow(s, this.width / 2 - 200, 24 + z * 12, 16777215);
|
|
||||||
}
|
|
||||||
super.drawScreen(mouseX, mouseY, partialTicks);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -33,11 +33,54 @@ public class GuiInfo extends Gui {
|
||||||
TextColor.BLUE + "#7 " + TextColor.YELLOW + "#8 " + TextColor.MAGENTA + "#9 " + TextColor.CYAN + "#A " + TextColor.VIOLET + "#B " + TextColor.ORANGE + "#C " + TextColor.CRIMSON + "#D " +
|
TextColor.BLUE + "#7 " + TextColor.YELLOW + "#8 " + TextColor.MAGENTA + "#9 " + TextColor.CYAN + "#A " + TextColor.VIOLET + "#B " + TextColor.ORANGE + "#C " + TextColor.CRIMSON + "#D " +
|
||||||
TextColor.MIDNIGHT + "#E " + TextColor.NEON + "#F " + TextColor.BROWN + "#G " + TextColor.DBROWN + "#H " + TextColor.DGREEN + "#I " + TextColor.DRED + "#J " + TextColor.DMAGENTA + "#K " +
|
TextColor.MIDNIGHT + "#E " + TextColor.NEON + "#F " + TextColor.BROWN + "#G " + TextColor.DBROWN + "#H " + TextColor.DGREEN + "#I " + TextColor.DRED + "#J " + TextColor.DMAGENTA + "#K " +
|
||||||
TextColor.DVIOLET + "#L " + TextColor.ORK + "#M " + TextColor.ACID + "#N ";
|
TextColor.DVIOLET + "#L " + TextColor.ORK + "#M " + TextColor.ACID + "#N ";
|
||||||
|
|
||||||
|
private static final String[] AUTHORS = {"Sen"};
|
||||||
|
|
||||||
public static final GuiInfo INSTANCE = new GuiInfo("Über dieses Programm", INFO);
|
public static final GuiInfo INSTANCE = new GuiInfo("Über dieses Programm", INFO);
|
||||||
|
|
||||||
private final String header;
|
private final String header;
|
||||||
private final String info;
|
private final String info;
|
||||||
|
|
||||||
|
private static void addLines(StringBuilder sb, boolean hax, String alternate, String category, String... authors) {
|
||||||
|
sb.append((hax ? TextColor.BLUE : TextColor.GRAY)
|
||||||
|
+ (hax ? alternate : category) + ":\n");
|
||||||
|
sb.append((hax ? TextColor.DVIOLET : TextColor.WHITE) + " ");
|
||||||
|
for(String author : authors) {
|
||||||
|
if(sb.length() > 0)
|
||||||
|
sb.append(", ");
|
||||||
|
sb.append(author);
|
||||||
|
}
|
||||||
|
sb.append("\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
private static String getCredits(boolean hax) {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append(" " + (hax ? TextColor.CYAN : TextColor.WHITE) + "=============================\n");
|
||||||
|
sb.append(" " + (hax ? TextColor.RED : TextColor.YELLOW) + (hax ? "Das Team -- TCQ" : "Mitwirkende") + "\n");
|
||||||
|
sb.append(" " + (hax ? TextColor.CYAN : TextColor.WHITE) + "=============================\n");
|
||||||
|
sb.append("\n");
|
||||||
|
addLines(sb, hax, "Absolut größter Lamer des Universums", "Ursprünglich erstellt von",
|
||||||
|
"Markus Persson");
|
||||||
|
addLines(sb, hax, "Crack und weitere Programmierung", "Spiel-Design, Programmierung und Grafiken",
|
||||||
|
"Jens Bergensten", "Nathan Adams", "Ryan Holtz", "Michael Stoyke");
|
||||||
|
addLines(sb, hax, "Ressourcen entschlüsselt von", "Programmierung",
|
||||||
|
"Erik Broes", "Paul Spooner", "Ryan Hitchman", "Elliot Segal");
|
||||||
|
addLines(sb, hax, "Cracktro, Grafiken und Intromusik", "Töne und Geräusche",
|
||||||
|
"Daniel Rosenfeld", "freesound.org");
|
||||||
|
addLines(sb, hax, "Packing und Verbreitung", "Management, Administration und Spaß",
|
||||||
|
"Carl Manneh", "Daniel Kaplan", "Lydia Winters");
|
||||||
|
addLines(sb, hax, "Server und Hosting", "Zahlen und Statistiken",
|
||||||
|
"Patrick Geuder");
|
||||||
|
addLines(sb, hax, "Weiterer Dank geht an", "Entwickler von Mo' Creatures (Pferde usw.)",
|
||||||
|
"John Olarte", "Kent Christian Jensen", "Dan Roque");
|
||||||
|
addLines(sb, hax, "Genutzte Exploits", "Weiterer Quellcode",
|
||||||
|
"Albert Pham - WorldEdit", "Joonas Vali - NameGenerator");
|
||||||
|
addLines(sb, hax, "Der dunkle Herrscher", "Mod erstellt von",
|
||||||
|
AUTHORS);
|
||||||
|
addLines(sb, hax, "Verwendete Programme und Tools", "Verwendete Technologien",
|
||||||
|
"Java 8 (Sun, Oracle)", "LWJGL 2", "JOrbis (JCraft)", "\"3D Sound System\" (Paul Lamb)");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
|
||||||
public GuiInfo(String header, String info) {
|
public GuiInfo(String header, String info) {
|
||||||
this.header = header;
|
this.header = header;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue