Search in sources :

Example 1 with ArmorDataSource

use of eidolons.libgdx.gui.panels.dc.unitinfo.datasource.ArmorDataSource in project Eidolons by IDemiurge.

the class ArmorPanel method updateAct.

@Override
public void updateAct(float delta) {
    clear();
    final ArmorDataSource source = (ArmorDataSource) getUserObject();
    addElement(source.getArmorObj()).center().fill(false);
    row();
    for (ValueContainer valueContainer : source.getParamValues()) {
        valueContainer.setBorder(getOrCreateR("UI/components/infopanel/simple_value_border.png"));
        addElement(valueContainer);
        row();
    }
}
Also used : ArmorDataSource(eidolons.libgdx.gui.panels.dc.unitinfo.datasource.ArmorDataSource) ValueContainer(eidolons.libgdx.gui.generic.ValueContainer)

Aggregations

ValueContainer (eidolons.libgdx.gui.generic.ValueContainer)1 ArmorDataSource (eidolons.libgdx.gui.panels.dc.unitinfo.datasource.ArmorDataSource)1