nameEntryField.setTextColor(16777215);
nameEntryField.setText(packet.baseName);
//Add buttons
teamButtons = new GuiButton[4];
teamButtons[0] = new GuiButton(0, width / 2 - 128 + 6, height / 2 - 94 + 38, 58, 20, "No Team");
teamButtons[1] = new GuiButton(1, width / 2 - 128 + 68, height / 2 - 94 + 38, 58, 20, "Spectator");
teamButtons[2] = new GuiButton(2, width / 2 - 128 + 130, height / 2 - 94 + 38, 58, 20, "Team 1");
teamButtons[3] = new GuiButton(3, width / 2 - 128 + 192, height / 2 - 94 + 38, 58, 20, "Team 2");
buttonList.addAll(Arrays.asList(teamButtons).subList(0, 4));
mapButtons = new GuiButton[5];
for(int i = 0; i < 5; i++)
{
mapButtons[i] = new GuiButton(4 + i, width / 2 - 128 + 28, height / 2 - 94 + 75 + 22 * i, 200, 20, "Map " + (i + 1));
buttonList.add(mapButtons[i]);
}
leftButton = new GuiButton(9, width / 2 - 128 + 6, height / 2 - 94 + 119, 20, 20, "<");
rightButton = new GuiButton(10, width / 2 + 128 - 26, height / 2 - 94 + 119, 20, 20, ">");
buttonList.add(leftButton);
buttonList.add(rightButton);
}