List<CelestialBody> children = this.getChildren(this.selectedParent);
for (int i = 0; i < children.size(); i++)
{
CelestialBody child = children.get(i);
int xOffset = 0;
if (child.equals(this.selectedBody))
{
xOffset += 4;
}
scale = (int) Math.min(95.0F, Math.max(0.0F, (this.ticksSinceMenuOpen * 25.0F) - 95 * i));
this.mc.renderEngine.bindTexture(GuiCelestialSelection.guiMain0);
if (child.getReachable())
{
GL11.glColor4f(0.0F, 0.6F, 0.0F, scale / 95.0F);
}
else
{
GL11.glColor4f(0.6F, 0.0F, 0.0F, scale / 95.0F);
}
this.drawTexturedModalRect(GuiCelestialSelection.BORDER_WIDTH + GuiCelestialSelection.BORDER_EDGE_WIDTH + 3 + xOffset, GuiCelestialSelection.BORDER_WIDTH + GuiCelestialSelection.BORDER_EDGE_WIDTH + 51 + i * 14, 86, 10, 0, 489, 86, 10, false, false);
GL11.glColor4f(0.0F, 0.6F, 1.0F, scale / 95.0F);
this.drawTexturedModalRect(GuiCelestialSelection.BORDER_WIDTH + GuiCelestialSelection.BORDER_EDGE_WIDTH + 2 + xOffset, GuiCelestialSelection.BORDER_WIDTH + GuiCelestialSelection.BORDER_EDGE_WIDTH + 50 + i * 14, 93, 12, 95, 464, 93, 12, false, false);
if (scale > 0)
{
str = child.getLocalizedName();
this.fontRendererObj.drawString(str, GuiCelestialSelection.BORDER_WIDTH + GuiCelestialSelection.BORDER_EDGE_WIDTH + 7 + xOffset, GuiCelestialSelection.BORDER_WIDTH + GuiCelestialSelection.BORDER_EDGE_WIDTH + 52 + i * 14, GCCoreUtil.to32BitColor(255, 255, 255, 255));
}
}
if (this.mapMode)