fontRenderer.getStringWidth(mod.getModName()) + 20);
StringTranslate translations = StringTranslate.getInstance();
int shiftx = 10;
int shifty = 40;
controlList.add(new GuiButton(0, shiftx, height - 30, fontRenderer
.getStringWidth("Back") + 8, 20, "Back"));
shiftx += fontRenderer.getStringWidth("Back") + 12;
controlList.add(new GuiButton(1, shiftx, height - 30, fontRenderer
.getStringWidth("Update Manager Forum Topic") + 8, 20,
"Update Manager Forum Topic"));
shiftx += fontRenderer.getStringWidth("Update Manager Forum Topic") + 12;
controlList.add(new GuiButton(2, shiftx, height - 30, fontRenderer
.getStringWidth("MotW") + 8, 20, "MotW"));
shiftx += fontRenderer.getStringWidth("MotW") + 12;
controlList.add(new GuiButton(3, shiftx, height - 30, fontRenderer
.getStringWidth("Settings") + 8, 20, "Settings"));
shiftx += fontRenderer.getStringWidth("Settings") + 12;
controlList.add(new GuiButton(4, width
- fontRenderer.getStringWidth("Website") - 12, shifty,
fontRenderer.getStringWidth("Website") + 8, 20, "Website"));
shifty += 22;
controlList.add(new GuiButton(5, width
- fontRenderer.getStringWidth("Changelog") - 12, shifty,
fontRenderer.getStringWidth("Changelog") + 8, 20, "Changelog"));
shifty += 22;
controlList.add(new GuiButton(6, width
- fontRenderer.getStringWidth("Download") - 12, shifty,
fontRenderer.getStringWidth("Download") + 8, 20, "Download"));
controlList.add(new GuiButton(7, shiftx, height - 30, fontRenderer
.getStringWidth("View Downloaded Mods") + 8, 20,
"View Downloaded Mods"));
for (int i = UpdateManager.online ? 4 : 1; i <= 6; i++)
((GuiButton) controlList.get(i)).enabled = i == 3;