Adding database and soil localisation

This commit is contained in:
Nedelosk committed 2016-10-26 23:23:47 +02:00
1 parent 7e9a87f08b
commit a300bc0a11
13 files changed
+71 -33

No files matched your search

@@ -1,10 +1,13 @@
package binnie.craftgui.mod.database;
import binnie.Binnie;
import binnie.core.genetics.BreedingSystem;
import binnie.craftgui.controls.ControlTextCentered;
import binnie.craftgui.controls.page.ControlPage;
import binnie.craftgui.core.IWidget;
import binnie.craftgui.minecraft.Window;
import net.minecraft.util.text.TextFormatting;
import com.mojang.authlib.GameProfile;
public class PageBreeder extends ControlPage<DatabaseTab> {
@@ -22,15 +25,15 @@ public class PageBreeder extends ControlPage<DatabaseTab> {
}
final BreedingSystem system = ((WindowAbstractDatabase) Window.get(this)).getBreedingSystem();
final String descriptor = system.getDescriptor();
new ControlTextCentered(this, 8.0f, "§n" + system.getDescriptor() + " Profile§r");
new ControlTextCentered(this, 75.0f, "" + system.discoveredSpeciesCount + "/" + system.totalSpeciesCount + " Species");
new ControlTextCentered(this, 8.0f, TextFormatting.UNDERLINE + system.getDescriptor() + " " + Binnie.Language.localise("binniecore.gui.database.breeder.profile"));
new ControlTextCentered(this, 75.0f, "" + system.discoveredSpeciesCount + "/" + system.totalSpeciesCount + " " + Binnie.Language.localise("binniecore.gui.database.species"));
new ControlBreedingProgress(this, 20, 87, 102, 14, system, system.discoveredSpeciesPercentage);
new ControlTextCentered(this, 115.0f, "" + system.discoveredBranchCount + "/" + system.totalBranchCount + " Branches");
new ControlTextCentered(this, 115.0f, "" + system.discoveredBranchCount + "/" + system.totalBranchCount + " " + Binnie.Language.localise("binniecore.gui.database.breeder.branches"));
new ControlBreedingProgress(this, 20, 127, 102, 14, system, system.discoveredBranchPercentage);
if (system.discoveredSecretCount > 0) {
new ControlTextCentered(this, 155.0f, "" + system.discoveredSecretCount + "/" + system.totalSecretCount + " Secret Species");
new ControlTextCentered(this, 155.0f, "" + system.discoveredSecretCount + "/" + system.totalSecretCount + " " + Binnie.Language.localise("binniecore.gui.database.breeder.species.secret"));
}
new ControlTextCentered(this, 32.0f, this.player.getName());
new ControlTextCentered(this, 44.0f, "§o" + system.getEpitome() + "§r");
new ControlTextCentered(this, 44.0f, TextFormatting.ITALIC + system.getEpitome());
}
}