public static void valid(final Event e) {
   final MessageBoxControler msgBox =
       Xulor.getInstance()
           .msgBox(
               WakfuTranslator.getInstance().getString("setItemElements.question"),
               WakfuMessageBoxConstants.getMessageBoxIconUrl(0),
               2073L,
               102,
               1);
   msgBox.addEventListener(
       new MessageBoxEventListener() {
         @Override
         public void messageBoxClosed(final int type, final String userEntry) {
           if (type == 8) {
             final SelectItemElementsView elementsView = SelectItemElementsView.INSTANCE;
             final Item item = elementsView.getConcernedItem();
             final SetItemElementsRequestMessage netMsg = new SetItemElementsRequestMessage();
             netMsg.setItemUid(item.getUniqueId());
             netMsg.setDamageElementMask(
                 elementsView.getElementMask(SelectItemElementsView.DAMAGE_ACTION_ID));
             netMsg.setResElementMask(
                 elementsView.getElementMask(SelectItemElementsView.RES_ACTION_ID));
             WakfuGameEntity.getInstance().getNetworkEntity().sendMessage(netMsg);
             WakfuGameEntity.getInstance().removeFrame(UISelectItemElementsFrame.getInstance());
           }
         }
       });
 }
コード例 #2
0
 @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();
 }
コード例 #3
0
 @Override
 public void onFrameRemove(final FrameHandler frameHandler, final boolean isAboutToBeRemoved) {
   if (!isAboutToBeRemoved) {
     Xulor.getInstance().removeActionClass("wakfu.popupInfos");
     this.m_lastDialog = null;
     this.m_fieldProvider = null;
     this.m_popupDialog = null;
   }
 }
コード例 #4
0
 public void setContent(final FieldProvider fieldProvider) {
   String dialog = "";
   if (fieldProvider instanceof SpellLevel) {
     dialog = "spellDetailPopup";
     this.m_property = "describedSpell";
   } else if (fieldProvider instanceof Item
       || fieldProvider instanceof ReferenceItem
       || fieldProvider instanceof MerchantInventoryItem
       || fieldProvider instanceof ReferenceItemFieldProvider) {
     Item item = null;
     ReferenceItem refItem;
     if (fieldProvider instanceof Item) {
       refItem = (ReferenceItem) ((Item) fieldProvider).getReferenceItem();
       item = (Item) fieldProvider;
     } else if (fieldProvider instanceof ReferenceItem) {
       refItem = (ReferenceItem) fieldProvider;
     } else if (fieldProvider instanceof MerchantInventoryItem) {
       refItem =
           (ReferenceItem) ((MerchantInventoryItem) fieldProvider).getItem().getReferenceItem();
     } else {
       if (!(fieldProvider instanceof ReferenceItemFieldProvider)) {
         return;
       }
       refItem = ((ReferenceItemFieldProvider) fieldProvider).getReferenceItem();
     }
     final ReferenceItemDisplayer refItemDisplayer = refItem.getReferenceItemDisplayer();
     final ArrayList<String> characteristicsDesc = refItemDisplayer.getCharacteristicsString();
     final ArrayList<String> effectsDesc = refItemDisplayer.getEffectsString();
     if (effectsDesc == null && characteristicsDesc == null) {
       dialog = "itemSimplePopup";
     } else {
       dialog = "itemDetailPopup";
     }
     this.m_property = "itemPopupDetail";
   } else if (fieldProvider instanceof Skill) {
     dialog = "skillDescription2";
   }
   if (this.m_property != null
       && !this.m_property.isEmpty()
       && fieldProvider != null
       && !fieldProvider.equals(
           PropertiesProvider.getInstance().getObjectProperty(this.m_property))) {
     PropertiesProvider.getInstance().setPropertyValue(this.m_property, fieldProvider);
   }
   if (!dialog.isEmpty() && !dialog.equals(this.m_lastDialog)) {
     final ElementMap map =
         Xulor.getInstance().getEnvironment().getElementMap("worldAndFightBarDialog");
     if (map != null) {
       this.m_popupDialog = (PopupElement) map.getElement(dialog);
     }
     this.m_lastDialog = dialog;
   }
 }
コード例 #5
0
 @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.WEST);
   widget.addBasicElement(appearance);
   appearance.onAttributesInitialized();
   final FontElement checkOut = FontElement.checkOut();
   checkOut.setRenderer(Xulor.getInstance().getDocumentParser().getFont("defaultTitleFont"));
   checkOut.setElementMap(elementMap);
   appearance.addBasicElement(checkOut);
   checkOut.onAttributesInitialized();
   checkOut.onChildrenAdded();
   appearance.onChildrenAdded();
 }
コード例 #6
0
 @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 Padding element = new Padding();
   element.onCheckOut();
   element.setElementMap(elementMap);
   element.setInsets(new Insets(2, 2, 2, 2));
   widget.addBasicElement(element);
   element.onAttributesInitialized();
   element.onChildrenAdded();
   final DecoratorAppearance appearance = widget.getAppearance();
   appearance.setElementMap(elementMap);
   ((TextWidgetAppearance) appearance).setAlign(Alignment9.CENTER);
   appearance.setState("default");
   widget.addBasicElement(appearance);
   appearance.onAttributesInitialized();
   final FontElement checkOut = FontElement.checkOut();
   checkOut.setRenderer(Xulor.getInstance().getDocumentParser().getFont("defaultFont"));
   checkOut.setElementMap(elementMap);
   appearance.addBasicElement(checkOut);
   checkOut.onAttributesInitialized();
   checkOut.onChildrenAdded();
   final ColorElement checkOut2 = ColorElement.checkOut();
   checkOut2.setElementMap(elementMap);
   checkOut2.setColor(new Color(0.0f, 0.0f, 0.0f, 1.0f));
   appearance.addBasicElement(checkOut2);
   checkOut2.onAttributesInitialized();
   checkOut2.onChildrenAdded();
   final PlainBackground element2 = new PlainBackground();
   element2.onCheckOut();
   element2.setElementMap(elementMap);
   element2.setColor(new Color(1.0f, 0.0f, 1.0f, 1.0f));
   appearance.addBasicElement(element2);
   element2.onAttributesInitialized();
   element2.onChildrenAdded();
   final PlainBorder element3 = new PlainBorder();
   element3.onCheckOut();
   element3.setElementMap(elementMap);
   element3.setColor(new Color(1.0f, 1.0f, 1.0f, 1.0f));
   element3.setInsets(new Insets(0, 0, 0, 1));
   appearance.addBasicElement(element3);
   element3.onAttributesInitialized();
   element3.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 ColorElement checkOut3 = ColorElement.checkOut();
   checkOut3.setElementMap(elementMap);
   checkOut3.setColor(new Color(0.0f, 0.0f, 0.0f, 1.0f));
   appearance2.addBasicElement(checkOut3);
   checkOut3.onAttributesInitialized();
   checkOut3.onChildrenAdded();
   final PlainBackground element4 = new PlainBackground();
   element4.onCheckOut();
   element4.setElementMap(elementMap);
   element4.setColor(new Color(1.0f, 1.0f, 0.0f, 1.0f));
   appearance2.addBasicElement(element4);
   element4.onAttributesInitialized();
   element4.onChildrenAdded();
   final PlainBorder element5 = new PlainBorder();
   element5.onCheckOut();
   element5.setElementMap(elementMap);
   element5.setColor(new Color(1.0f, 1.0f, 1.0f, 1.0f));
   element5.setInsets(new Insets(0, 0, 0, 1));
   appearance2.addBasicElement(element5);
   element5.onAttributesInitialized();
   element5.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 ColorElement checkOut4 = ColorElement.checkOut();
   checkOut4.setElementMap(elementMap);
   checkOut4.setColor(new Color(0.0f, 0.0f, 0.0f, 1.0f));
   appearance3.addBasicElement(checkOut4);
   checkOut4.onAttributesInitialized();
   checkOut4.onChildrenAdded();
   final PlainBackground element6 = new PlainBackground();
   element6.onCheckOut();
   element6.setElementMap(elementMap);
   element6.setColor(new Color(0.0f, 1.0f, 1.0f, 1.0f));
   appearance3.addBasicElement(element6);
   element6.onAttributesInitialized();
   element6.onChildrenAdded();
   final PlainBorder element7 = new PlainBorder();
   element7.onCheckOut();
   element7.setElementMap(elementMap);
   element7.setColor(new Color(1.0f, 1.0f, 1.0f, 1.0f));
   element7.setInsets(new Insets(0, 0, 0, 1));
   appearance3.addBasicElement(element7);
   element7.onAttributesInitialized();
   element7.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 checkOut5 = ColorElement.checkOut();
   checkOut5.setElementMap(elementMap);
   checkOut5.setColor(new Color(0.0f, 0.0f, 0.0f, 1.0f));
   appearance4.addBasicElement(checkOut5);
   checkOut5.onAttributesInitialized();
   checkOut5.onChildrenAdded();
   final PlainBackground element8 = new PlainBackground();
   element8.onCheckOut();
   element8.setElementMap(elementMap);
   element8.setColor(new Color(0.5f, 0.5f, 0.5f, 1.0f));
   appearance4.addBasicElement(element8);
   element8.onAttributesInitialized();
   element8.onChildrenAdded();
   final PlainBorder element9 = new PlainBorder();
   element9.onCheckOut();
   element9.setElementMap(elementMap);
   element9.setColor(new Color(1.0f, 1.0f, 1.0f, 1.0f));
   element9.setInsets(new Insets(0, 0, 0, 1));
   appearance4.addBasicElement(element9);
   element9.onAttributesInitialized();
   element9.onChildrenAdded();
   appearance4.onChildrenAdded();
   final DecoratorAppearance appearance5 = widget.getAppearance();
   appearance5.setElementMap(elementMap);
   ((TextWidgetAppearance) appearance5).setAlign(Alignment9.CENTER);
   appearance5.setState("selected");
   widget.addBasicElement(appearance5);
   appearance5.onAttributesInitialized();
   final ColorElement checkOut6 = ColorElement.checkOut();
   checkOut6.setElementMap(elementMap);
   checkOut6.setColor(new Color(0.0f, 0.0f, 0.0f, 1.0f));
   appearance5.addBasicElement(checkOut6);
   checkOut6.onAttributesInitialized();
   checkOut6.onChildrenAdded();
   final PlainBackground element10 = new PlainBackground();
   element10.onCheckOut();
   element10.setElementMap(elementMap);
   element10.setColor(new Color(0.0f, 0.8f, 0.8f, 1.0f));
   appearance5.addBasicElement(element10);
   element10.onAttributesInitialized();
   element10.onChildrenAdded();
   final PlainBorder element11 = new PlainBorder();
   element11.onCheckOut();
   element11.setElementMap(elementMap);
   element11.setColor(new Color(0.0f, 0.8f, 0.8f, 1.0f));
   element11.setInsets(new Insets(0, 0, 0, 1));
   appearance5.addBasicElement(element11);
   element11.onAttributesInitialized();
   element11.onChildrenAdded();
   appearance5.onChildrenAdded();
   final DecoratorAppearance appearance6 = widget.getAppearance();
   appearance6.setElementMap(elementMap);
   ((TextWidgetAppearance) appearance6).setAlign(Alignment9.CENTER);
   appearance6.setState("mouseHoverSelected");
   widget.addBasicElement(appearance6);
   appearance6.onAttributesInitialized();
   final ColorElement checkOut7 = ColorElement.checkOut();
   checkOut7.setElementMap(elementMap);
   checkOut7.setColor(new Color(0.0f, 0.0f, 0.0f, 1.0f));
   appearance6.addBasicElement(checkOut7);
   checkOut7.onAttributesInitialized();
   checkOut7.onChildrenAdded();
   final PlainBackground element12 = new PlainBackground();
   element12.onCheckOut();
   element12.setElementMap(elementMap);
   element12.setColor(new Color(0.0f, 0.8f, 0.8f, 1.0f));
   appearance6.addBasicElement(element12);
   element12.onAttributesInitialized();
   element12.onChildrenAdded();
   final PlainBorder element13 = new PlainBorder();
   element13.onCheckOut();
   element13.setElementMap(elementMap);
   element13.setColor(new Color(0.0f, 0.8f, 0.8f, 1.0f));
   element13.setInsets(new Insets(0, 0, 0, 1));
   appearance6.addBasicElement(element13);
   element13.onAttributesInitialized();
   element13.onChildrenAdded();
   appearance6.onChildrenAdded();
   final DecoratorAppearance appearance7 = widget.getAppearance();
   appearance7.setElementMap(elementMap);
   ((TextWidgetAppearance) appearance7).setAlign(Alignment9.CENTER);
   appearance7.setState("pressedSelected");
   widget.addBasicElement(appearance7);
   appearance7.onAttributesInitialized();
   final ColorElement checkOut8 = ColorElement.checkOut();
   checkOut8.setElementMap(elementMap);
   checkOut8.setColor(new Color(0.0f, 0.0f, 0.0f, 1.0f));
   appearance7.addBasicElement(checkOut8);
   checkOut8.onAttributesInitialized();
   checkOut8.onChildrenAdded();
   final PlainBackground element14 = new PlainBackground();
   element14.onCheckOut();
   element14.setElementMap(elementMap);
   element14.setColor(new Color(0.0f, 0.8f, 0.8f, 1.0f));
   appearance7.addBasicElement(element14);
   element14.onAttributesInitialized();
   element14.onChildrenAdded();
   final PlainBorder element15 = new PlainBorder();
   element15.onCheckOut();
   element15.setElementMap(elementMap);
   element15.setColor(new Color(0.0f, 0.8f, 0.8f, 1.0f));
   element15.setInsets(new Insets(0, 0, 0, 1));
   appearance7.addBasicElement(element15);
   element15.onAttributesInitialized();
   element15.onChildrenAdded();
   appearance7.onChildrenAdded();
   final DecoratorAppearance appearance8 = widget.getAppearance();
   appearance8.setElementMap(elementMap);
   ((TextWidgetAppearance) appearance8).setAlign(Alignment9.CENTER);
   appearance8.setState("disabledSelected");
   widget.addBasicElement(appearance8);
   appearance8.onAttributesInitialized();
   final ColorElement checkOut9 = ColorElement.checkOut();
   checkOut9.setElementMap(elementMap);
   checkOut9.setColor(new Color(0.0f, 0.0f, 0.0f, 1.0f));
   appearance8.addBasicElement(checkOut9);
   checkOut9.onAttributesInitialized();
   checkOut9.onChildrenAdded();
   final PlainBackground element16 = new PlainBackground();
   element16.onCheckOut();
   element16.setElementMap(elementMap);
   element16.setColor(new Color(0.0f, 0.8f, 0.8f, 1.0f));
   appearance8.addBasicElement(element16);
   element16.onAttributesInitialized();
   element16.onChildrenAdded();
   final PlainBorder element17 = new PlainBorder();
   element17.onCheckOut();
   element17.setElementMap(elementMap);
   element17.setColor(new Color(0.0f, 0.8f, 0.8f, 1.0f));
   element17.setInsets(new Insets(0, 0, 0, 1));
   appearance8.addBasicElement(element17);
   element17.onAttributesInitialized();
   element17.onChildrenAdded();
   appearance8.onChildrenAdded();
 }
コード例 #7
0
 @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();
 }
コード例 #8
0
 @Override
 public void onFrameAdd(final FrameHandler frameHandler, final boolean isAboutToBeAdded) {
   if (!isAboutToBeAdded) {
     Xulor.getInstance().putActionClass("wakfu.popupInfos", PopupInfosActions.class);
   }
 }