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;
}
Aggregations