@Override
 public void applyStyle(final ElementMap item, final DocumentParser doc, final Widget widget) {
   this.doc = doc;
   this.elementMaps.push(item);
   final ElementMap elementMap = this.elementMaps.peek();
   final DecoratorAppearance appearance = widget.getAppearance();
   appearance.setElementMap(elementMap);
   ((TextWidgetAppearance) appearance).setAlignment(Alignment9.CENTER);
   widget.addBasicElement(appearance);
   appearance.onAttributesInitialized();
   final FontElement checkOut = FontElement.checkOut();
   checkOut.setRenderer(Xulor.getInstance().getDocumentParser().getFont("defaultFontBordered30"));
   checkOut.setElementMap(elementMap);
   appearance.addBasicElement(checkOut);
   checkOut.onAttributesInitialized();
   checkOut.onChildrenAdded();
   final String id = "defaultLightColor";
   final ColorElement checkOut2 = ColorElement.checkOut();
   checkOut2.setElementMap(elementMap);
   if (elementMap != null && id != null) {
     elementMap.add(id, checkOut2);
   }
   checkOut2.setColor(new Color(1.0f, 1.0f, 1.0f, 1.0f));
   appearance.addBasicElement(checkOut2);
   checkOut2.onAttributesInitialized();
   checkOut2.onChildrenAdded();
   appearance.onChildrenAdded();
 }
 @Override
 public void applyStyle(final ElementMap item, final DocumentParser doc, final Widget widget) {
   this.doc = doc;
   this.elementMaps.push(item);
   final ElementMap elementMap = this.elementMaps.peek();
   final DecoratorAppearance appearance = widget.getAppearance();
   appearance.setElementMap(elementMap);
   ((ImageAppearance) appearance).setScaled(false);
   widget.addBasicElement(appearance);
   appearance.onAttributesInitialized();
   final String id = "pmLeftHandCell";
   final PixmapElement checkOut = PixmapElement.checkOut();
   checkOut.setElementMap(elementMap);
   if (elementMap != null && id != null) {
     elementMap.add(id, checkOut);
   }
   checkOut.setHeight(31);
   checkOut.setPosition(Alignment17.CENTER);
   checkOut.setTexture(this.doc.getTexture("default_1.tga"));
   checkOut.setWidth(31);
   checkOut.setX(412);
   checkOut.setY(480);
   appearance.addBasicElement(checkOut);
   checkOut.onAttributesInitialized();
   checkOut.onChildrenAdded();
   appearance.onChildrenAdded();
 }
 @Override
 public void applyStyle(final ElementMap item, final DocumentParser doc, final Widget widget) {
   this.doc = doc;
   this.elementMaps.push(item);
   final ElementMap elementMap = this.elementMaps.peek();
   final DecoratorAppearance appearance = widget.getAppearance();
   appearance.setElementMap(elementMap);
   widget.addBasicElement(appearance);
   appearance.onAttributesInitialized();
   final String id = "challengeZoneRightBackground";
   final PixmapBackground checkOut = PixmapBackground.checkOut();
   checkOut.setElementMap(elementMap);
   if (elementMap != null && id != null) {
     elementMap.add(id, checkOut);
   }
   checkOut.setScaled(true);
   appearance.addBasicElement(checkOut);
   checkOut.onAttributesInitialized();
   final PixmapElement checkOut2 = PixmapElement.checkOut();
   checkOut2.setElementMap(elementMap);
   checkOut2.setHeight(56);
   checkOut2.setPosition(Alignment17.NORTH_WEST);
   checkOut2.setWidth(0);
   checkOut2.setX(969);
   checkOut2.setY(1483);
   checkOut.addBasicElement(checkOut2);
   checkOut2.onAttributesInitialized();
   checkOut2.onChildrenAdded();
   final PixmapElement checkOut3 = PixmapElement.checkOut();
   checkOut3.setElementMap(elementMap);
   checkOut3.setHeight(56);
   checkOut3.setPosition(Alignment17.NORTH);
   checkOut3.setTexture(this.doc.getTexture("default_0.tga"));
   checkOut3.setWidth(1);
   checkOut3.setX(1019);
   checkOut3.setY(880);
   checkOut.addBasicElement(checkOut3);
   checkOut3.onAttributesInitialized();
   checkOut3.onChildrenAdded();
   final PixmapElement checkOut4 = PixmapElement.checkOut();
   checkOut4.setElementMap(elementMap);
   checkOut4.setHeight(56);
   checkOut4.setPosition(Alignment17.NORTH_EAST);
   checkOut4.setTexture(this.doc.getTexture("default_0.tga"));
   checkOut4.setWidth(19);
   checkOut4.setX(943);
   checkOut4.setY(876);
   checkOut.addBasicElement(checkOut4);
   checkOut4.onAttributesInitialized();
   checkOut4.onChildrenAdded();
   final PixmapElement checkOut5 = PixmapElement.checkOut();
   checkOut5.setElementMap(elementMap);
   checkOut5.setHeight(0);
   checkOut5.setPosition(Alignment17.WEST);
   checkOut5.setWidth(0);
   checkOut5.setX(6);
   checkOut5.setY(811);
   checkOut.addBasicElement(checkOut5);
   checkOut5.onAttributesInitialized();
   checkOut5.onChildrenAdded();
   final PixmapElement checkOut6 = PixmapElement.checkOut();
   checkOut6.setElementMap(elementMap);
   checkOut6.setHeight(0);
   checkOut6.setPosition(Alignment17.CENTER);
   checkOut6.setWidth(0);
   checkOut6.setX(14);
   checkOut6.setY(811);
   checkOut.addBasicElement(checkOut6);
   checkOut6.onAttributesInitialized();
   checkOut6.onChildrenAdded();
   final PixmapElement checkOut7 = PixmapElement.checkOut();
   checkOut7.setElementMap(elementMap);
   checkOut7.setHeight(0);
   checkOut7.setPosition(Alignment17.EAST);
   checkOut7.setWidth(19);
   checkOut7.setX(19);
   checkOut7.setY(811);
   checkOut.addBasicElement(checkOut7);
   checkOut7.onAttributesInitialized();
   checkOut7.onChildrenAdded();
   final PixmapElement checkOut8 = PixmapElement.checkOut();
   checkOut8.setElementMap(elementMap);
   checkOut8.setHeight(0);
   checkOut8.setPosition(Alignment17.SOUTH_WEST);
   checkOut8.setWidth(0);
   checkOut8.setX(6);
   checkOut8.setY(816);
   checkOut.addBasicElement(checkOut8);
   checkOut8.onAttributesInitialized();
   checkOut8.onChildrenAdded();
   final PixmapElement checkOut9 = PixmapElement.checkOut();
   checkOut9.setElementMap(elementMap);
   checkOut9.setHeight(0);
   checkOut9.setPosition(Alignment17.SOUTH);
   checkOut9.setWidth(0);
   checkOut9.setX(14);
   checkOut9.setY(816);
   checkOut.addBasicElement(checkOut9);
   checkOut9.onAttributesInitialized();
   checkOut9.onChildrenAdded();
   final PixmapElement checkOut10 = PixmapElement.checkOut();
   checkOut10.setElementMap(elementMap);
   checkOut10.setHeight(0);
   checkOut10.setPosition(Alignment17.SOUTH_EAST);
   checkOut10.setWidth(19);
   checkOut10.setX(19);
   checkOut10.setY(816);
   checkOut.addBasicElement(checkOut10);
   checkOut10.onAttributesInitialized();
   checkOut10.onChildrenAdded();
   checkOut.onChildrenAdded();
   appearance.onChildrenAdded();
 }
 @Override
 public BasicElement getElement(final Environment env, final ElementMap item) {
   this.env = env;
   this.elementMaps.push(item);
   final ElementMap elementMap = this.elementMaps.peek();
   final String id = "popup";
   final PopupElement element = new PopupElement();
   element.onCheckOut();
   element.setElementMap(elementMap);
   if (elementMap != null && id != null) {
     elementMap.add(id, element);
   }
   element.setAlign(Alignment9.NORTH_EAST);
   element.setHotSpotPosition(Alignment9.SOUTH_WEST);
   element.setHideOnClick(false);
   element.onAttributesInitialized();
   final StaticLayoutData element2 = new StaticLayoutData();
   element2.onCheckOut();
   element2.setElementMap(elementMap);
   element2.setSize(new Dimension(-2, -2));
   element.addBasicElement(element2);
   element2.onAttributesInitialized();
   element2.onChildrenAdded();
   final Container checkOut = Container.checkOut();
   checkOut.setElementMap(elementMap);
   element.addBasicElement(checkOut);
   checkOut.onAttributesInitialized();
   final StaticLayout element3 = new StaticLayout();
   element3.onCheckOut();
   element3.setAdaptToContentSize(true);
   checkOut.addBasicElement(element3);
   element3.onAttributesInitialized();
   element3.onChildrenAdded();
   final String id2 = "container";
   final Container checkOut2 = Container.checkOut();
   checkOut2.setElementMap(elementMap);
   if (elementMap != null && id2 != null) {
     elementMap.add(id2, checkOut2);
   }
   checkOut2.setStyle("chatBubble");
   checkOut.addBasicElement(checkOut2);
   checkOut2.onAttributesInitialized();
   final StaticLayoutData element4 = new StaticLayoutData();
   element4.onCheckOut();
   element4.setElementMap(elementMap);
   element4.setSize(new Dimension(100.0f, 100.0f));
   checkOut2.addBasicElement(element4);
   element4.onAttributesInitialized();
   element4.onChildrenAdded();
   final DecoratorAppearance appearance = checkOut2.getAppearance();
   appearance.setElementMap(elementMap);
   checkOut2.addBasicElement(appearance);
   appearance.onAttributesInitialized();
   final Margin checkOut3 = Margin.checkOut();
   checkOut3.setElementMap(elementMap);
   checkOut3.setInsets(new Insets(0, 0, 15, 0));
   appearance.addBasicElement(checkOut3);
   checkOut3.onAttributesInitialized();
   checkOut3.onChildrenAdded();
   final Padding element5 = new Padding();
   element5.onCheckOut();
   element5.setElementMap(elementMap);
   element5.setInsets(new Insets(10, 15, 10, 15));
   appearance.addBasicElement(element5);
   element5.onAttributesInitialized();
   element5.onChildrenAdded();
   appearance.onChildrenAdded();
   final TextView element6 = new TextView();
   element6.onCheckOut();
   element6.setElementMap(elementMap);
   element6.setStyle("smallboldMap");
   element6.setMinWidth(1);
   element6.setMaxWidth(200);
   checkOut2.addBasicElement(element6);
   element6.onAttributesInitialized();
   final PropertyElement checkOut4 = PropertyElement.checkOut();
   checkOut4.setElementMap(elementMap);
   checkOut4.setName("mapPopupDescription");
   checkOut4.setAttribute("text");
   element6.addBasicElement(checkOut4);
   checkOut4.onAttributesInitialized();
   checkOut4.onChildrenAdded();
   final PropertyElement checkOut5 = PropertyElement.checkOut();
   checkOut5.setElementMap(elementMap);
   checkOut5.setName("mapPopupIsEditing");
   checkOut5.setAttribute("visible");
   element6.addBasicElement(checkOut5);
   checkOut5.onAttributesInitialized();
   final ConditionResult element7 = new ConditionResult();
   element7.onCheckOut();
   element7.setElementMap(elementMap);
   checkOut5.addBasicElement(element7);
   element7.onAttributesInitialized();
   final FalseCondition element8 = new FalseCondition();
   element8.onCheckOut();
   element8.setElementMap(elementMap);
   element7.addBasicElement(element8);
   element8.onAttributesInitialized();
   element8.onChildrenAdded();
   element7.onChildrenAdded();
   checkOut5.onChildrenAdded();
   element6.onChildrenAdded();
   final String id3 = "textEditor";
   final TextEditor textEditor = new TextEditor();
   textEditor.onCheckOut();
   textEditor.setElementMap(elementMap);
   if (elementMap != null && id3 != null) {
     elementMap.add(id3, textEditor);
   }
   textEditor.setStyle("withoutBorder");
   textEditor.setMaxChars(200);
   textEditor.setMinWidth(200);
   textEditor.setMaxWidth(200);
   final KeyTypedListener onKeyType = new KeyTypedListener();
   onKeyType.setCallBackFunc("wakfu.map:onTextEditorChange");
   textEditor.setOnKeyType(onKeyType);
   final KeyPressedListener onKeyPress = new KeyPressedListener();
   onKeyPress.setCallBackFunc("wakfu.map:onTextEditorKeyPress");
   textEditor.setOnKeyPress(onKeyPress);
   textEditor.setFocusable(true);
   textEditor.setSelectOnFocus(true);
   checkOut2.addBasicElement(textEditor);
   textEditor.onAttributesInitialized();
   final PropertyElement checkOut6 = PropertyElement.checkOut();
   checkOut6.setElementMap(elementMap);
   checkOut6.setName("mapPopupDescription");
   checkOut6.setAttribute("text");
   textEditor.addBasicElement(checkOut6);
   checkOut6.onAttributesInitialized();
   checkOut6.onChildrenAdded();
   final PropertyElement checkOut7 = PropertyElement.checkOut();
   checkOut7.setElementMap(elementMap);
   checkOut7.setName("mapPopupIsEditing");
   checkOut7.setAttribute("visible");
   textEditor.addBasicElement(checkOut7);
   checkOut7.onAttributesInitialized();
   checkOut7.onChildrenAdded();
   final PropertyElement checkOut8 = PropertyElement.checkOut();
   checkOut8.setElementMap(elementMap);
   checkOut8.setName("mapPopupIsEditing");
   checkOut8.setAttribute("focused");
   textEditor.addBasicElement(checkOut8);
   checkOut8.onAttributesInitialized();
   checkOut8.onChildrenAdded();
   textEditor.onChildrenAdded();
   final String id4 = "valid";
   final Button button = new Button();
   button.onCheckOut();
   button.setElementMap(elementMap);
   if (elementMap != null && id4 != null) {
     elementMap.add(id4, button);
   }
   button.setStyle("smallValid");
   final MouseClickedListener onClick = new MouseClickedListener();
   onClick.setCallBackFunc("wakfu.map:applyNote");
   button.setOnClick(onClick);
   checkOut2.addBasicElement(button);
   button.onAttributesInitialized();
   final PropertyElement checkOut9 = PropertyElement.checkOut();
   checkOut9.setElementMap(elementMap);
   checkOut9.setName("mapPopupIsEditing");
   checkOut9.setAttribute("visible");
   button.addBasicElement(checkOut9);
   checkOut9.onAttributesInitialized();
   checkOut9.onChildrenAdded();
   button.onChildrenAdded();
   checkOut2.onChildrenAdded();
   final String id5 = "image";
   final Image image = new Image();
   image.onCheckOut();
   image.setElementMap(elementMap);
   if (elementMap != null && id5 != null) {
     elementMap.add(id5, image);
   }
   image.setStyle("BubbleArrowLeft");
   image.setNonBlocking(true);
   checkOut.addBasicElement(image);
   image.onAttributesInitialized();
   final StaticLayoutData element9 = new StaticLayoutData();
   element9.onCheckOut();
   element9.setElementMap(elementMap);
   element9.setAlign(Alignment17.SOUTH_WEST);
   element9.setSize(new Dimension(-2, -2));
   image.addBasicElement(element9);
   element9.onAttributesInitialized();
   element9.onChildrenAdded();
   image.onChildrenAdded();
   checkOut.onChildrenAdded();
   element.onChildrenAdded();
   return element;
 }
 @Override
 public void applyStyle(final ElementMap item, final DocumentParser doc, final Widget widget) {
   this.doc = doc;
   this.elementMaps.push(item);
   final ElementMap elementMap = this.elementMaps.peek();
   final DecoratorAppearance appearance = widget.getAppearance();
   appearance.setElementMap(elementMap);
   ((TextWidgetAppearance) appearance).setAlign(Alignment9.CENTER);
   appearance.setState("default");
   widget.addBasicElement(appearance);
   appearance.onAttributesInitialized();
   final Padding element = new Padding();
   element.onCheckOut();
   element.setElementMap(elementMap);
   element.setInsets(new Insets(2, 5, 2, 5));
   appearance.addBasicElement(element);
   element.onAttributesInitialized();
   element.onChildrenAdded();
   final FontElement checkOut = FontElement.checkOut();
   checkOut.setRenderer(Xulor.getInstance().getDocumentParser().getFont("defaultBoldFont"));
   checkOut.setElementMap(elementMap);
   appearance.addBasicElement(checkOut);
   checkOut.onAttributesInitialized();
   checkOut.onChildrenAdded();
   final String id = "blackColor";
   final ColorElement checkOut2 = ColorElement.checkOut();
   checkOut2.setElementMap(elementMap);
   if (elementMap != null && id != null) {
     elementMap.add(id, checkOut2);
   }
   checkOut2.setColor(new Color(0.0f, 0.0f, 0.0f, 1.0f));
   appearance.addBasicElement(checkOut2);
   checkOut2.onAttributesInitialized();
   checkOut2.onChildrenAdded();
   final String id2 = "buttonYellowBackgroundFullDefault";
   final PixmapBackground checkOut3 = PixmapBackground.checkOut();
   checkOut3.setElementMap(elementMap);
   if (elementMap != null && id2 != null) {
     elementMap.add(id2, checkOut3);
   }
   checkOut3.setScaled(true);
   appearance.addBasicElement(checkOut3);
   checkOut3.onAttributesInitialized();
   final PixmapElement checkOut4 = PixmapElement.checkOut();
   checkOut4.setElementMap(elementMap);
   checkOut4.setHeight(9);
   checkOut4.setPosition(Alignment17.NORTH_WEST);
   checkOut4.setTexture(this.doc.getTexture("default_1.tga"));
   checkOut4.setWidth(9);
   checkOut4.setX(857);
   checkOut4.setY(140);
   checkOut3.addBasicElement(checkOut4);
   checkOut4.onAttributesInitialized();
   checkOut4.onChildrenAdded();
   final PixmapElement checkOut5 = PixmapElement.checkOut();
   checkOut5.setElementMap(elementMap);
   checkOut5.setHeight(9);
   checkOut5.setPosition(Alignment17.NORTH);
   checkOut5.setTexture(this.doc.getTexture("default_1.tga"));
   checkOut5.setWidth(1);
   checkOut5.setX(1020);
   checkOut5.setY(559);
   checkOut3.addBasicElement(checkOut5);
   checkOut5.onAttributesInitialized();
   checkOut5.onChildrenAdded();
   final PixmapElement checkOut6 = PixmapElement.checkOut();
   checkOut6.setElementMap(elementMap);
   checkOut6.setFlipHorizontaly(true);
   checkOut6.setHeight(9);
   checkOut6.setPosition(Alignment17.NORTH_EAST);
   checkOut6.setTexture(this.doc.getTexture("default_1.tga"));
   checkOut6.setWidth(9);
   checkOut6.setX(857);
   checkOut6.setY(140);
   checkOut3.addBasicElement(checkOut6);
   checkOut6.onAttributesInitialized();
   checkOut6.onChildrenAdded();
   final PixmapElement checkOut7 = PixmapElement.checkOut();
   checkOut7.setElementMap(elementMap);
   checkOut7.setHeight(7);
   checkOut7.setPosition(Alignment17.WEST);
   checkOut7.setTexture(this.doc.getTexture("default_1.tga"));
   checkOut7.setWidth(9);
   checkOut7.setX(188);
   checkOut7.setY(140);
   checkOut3.addBasicElement(checkOut7);
   checkOut7.onAttributesInitialized();
   checkOut7.onChildrenAdded();
   final PixmapElement checkOut8 = PixmapElement.checkOut();
   checkOut8.setElementMap(elementMap);
   checkOut8.setHeight(7);
   checkOut8.setPosition(Alignment17.CENTER);
   checkOut8.setTexture(this.doc.getTexture("default_1.tga"));
   checkOut8.setWidth(1);
   checkOut8.setX(1018);
   checkOut8.setY(462);
   checkOut3.addBasicElement(checkOut8);
   checkOut8.onAttributesInitialized();
   checkOut8.onChildrenAdded();
   final PixmapElement checkOut9 = PixmapElement.checkOut();
   checkOut9.setElementMap(elementMap);
   checkOut9.setFlipHorizontaly(true);
   checkOut9.setHeight(7);
   checkOut9.setPosition(Alignment17.EAST);
   checkOut9.setTexture(this.doc.getTexture("default_1.tga"));
   checkOut9.setWidth(9);
   checkOut9.setX(188);
   checkOut9.setY(140);
   checkOut3.addBasicElement(checkOut9);
   checkOut9.onAttributesInitialized();
   checkOut9.onChildrenAdded();
   final PixmapElement checkOut10 = PixmapElement.checkOut();
   checkOut10.setElementMap(elementMap);
   checkOut10.setHeight(9);
   checkOut10.setPosition(Alignment17.SOUTH_WEST);
   checkOut10.setTexture(this.doc.getTexture("default_1.tga"));
   checkOut10.setWidth(9);
   checkOut10.setX(1000);
   checkOut10.setY(140);
   checkOut3.addBasicElement(checkOut10);
   checkOut10.onAttributesInitialized();
   checkOut10.onChildrenAdded();
   final PixmapElement checkOut11 = PixmapElement.checkOut();
   checkOut11.setElementMap(elementMap);
   checkOut11.setHeight(9);
   checkOut11.setPosition(Alignment17.SOUTH);
   checkOut11.setTexture(this.doc.getTexture("default_1.tga"));
   checkOut11.setWidth(1);
   checkOut11.setX(179);
   checkOut11.setY(941);
   checkOut3.addBasicElement(checkOut11);
   checkOut11.onAttributesInitialized();
   checkOut11.onChildrenAdded();
   final PixmapElement checkOut12 = PixmapElement.checkOut();
   checkOut12.setElementMap(elementMap);
   checkOut12.setFlipHorizontaly(true);
   checkOut12.setHeight(9);
   checkOut12.setPosition(Alignment17.SOUTH_EAST);
   checkOut12.setTexture(this.doc.getTexture("default_1.tga"));
   checkOut12.setWidth(9);
   checkOut12.setX(1000);
   checkOut12.setY(140);
   checkOut3.addBasicElement(checkOut12);
   checkOut12.onAttributesInitialized();
   checkOut12.onChildrenAdded();
   checkOut3.onChildrenAdded();
   appearance.onChildrenAdded();
   final DecoratorAppearance appearance2 = widget.getAppearance();
   appearance2.setElementMap(elementMap);
   ((TextWidgetAppearance) appearance2).setAlign(Alignment9.CENTER);
   appearance2.setState("mouseHover");
   widget.addBasicElement(appearance2);
   appearance2.onAttributesInitialized();
   final String id3 = "blackColor";
   final ColorElement checkOut13 = ColorElement.checkOut();
   checkOut13.setElementMap(elementMap);
   if (elementMap != null && id3 != null) {
     elementMap.add(id3, checkOut13);
   }
   checkOut13.setColor(new Color(0.0f, 0.0f, 0.0f, 1.0f));
   appearance2.addBasicElement(checkOut13);
   checkOut13.onAttributesInitialized();
   checkOut13.onChildrenAdded();
   final String id4 = "buttonYellowBackgroundFullOver";
   final PixmapBackground checkOut14 = PixmapBackground.checkOut();
   checkOut14.setElementMap(elementMap);
   if (elementMap != null && id4 != null) {
     elementMap.add(id4, checkOut14);
   }
   checkOut14.setEnabled(false);
   checkOut14.setScaled(true);
   appearance2.addBasicElement(checkOut14);
   checkOut14.onAttributesInitialized();
   final PixmapElement checkOut15 = PixmapElement.checkOut();
   checkOut15.setElementMap(elementMap);
   checkOut15.setHeight(9);
   checkOut15.setPosition(Alignment17.NORTH_WEST);
   checkOut15.setTexture(this.doc.getTexture("default_1.tga"));
   checkOut15.setWidth(9);
   checkOut15.setX(972);
   checkOut15.setY(141);
   checkOut14.addBasicElement(checkOut15);
   checkOut15.onAttributesInitialized();
   checkOut15.onChildrenAdded();
   final PixmapElement checkOut16 = PixmapElement.checkOut();
   checkOut16.setElementMap(elementMap);
   checkOut16.setHeight(9);
   checkOut16.setPosition(Alignment17.NORTH);
   checkOut16.setTexture(this.doc.getTexture("default_1.tga"));
   checkOut16.setWidth(1);
   checkOut16.setX(179);
   checkOut16.setY(575);
   checkOut14.addBasicElement(checkOut16);
   checkOut16.onAttributesInitialized();
   checkOut16.onChildrenAdded();
   final PixmapElement checkOut17 = PixmapElement.checkOut();
   checkOut17.setElementMap(elementMap);
   checkOut17.setFlipHorizontaly(true);
   checkOut17.setHeight(9);
   checkOut17.setPosition(Alignment17.NORTH_EAST);
   checkOut17.setTexture(this.doc.getTexture("default_1.tga"));
   checkOut17.setWidth(9);
   checkOut17.setX(972);
   checkOut17.setY(141);
   checkOut14.addBasicElement(checkOut17);
   checkOut17.onAttributesInitialized();
   checkOut17.onChildrenAdded();
   final PixmapElement checkOut18 = PixmapElement.checkOut();
   checkOut18.setElementMap(elementMap);
   checkOut18.setHeight(7);
   checkOut18.setPosition(Alignment17.WEST);
   checkOut18.setTexture(this.doc.getTexture("default_1.tga"));
   checkOut18.setWidth(9);
   checkOut18.setX(478);
   checkOut18.setY(140);
   checkOut14.addBasicElement(checkOut18);
   checkOut18.onAttributesInitialized();
   checkOut18.onChildrenAdded();
   final PixmapElement checkOut19 = PixmapElement.checkOut();
   checkOut19.setElementMap(elementMap);
   checkOut19.setHeight(7);
   checkOut19.setPosition(Alignment17.CENTER);
   checkOut19.setTexture(this.doc.getTexture("default_1.tga"));
   checkOut19.setWidth(1);
   checkOut19.setX(1018);
   checkOut19.setY(432);
   checkOut14.addBasicElement(checkOut19);
   checkOut19.onAttributesInitialized();
   checkOut19.onChildrenAdded();
   final PixmapElement checkOut20 = PixmapElement.checkOut();
   checkOut20.setElementMap(elementMap);
   checkOut20.setFlipHorizontaly(true);
   checkOut20.setHeight(7);
   checkOut20.setPosition(Alignment17.EAST);
   checkOut20.setTexture(this.doc.getTexture("default_1.tga"));
   checkOut20.setWidth(9);
   checkOut20.setX(478);
   checkOut20.setY(140);
   checkOut14.addBasicElement(checkOut20);
   checkOut20.onAttributesInitialized();
   checkOut20.onChildrenAdded();
   final PixmapElement checkOut21 = PixmapElement.checkOut();
   checkOut21.setElementMap(elementMap);
   checkOut21.setHeight(9);
   checkOut21.setPosition(Alignment17.SOUTH_WEST);
   checkOut21.setTexture(this.doc.getTexture("default_1.tga"));
   checkOut21.setWidth(9);
   checkOut21.setX(943);
   checkOut21.setY(141);
   checkOut14.addBasicElement(checkOut21);
   checkOut21.onAttributesInitialized();
   checkOut21.onChildrenAdded();
   final PixmapElement checkOut22 = PixmapElement.checkOut();
   checkOut22.setElementMap(elementMap);
   checkOut22.setHeight(9);
   checkOut22.setPosition(Alignment17.SOUTH);
   checkOut22.setTexture(this.doc.getTexture("default_1.tga"));
   checkOut22.setWidth(1);
   checkOut22.setX(608);
   checkOut22.setY(562);
   checkOut14.addBasicElement(checkOut22);
   checkOut22.onAttributesInitialized();
   checkOut22.onChildrenAdded();
   final PixmapElement checkOut23 = PixmapElement.checkOut();
   checkOut23.setElementMap(elementMap);
   checkOut23.setFlipHorizontaly(true);
   checkOut23.setHeight(9);
   checkOut23.setPosition(Alignment17.SOUTH_EAST);
   checkOut23.setTexture(this.doc.getTexture("default_1.tga"));
   checkOut23.setWidth(9);
   checkOut23.setX(943);
   checkOut23.setY(141);
   checkOut14.addBasicElement(checkOut23);
   checkOut23.onAttributesInitialized();
   checkOut23.onChildrenAdded();
   checkOut14.onChildrenAdded();
   appearance2.onChildrenAdded();
   final DecoratorAppearance appearance3 = widget.getAppearance();
   appearance3.setElementMap(elementMap);
   ((TextWidgetAppearance) appearance3).setAlign(Alignment9.CENTER);
   appearance3.setState("pressed");
   widget.addBasicElement(appearance3);
   appearance3.onAttributesInitialized();
   final String id5 = "blackColor";
   final ColorElement checkOut24 = ColorElement.checkOut();
   checkOut24.setElementMap(elementMap);
   if (elementMap != null && id5 != null) {
     elementMap.add(id5, checkOut24);
   }
   checkOut24.setColor(new Color(0.0f, 0.0f, 0.0f, 1.0f));
   appearance3.addBasicElement(checkOut24);
   checkOut24.onAttributesInitialized();
   checkOut24.onChildrenAdded();
   final String id6 = "buttonYellowBackgroundFullPressed";
   final PixmapBackground checkOut25 = PixmapBackground.checkOut();
   checkOut25.setElementMap(elementMap);
   if (elementMap != null && id6 != null) {
     elementMap.add(id6, checkOut25);
   }
   checkOut25.setEnabled(false);
   checkOut25.setScaled(true);
   appearance3.addBasicElement(checkOut25);
   checkOut25.onAttributesInitialized();
   final PixmapElement checkOut26 = PixmapElement.checkOut();
   checkOut26.setElementMap(elementMap);
   checkOut26.setHeight(9);
   checkOut26.setPosition(Alignment17.NORTH_WEST);
   checkOut26.setTexture(this.doc.getTexture("default_1.tga"));
   checkOut26.setWidth(9);
   checkOut26.setX(65);
   checkOut26.setY(140);
   checkOut25.addBasicElement(checkOut26);
   checkOut26.onAttributesInitialized();
   checkOut26.onChildrenAdded();
   final PixmapElement checkOut27 = PixmapElement.checkOut();
   checkOut27.setElementMap(elementMap);
   checkOut27.setHeight(9);
   checkOut27.setPosition(Alignment17.NORTH);
   checkOut27.setTexture(this.doc.getTexture("default_1.tga"));
   checkOut27.setWidth(1);
   checkOut27.setX(608);
   checkOut27.setY(574);
   checkOut25.addBasicElement(checkOut27);
   checkOut27.onAttributesInitialized();
   checkOut27.onChildrenAdded();
   final PixmapElement checkOut28 = PixmapElement.checkOut();
   checkOut28.setElementMap(elementMap);
   checkOut28.setFlipHorizontaly(true);
   checkOut28.setHeight(9);
   checkOut28.setPosition(Alignment17.NORTH_EAST);
   checkOut28.setTexture(this.doc.getTexture("default_1.tga"));
   checkOut28.setWidth(9);
   checkOut28.setX(65);
   checkOut28.setY(140);
   checkOut25.addBasicElement(checkOut28);
   checkOut28.onAttributesInitialized();
   checkOut28.onChildrenAdded();
   final PixmapElement checkOut29 = PixmapElement.checkOut();
   checkOut29.setElementMap(elementMap);
   checkOut29.setHeight(7);
   checkOut29.setPosition(Alignment17.WEST);
   checkOut29.setTexture(this.doc.getTexture("default_1.tga"));
   checkOut29.setWidth(9);
   checkOut29.setX(130);
   checkOut29.setY(549);
   checkOut25.addBasicElement(checkOut29);
   checkOut29.onAttributesInitialized();
   checkOut29.onChildrenAdded();
   final PixmapElement checkOut30 = PixmapElement.checkOut();
   checkOut30.setElementMap(elementMap);
   checkOut30.setHeight(7);
   checkOut30.setPosition(Alignment17.CENTER);
   checkOut30.setTexture(this.doc.getTexture("default_1.tga"));
   checkOut30.setWidth(1);
   checkOut30.setX(446);
   checkOut30.setY(504);
   checkOut25.addBasicElement(checkOut30);
   checkOut30.onAttributesInitialized();
   checkOut30.onChildrenAdded();
   final PixmapElement checkOut31 = PixmapElement.checkOut();
   checkOut31.setElementMap(elementMap);
   checkOut31.setFlipHorizontaly(true);
   checkOut31.setHeight(7);
   checkOut31.setPosition(Alignment17.EAST);
   checkOut31.setTexture(this.doc.getTexture("default_1.tga"));
   checkOut31.setWidth(9);
   checkOut31.setX(130);
   checkOut31.setY(549);
   checkOut25.addBasicElement(checkOut31);
   checkOut31.onAttributesInitialized();
   checkOut31.onChildrenAdded();
   final PixmapElement checkOut32 = PixmapElement.checkOut();
   checkOut32.setElementMap(elementMap);
   checkOut32.setHeight(9);
   checkOut32.setPosition(Alignment17.SOUTH_WEST);
   checkOut32.setTexture(this.doc.getTexture("default_1.tga"));
   checkOut32.setWidth(9);
   checkOut32.setX(405);
   checkOut32.setY(141);
   checkOut25.addBasicElement(checkOut32);
   checkOut32.onAttributesInitialized();
   checkOut32.onChildrenAdded();
   final PixmapElement checkOut33 = PixmapElement.checkOut();
   checkOut33.setElementMap(elementMap);
   checkOut33.setHeight(9);
   checkOut33.setPosition(Alignment17.SOUTH);
   checkOut33.setTexture(this.doc.getTexture("default_1.tga"));
   checkOut33.setWidth(1);
   checkOut33.setX(179);
   checkOut33.setY(551);
   checkOut25.addBasicElement(checkOut33);
   checkOut33.onAttributesInitialized();
   checkOut33.onChildrenAdded();
   final PixmapElement checkOut34 = PixmapElement.checkOut();
   checkOut34.setElementMap(elementMap);
   checkOut34.setFlipHorizontaly(true);
   checkOut34.setHeight(9);
   checkOut34.setPosition(Alignment17.SOUTH_EAST);
   checkOut34.setTexture(this.doc.getTexture("default_1.tga"));
   checkOut34.setWidth(9);
   checkOut34.setX(405);
   checkOut34.setY(141);
   checkOut25.addBasicElement(checkOut34);
   checkOut34.onAttributesInitialized();
   checkOut34.onChildrenAdded();
   checkOut25.onChildrenAdded();
   appearance3.onChildrenAdded();
   final DecoratorAppearance appearance4 = widget.getAppearance();
   appearance4.setElementMap(elementMap);
   ((TextWidgetAppearance) appearance4).setAlign(Alignment9.CENTER);
   appearance4.setState("disabled");
   widget.addBasicElement(appearance4);
   appearance4.onAttributesInitialized();
   final ColorElement checkOut35 = ColorElement.checkOut();
   checkOut35.setElementMap(elementMap);
   checkOut35.setColor(new Color(0.6f, 0.6f, 0.6f, 1.0f));
   appearance4.addBasicElement(checkOut35);
   checkOut35.onAttributesInitialized();
   checkOut35.onChildrenAdded();
   final String id7 = "buttonYellowBackgroundFullDisabled";
   final PixmapBackground checkOut36 = PixmapBackground.checkOut();
   checkOut36.setElementMap(elementMap);
   if (elementMap != null && id7 != null) {
     elementMap.add(id7, checkOut36);
   }
   checkOut36.setEnabled(false);
   checkOut36.setScaled(true);
   appearance4.addBasicElement(checkOut36);
   checkOut36.onAttributesInitialized();
   final PixmapElement checkOut37 = PixmapElement.checkOut();
   checkOut37.setElementMap(elementMap);
   checkOut37.setHeight(9);
   checkOut37.setPosition(Alignment17.NORTH_WEST);
   checkOut37.setTexture(this.doc.getTexture("default_1.tga"));
   checkOut37.setWidth(9);
   checkOut37.setX(102);
   checkOut37.setY(140);
   checkOut36.addBasicElement(checkOut37);
   checkOut37.onAttributesInitialized();
   checkOut37.onChildrenAdded();
   final PixmapElement checkOut38 = PixmapElement.checkOut();
   checkOut38.setElementMap(elementMap);
   checkOut38.setHeight(9);
   checkOut38.setPosition(Alignment17.NORTH);
   checkOut38.setTexture(this.doc.getTexture("default_1.tga"));
   checkOut38.setWidth(1);
   checkOut38.setX(89);
   checkOut38.setY(562);
   checkOut36.addBasicElement(checkOut38);
   checkOut38.onAttributesInitialized();
   checkOut38.onChildrenAdded();
   final PixmapElement checkOut39 = PixmapElement.checkOut();
   checkOut39.setElementMap(elementMap);
   checkOut39.setFlipHorizontaly(true);
   checkOut39.setHeight(9);
   checkOut39.setPosition(Alignment17.NORTH_EAST);
   checkOut39.setTexture(this.doc.getTexture("default_1.tga"));
   checkOut39.setWidth(9);
   checkOut39.setX(102);
   checkOut39.setY(140);
   checkOut36.addBasicElement(checkOut39);
   checkOut39.onAttributesInitialized();
   checkOut39.onChildrenAdded();
   final PixmapElement checkOut40 = PixmapElement.checkOut();
   checkOut40.setElementMap(elementMap);
   checkOut40.setHeight(7);
   checkOut40.setPosition(Alignment17.WEST);
   checkOut40.setTexture(this.doc.getTexture("default_1.tga"));
   checkOut40.setWidth(9);
   checkOut40.setX(490);
   checkOut40.setY(140);
   checkOut36.addBasicElement(checkOut40);
   checkOut40.onAttributesInitialized();
   checkOut40.onChildrenAdded();
   final PixmapElement checkOut41 = PixmapElement.checkOut();
   checkOut41.setElementMap(elementMap);
   checkOut41.setHeight(7);
   checkOut41.setPosition(Alignment17.CENTER);
   checkOut41.setTexture(this.doc.getTexture("default_1.tga"));
   checkOut41.setWidth(1);
   checkOut41.setX(913);
   checkOut41.setY(461);
   checkOut36.addBasicElement(checkOut41);
   checkOut41.onAttributesInitialized();
   checkOut41.onChildrenAdded();
   final PixmapElement checkOut42 = PixmapElement.checkOut();
   checkOut42.setElementMap(elementMap);
   checkOut42.setFlipHorizontaly(true);
   checkOut42.setHeight(7);
   checkOut42.setPosition(Alignment17.EAST);
   checkOut42.setTexture(this.doc.getTexture("default_1.tga"));
   checkOut42.setWidth(9);
   checkOut42.setX(490);
   checkOut42.setY(140);
   checkOut36.addBasicElement(checkOut42);
   checkOut42.onAttributesInitialized();
   checkOut42.onChildrenAdded();
   final PixmapElement checkOut43 = PixmapElement.checkOut();
   checkOut43.setElementMap(elementMap);
   checkOut43.setHeight(9);
   checkOut43.setPosition(Alignment17.SOUTH_WEST);
   checkOut43.setTexture(this.doc.getTexture("default_0.tga"));
   checkOut43.setWidth(9);
   checkOut43.setX(823);
   checkOut43.setY(93);
   checkOut36.addBasicElement(checkOut43);
   checkOut43.onAttributesInitialized();
   checkOut43.onChildrenAdded();
   this.method0(checkOut36);
   this.method1(checkOut36);
   checkOut36.onChildrenAdded();
   appearance4.onChildrenAdded();
 }
 @Override
 public void applyStyle(final ElementMap item, final DocumentParser doc, final Widget widget) {
   this.doc = doc;
   this.elementMaps.push(item);
   final ElementMap elementMap = this.elementMaps.peek();
   final DecoratorAppearance appearance = widget.getAppearance();
   appearance.setElementMap(elementMap);
   widget.addBasicElement(appearance);
   appearance.onAttributesInitialized();
   final String id = "darkBackgroundFull";
   final PixmapBackground checkOut = PixmapBackground.checkOut();
   checkOut.setElementMap(elementMap);
   if (elementMap != null && id != null) {
     elementMap.add(id, checkOut);
   }
   checkOut.setScaled(true);
   appearance.addBasicElement(checkOut);
   checkOut.onAttributesInitialized();
   final PixmapElement checkOut2 = PixmapElement.checkOut();
   checkOut2.setElementMap(elementMap);
   checkOut2.setHeight(4);
   checkOut2.setPosition(Alignment17.NORTH_WEST);
   checkOut2.setTexture(this.doc.getTexture("default_1.tga"));
   checkOut2.setWidth(4);
   checkOut2.setX(25);
   checkOut2.setY(192);
   checkOut.addBasicElement(checkOut2);
   checkOut2.onAttributesInitialized();
   checkOut2.onChildrenAdded();
   final PixmapElement checkOut3 = PixmapElement.checkOut();
   checkOut3.setElementMap(elementMap);
   checkOut3.setHeight(4);
   checkOut3.setPosition(Alignment17.NORTH);
   checkOut3.setTexture(this.doc.getTexture("default_0.tga"));
   checkOut3.setWidth(12);
   checkOut3.setX(954);
   checkOut3.setY(214);
   checkOut.addBasicElement(checkOut3);
   checkOut3.onAttributesInitialized();
   checkOut3.onChildrenAdded();
   final PixmapElement checkOut4 = PixmapElement.checkOut();
   checkOut4.setElementMap(elementMap);
   checkOut4.setHeight(4);
   checkOut4.setPosition(Alignment17.NORTH_EAST);
   checkOut4.setTexture(this.doc.getTexture("default_1.tga"));
   checkOut4.setWidth(4);
   checkOut4.setX(863);
   checkOut4.setY(247);
   checkOut.addBasicElement(checkOut4);
   checkOut4.onAttributesInitialized();
   checkOut4.onChildrenAdded();
   final PixmapElement checkOut5 = PixmapElement.checkOut();
   checkOut5.setElementMap(elementMap);
   checkOut5.setHeight(12);
   checkOut5.setPosition(Alignment17.EAST);
   checkOut5.setTexture(this.doc.getTexture("default_0.tga"));
   checkOut5.setWidth(4);
   checkOut5.setX(315);
   checkOut5.setY(622);
   checkOut.addBasicElement(checkOut5);
   checkOut5.onAttributesInitialized();
   checkOut5.onChildrenAdded();
   final PixmapElement checkOut6 = PixmapElement.checkOut();
   checkOut6.setElementMap(elementMap);
   checkOut6.setHeight(12);
   checkOut6.setPosition(Alignment17.CENTER);
   checkOut6.setTexture(this.doc.getTexture("default_1.tga"));
   checkOut6.setWidth(12);
   checkOut6.setX(146);
   checkOut6.setY(246);
   checkOut.addBasicElement(checkOut6);
   checkOut6.onAttributesInitialized();
   checkOut6.onChildrenAdded();
   final PixmapElement checkOut7 = PixmapElement.checkOut();
   checkOut7.setElementMap(elementMap);
   checkOut7.setHeight(4);
   checkOut7.setPosition(Alignment17.SOUTH_EAST);
   checkOut7.setTexture(this.doc.getTexture("default_1.tga"));
   checkOut7.setWidth(4);
   checkOut7.setX(110);
   checkOut7.setY(233);
   checkOut.addBasicElement(checkOut7);
   checkOut7.onAttributesInitialized();
   checkOut7.onChildrenAdded();
   final PixmapElement checkOut8 = PixmapElement.checkOut();
   checkOut8.setElementMap(elementMap);
   checkOut8.setHeight(4);
   checkOut8.setPosition(Alignment17.SOUTH);
   checkOut8.setTexture(this.doc.getTexture("default_1.tga"));
   checkOut8.setWidth(12);
   checkOut8.setX(866);
   checkOut8.setY(671);
   checkOut.addBasicElement(checkOut8);
   checkOut8.onAttributesInitialized();
   checkOut8.onChildrenAdded();
   final PixmapElement checkOut9 = PixmapElement.checkOut();
   checkOut9.setElementMap(elementMap);
   checkOut9.setHeight(4);
   checkOut9.setPosition(Alignment17.SOUTH_WEST);
   checkOut9.setTexture(this.doc.getTexture("default_1.tga"));
   checkOut9.setWidth(4);
   checkOut9.setX(834);
   checkOut9.setY(190);
   checkOut.addBasicElement(checkOut9);
   checkOut9.onAttributesInitialized();
   checkOut9.onChildrenAdded();
   final PixmapElement checkOut10 = PixmapElement.checkOut();
   checkOut10.setElementMap(elementMap);
   checkOut10.setHeight(12);
   checkOut10.setPosition(Alignment17.WEST);
   checkOut10.setTexture(this.doc.getTexture("default_1.tga"));
   checkOut10.setWidth(4);
   checkOut10.setX(134);
   checkOut10.setY(596);
   checkOut.addBasicElement(checkOut10);
   checkOut10.onAttributesInitialized();
   checkOut10.onChildrenAdded();
   checkOut.onChildrenAdded();
   final Padding element = new Padding();
   element.onCheckOut();
   element.setElementMap(elementMap);
   element.setInsets(new Insets(2, 2, 2, 2));
   appearance.addBasicElement(element);
   element.onAttributesInitialized();
   element.onChildrenAdded();
   appearance.onChildrenAdded();
 }
 @Override
 public void applyStyle(final ElementMap item, final DocumentParser doc, final Widget widget) {
   this.doc = doc;
   this.elementMaps.push(item);
   final ElementMap elementMap = this.elementMaps.peek();
   final DecoratorAppearance appearance = widget.getAppearance();
   appearance.setElementMap(elementMap);
   appearance.setState("default");
   widget.addBasicElement(appearance);
   appearance.onAttributesInitialized();
   final String id = "symbiotFightButtonDefaultPixmap";
   final PixmapElement checkOut = PixmapElement.checkOut();
   checkOut.setElementMap(elementMap);
   if (elementMap != null && id != null) {
     elementMap.add(id, checkOut);
   }
   checkOut.setHeight(21);
   checkOut.setPosition(Alignment17.CENTER);
   checkOut.setTexture(this.doc.getTexture("default_1.tga"));
   checkOut.setWidth(21);
   checkOut.setX(632);
   checkOut.setY(283);
   appearance.addBasicElement(checkOut);
   checkOut.onAttributesInitialized();
   checkOut.onChildrenAdded();
   appearance.onChildrenAdded();
   final DecoratorAppearance appearance2 = widget.getAppearance();
   appearance2.setElementMap(elementMap);
   appearance2.setState("pressed");
   widget.addBasicElement(appearance2);
   appearance2.onAttributesInitialized();
   final String id2 = "symbiotFightButtonPressedPixmap";
   final PixmapElement checkOut2 = PixmapElement.checkOut();
   checkOut2.setElementMap(elementMap);
   if (elementMap != null && id2 != null) {
     elementMap.add(id2, checkOut2);
   }
   checkOut2.setHeight(21);
   checkOut2.setPosition(Alignment17.CENTER);
   checkOut2.setTexture(this.doc.getTexture("default_1.tga"));
   checkOut2.setWidth(21);
   checkOut2.setX(945);
   checkOut2.setY(306);
   appearance2.addBasicElement(checkOut2);
   checkOut2.onAttributesInitialized();
   checkOut2.onChildrenAdded();
   appearance2.onChildrenAdded();
   final DecoratorAppearance appearance3 = widget.getAppearance();
   appearance3.setElementMap(elementMap);
   appearance3.setState("mouseHover");
   widget.addBasicElement(appearance3);
   appearance3.onAttributesInitialized();
   final String id3 = "symbiotFightButtonOverPixmap";
   final PixmapElement checkOut3 = PixmapElement.checkOut();
   checkOut3.setElementMap(elementMap);
   if (elementMap != null && id3 != null) {
     elementMap.add(id3, checkOut3);
   }
   checkOut3.setHeight(21);
   checkOut3.setPosition(Alignment17.CENTER);
   checkOut3.setTexture(this.doc.getTexture("default_1.tga"));
   checkOut3.setWidth(21);
   checkOut3.setX(692);
   checkOut3.setY(283);
   appearance3.addBasicElement(checkOut3);
   checkOut3.onAttributesInitialized();
   checkOut3.onChildrenAdded();
   appearance3.onChildrenAdded();
   final DecoratorAppearance appearance4 = widget.getAppearance();
   appearance4.setElementMap(elementMap);
   appearance4.setState("disabled");
   widget.addBasicElement(appearance4);
   appearance4.onAttributesInitialized();
   final String id4 = "symbiotFightButtonDisabledPixmap";
   final PixmapElement checkOut4 = PixmapElement.checkOut();
   checkOut4.setElementMap(elementMap);
   if (elementMap != null && id4 != null) {
     elementMap.add(id4, checkOut4);
   }
   checkOut4.setHeight(21);
   checkOut4.setPosition(Alignment17.CENTER);
   checkOut4.setTexture(this.doc.getTexture("default_1.tga"));
   checkOut4.setWidth(21);
   checkOut4.setX(491);
   checkOut4.setY(283);
   appearance4.addBasicElement(checkOut4);
   checkOut4.onAttributesInitialized();
   checkOut4.onChildrenAdded();
   appearance4.onChildrenAdded();
 }