int screenWidth = player.getMainScreen().getWidth();
int screenHeight = player.getMainScreen().getHeight();
int x = (screenWidth / 2) - 200;
int y = (screenHeight / 2) - 65;
GenericPopup popup = new GenericPopup();
GenericContainer container = new GenericContainer();
GenericContainer layer1Skills = new GenericContainer();
GenericContainer layer2Skills = new GenericContainer();
GenericContainer layer3Skills = new GenericContainer();
GenericContainer layer4Skills = new GenericContainer();
GenericContainer layer1Arrows = new GenericContainer();
GenericContainer layer2Arrows = new GenericContainer();
GenericContainer layer3Arrows = new GenericContainer();
GenericTexture t1 = new GenericTexture("http://tossat.de/~mcbukkit/images/Arrow11.png");
t1.setWidth(16).setHeight(16).setMarginLeft(192).setFixed(true);
GenericTexture t2 = new GenericTexture("http://tossat.de/~mcbukkit/images/Arrow11.png");
t2.setWidth(16).setHeight(16).setMarginLeft(28).setFixed(true);
GenericTexture t3 = new GenericTexture("http://tossat.de/~mcbukkit/images/Arrow11.png");
t3.setWidth(16).setHeight(16).setMarginLeft(66).setFixed(true);
GenericTexture t4 = new GenericTexture("http://tossat.de/~mcbukkit/images/Arrow11.png");
t4.setWidth(16).setHeight(16).setMarginLeft(66).setFixed(true);
GenericTexture t5 = new GenericTexture("http://tossat.de/~mcbukkit/images/Arrow11.png");
t5.setWidth(16).setHeight(16).setMarginLeft(66).setFixed(true);
GenericTexture t6 = new GenericTexture("http://tossat.de/~mcbukkit/images/Arrow11.png");
t6.setWidth(16).setHeight(16).setMarginLeft(66).setFixed(true);
GenericTexture t7 = new GenericTexture("http://tossat.de/~mcbukkit/images/Arrow11.png");
t7.setWidth(16).setHeight(16).setMarginLeft(28).setFixed(true);
GenericTexture t8 = new GenericTexture("http://tossat.de/~mcbukkit/images/Arrow11.png");
t8.setWidth(16).setHeight(16).setMarginLeft(66).setFixed(true);
GenericTexture t9 = new GenericTexture("http://tossat.de/~mcbukkit/images/Arrow11.png");
t9.setWidth(16).setHeight(16).setMarginLeft(66).setFixed(true);
GenericTexture t10 = new GenericTexture("http://tossat.de/~mcbukkit/images/Arrow11.png");
t10.setWidth(16).setHeight(16).setMarginLeft(66).setFixed(true);
GenericTexture t11 = new GenericTexture("http://tossat.de/~mcbukkit/images/Arrow11.png");
t11.setWidth(16).setHeight(16).setMarginLeft(66).setFixed(true);
SkillButton b1 = new SkillButton("Durab 1", 400, 20, 0, 0, 5, ConflictPlugin.skillMineDurab, 1, null, 0,
player, "Werkzeuge nutzen sich 30% langsamer ab");
SkillButton b2 = new SkillButton("Durab 2", 400, 20, 0, 0, 5, ConflictPlugin.skillMineDurab, 2,
ConflictPlugin.skillMineDurab, 1, player, "Werkzeuge nutzen sich 50% langsamer ab");
SkillButton b3 = new SkillButton("Clay 1", 72, 20, 0, 0, 5, ConflictPlugin.skillMineClay, 1,
ConflictPlugin.skillMineDurab, 2, player, "50% Chance auf +1 Ressource beim Abbau");
SkillButton b4 = new SkillButton("Lapis 1", 72, 20, 10, 0, 5, ConflictPlugin.skillMineLapis, 1,
ConflictPlugin.skillMineDurab, 2, player, "50% Chance auf +1 Ressource beim Abbau");
SkillButton b5 = new SkillButton("Iron 1", 72, 20, 10, 0, 5, ConflictPlugin.skillMineIron, 1,
ConflictPlugin.skillMineDurab, 2, player, "50% Chance auf +1 Ressource beim Abbau");
SkillButton b6 = new SkillButton("Gold 1", 72, 20, 10, 0, 5, ConflictPlugin.skillMineGold, 1,
ConflictPlugin.skillMineDurab, 2, player, "50% Chance auf +1 Ressource beim Abbau");
SkillButton b7 = new SkillButton("Diam. 1", 72, 20, 10, 0, 10, ConflictPlugin.skillMineDiamond, 1,
ConflictPlugin.skillMineDurab, 2, player, "50% Chance auf +1 Ressource beim Abbau");
// SkillButton b8 = new SkillButton("Redstone 1", 80, 20, 340, 80, 5, ConflictPlugin.skillMineRedstone, 1, ConflictPlugin.skillMineDurab, 2, player);
SkillButton b8 = new SkillButton("Clay 2", 72, 20, 1, 0, 5, ConflictPlugin.skillMineClay, 2,
ConflictPlugin.skillMineClay, 1, player, "+1 Ressource beim Abbau");
SkillButton b9 = new SkillButton("Lapis 2", 72, 20, 10, 0, 5, ConflictPlugin.skillMineLapis, 2,
ConflictPlugin.skillMineLapis, 1, player, "+1 Ressource beim Abbau");
SkillButton b10 = new SkillButton("Iron 2", 72, 20, 10, 0, 5, ConflictPlugin.skillMineIron, 2,
ConflictPlugin.skillMineIron, 1, player, "+1 Ressource beim Abbau");
SkillButton b11 = new SkillButton("Gold 2", 72, 20, 10, 0, 5, ConflictPlugin.skillMineGold, 2,
ConflictPlugin.skillMineGold, 1, player, "+1 Ressource beim Abbau");
SkillButton b12 = new SkillButton("Diam. 2", 72, 20, 10, 0, 10, ConflictPlugin.skillMineDiamond, 2,
ConflictPlugin.skillMineDiamond, 1, player, "+1 Ressource beim Abbau");
container.addChildren(layer1Skills, layer1Arrows, layer2Skills, layer2Arrows, layer3Skills, layer3Arrows,
layer4Skills);
container.setX(x).setY(y);
container.setWidth(400).setHeight(175);
container.setAuto(false);
container.setLayout(ContainerType.VERTICAL);
layer1Arrows.addChildren(t1);
// layer1Arrows.setX(x).setY(y);
layer1Arrows.setWidth(400).setHeight(25);
layer1Arrows.setAuto(false);
layer1Arrows.setLayout(ContainerType.HORIZONTAL);
layer1Skills.addChildren(b1.button);
// layer1Skills.setX(x).setY(y);
layer1Skills.setWidth(400).setHeight(25);
layer1Skills.setLayout(ContainerType.HORIZONTAL);
layer1Skills.setAuto(false);
layer2Skills.addChildren(b2.button);
// layer2Skills.setX(x).setY(y);
layer2Skills.setWidth(400).setHeight(25);
layer2Skills.setLayout(ContainerType.HORIZONTAL);
layer2Skills.setAuto(false);
layer2Arrows.addChildren(t2, t3, t4, t5, t6);
// layer2Arrows.setX(x).setY(y);
layer2Arrows.setWidth(400).setHeight(25);
layer2Arrows.setAuto(false);
layer2Arrows.setLayout(ContainerType.HORIZONTAL);
layer3Skills.addChildren(b3.button, b4.button, b5.button, b6.button, b7.button);
// layer3Skills.setX(x).setY(y);
layer3Skills.setWidth(400).setHeight(25);
layer3Skills.setLayout(ContainerType.HORIZONTAL);
layer3Skills.setAuto(false);
layer3Arrows.addChildren(t7, t8, t9, t10, t11);
// layer2Arrows.setX(x).setY(y);
layer3Arrows.setWidth(400).setHeight(25);
layer3Arrows.setAuto(false);
layer3Arrows.setLayout(ContainerType.HORIZONTAL);
layer4Skills.addChildren(b8.button, b9.button, b10.button, b11.button, b12.button);
// layer3Skills.setX(x).setY(y);
layer4Skills.setWidth(400).setHeight(25);
layer4Skills.setLayout(ContainerType.HORIZONTAL);
layer4Skills.setAuto(false);
popup.attachWidget(plugin, container);
player.getMainScreen().attachPopupScreen(popup);
}