labelCategoryLabel = new GenericLabel("Category");
content.attachWidget("Spoutcraft", labelCategoryLabel);
labels.add(labelCategoryLabel);
labelCategory = new GenericLabel("...");
labelCategory.setTextColor(new Color(0xffaaaaaa));
content.attachWidget("Spoutcraft", labelCategory);
labelMCVersionLabel = new GenericLabel("Minecraft Version");
content.attachWidget("Spoutcraft", labelMCVersionLabel);
labels.add(labelMCVersionLabel);
labelMCVersion = new GenericLabel("...");
labelMCVersion.setTextColor(new Color(0xffaaaaaa));
content.attachWidget("Spoutcraft", labelMCVersion);
labelAccessLabel = new GenericLabel("Access Type");
content.attachWidget("Spoutcraft", labelAccessLabel);
labels.add(labelAccessLabel);
String access = "Open";
switch(item.accessType) {
case ServerItem.WHITELIST:
access = "Whitelist";
break;
case ServerItem.GRAYLIST:
access = "Graylist";
break;
case ServerItem.BLACKLIST:
access = "Blacklist";
break;
}
labelAccess = new GenericLabel(access);
labelAccess.setTextColor(new Color(0xffaaaaaa));
content.attachWidget("Spoutcraft", labelAccess);
labelAddress = new GenericLabel(item.getIp() + (item.getPort() != ServerItem.DEFAULT_PORT ? item.getPort() : ""));
labelAddress.setTextColor(new Color(0xffaaaaaa));
content.attachWidget("Spoutcraft", labelAddress);
labelAddressLabel = new GenericLabel("Address");
content.attachWidget("Spoutcraft", labelAddressLabel);
labels.add(labelAddressLabel);
labelMotd = new GenericLabel(item.getMotd());
content.attachWidget("Spoutcraft", labelMotd);
labelMotd.setTextColor(new Color(0xffaaaaaa));
labelMotdLabel = new GenericLabel("MOTD");
content.attachWidget("Spoutcraft", labelMotdLabel);
labels.add(labelMotdLabel);
labelDescription = new GenericLabel("...");
content.attachWidget("Spoutcraft", labelDescription);
labelDescription.setTextColor(new Color(0xffaaaaaa));
labelDescription.setWrapLines(true);
labelPlayersLabel = new GenericLabel("Players");
content.attachWidget("Spoutcraft", labelPlayersLabel);
labels.add(labelPlayersLabel);
labelPlayers = new GenericLabel();
labelPlayers.setTextColor(new Color(0xffaaaaaa));
content.attachWidget("Spoutcraft", labelPlayers);
linkForum = new LinkButton("Go to Forum", "");
getScreen().attachWidget("Spoutcraft", linkForum);
linkSite = new LinkButton("Go to Website", "");
getScreen().attachWidget("Spoutcraft", linkSite);
labelSpoutcraftLabel = new GenericLabel("Spoutcraft");
content.attachWidget("Spoutcraft", labelSpoutcraftLabel);
labels.add(labelSpoutcraftLabel);
labelSpoutcraft = new GenericLabel("...");
labelSpoutcraft.setTextColor(new Color(0xffaaaaaa));
content.attachWidget("Spoutcraft", labelSpoutcraft);
textureIcon = new GenericTexture("http://cdn.spout.org/server/thumb/" + item.getDatabaseId() + ".png");
textureIcon.setFinishDelegate(new ImageUpdate());
textureIcon.setWidth(48).setHeight(48);
content.attachWidget("Spoutcraft", textureIcon);