Search in sources :

Example 1 with AttackTooltip

use of eidolons.libgdx.gui.panels.dc.unitinfo.tooltips.AttackTooltip in project Eidolons by IDemiurge.

the class UnitDataSource method getWeaponDetail.

private List<ValueContainer> getWeaponDetail(DC_WeaponObj weapon) {
    List<ValueContainer> result = new ArrayList<>();
    if (weapon != null) {
        for (DC_UnitAction el : weapon.getOrCreateAttackActions()) {
            final ValueContainer valueContainer = new ValueContainer(getOrCreateR(el.getImagePath()));
            AttackTooltip toolTip = AttackTooltipFactory.createAttackTooltip(el);
            valueContainer.addListener(toolTip.getController());
            result.add(valueContainer);
        }
    }
    return result;
}
Also used : ArrayList(java.util.ArrayList) AttackTooltip(eidolons.libgdx.gui.panels.dc.unitinfo.tooltips.AttackTooltip) VerticalValueContainer(eidolons.libgdx.gui.generic.VerticalValueContainer) ValueContainer(eidolons.libgdx.gui.generic.ValueContainer) DC_UnitAction(eidolons.entity.active.DC_UnitAction)

Aggregations

DC_UnitAction (eidolons.entity.active.DC_UnitAction)1 ValueContainer (eidolons.libgdx.gui.generic.ValueContainer)1 VerticalValueContainer (eidolons.libgdx.gui.generic.VerticalValueContainer)1 AttackTooltip (eidolons.libgdx.gui.panels.dc.unitinfo.tooltips.AttackTooltip)1 ArrayList (java.util.ArrayList)1