Search in sources :

Example 6 with PoolComp

use of eidolons.client.cc.gui.misc.PoolComp in project Eidolons by IDemiurge.

the class HeroView method initPoolComp.

protected void initPoolComp() {
    poolComp = new PoolComp(hero, getPoolParam(), POOL, isPoolC());
    updatePoolComp();
}
Also used : PoolComp(eidolons.client.cc.gui.misc.PoolComp)

Example 7 with PoolComp

use of eidolons.client.cc.gui.misc.PoolComp in project Eidolons by IDemiurge.

the class PrinciplePanel method init.

public void init() {
    principlesIcon.addMouseListener(this);
    helpIcon.addMouseListener(this);
    pool = new PoolComp(getBuffer(), PARAMS.IDENTITY_POINTS, "", null) {

        @Override
        protected int getOffsetY() {
            return 6;
        }

        @Override
        protected Font getDefaultFont() {
            return PrincipleView.getDefaultFont();
        }
    };
    table = new PrincipleTable(hero, true);
    int x = (VISUALS.PRINCIPLE_VALUE_BOX.getWidth() + 24 - 50) / 2;
    add(principlesIcon, "id principlesIcon, pos " + x + " " + getFrameBorderWidth());
    x = VISUALS.PRINCIPLE_VALUE_BOX.getWidth() - VISUALS.POOL_MECH.getWidth() + 44;
    add(pool, "id pool, pos " + x + " 12");
    add(table, "pos pool.x2 pool.y");
    int height = VISUALS.PRINCIPLE_VALUE_BOX.getHeight();
    int y = 0;
    for (PRINCIPLES p : HeroEnums.PRINCIPLES.values()) {
        PrinciplePointComp pointComp = new PrinciplePointComp(this, p, hero, this, getBuffer());
        pointComps.add(pointComp);
        y += height;
        // TODO
        add(pointComp, "pos " + getFrameBorderWidth() + " " + y);
    // buffer
    }
}
Also used : PoolComp(eidolons.client.cc.gui.misc.PoolComp) PRINCIPLES(main.content.enums.entity.HeroEnums.PRINCIPLES)

Example 8 with PoolComp

use of eidolons.client.cc.gui.misc.PoolComp in project Eidolons by IDemiurge.

the class SecondaryItemList method init.

protected void init() {
    data = initData();
    // itemListManager.remove(list);
    if (list == null) {
        list = initList();
        list.setEmptyIcon(getEmptyIcon());
    } else {
        list.setData(data);
        list.initPages();
        list.refresh();
    }
    itemListManager.add(list);
    if (isRemovable()) {
        itemListManager.setPROP2(getPROP());
        itemListManager.addRemoveList(list);
    }
    if (getPoolParam() != null) {
        if (poolComp != null) {
            poolComp.setText(getPoolText());
        } else {
            poolComp = new PoolComp(getPoolText(), getPoolTooltip(), isPoolC());
        }
    }
}
Also used : PoolComp(eidolons.client.cc.gui.misc.PoolComp)

Aggregations

PoolComp (eidolons.client.cc.gui.misc.PoolComp)8 G_Panel (main.swing.generic.components.G_Panel)2 HC_PointComp (eidolons.client.cc.gui.neo.points.HC_PointComp)1 CustomButton (eidolons.swing.components.buttons.CustomButton)1 DC_PagedInfoPanel (eidolons.swing.components.panels.page.info.DC_PagedInfoPanel)1 TextCompDC (eidolons.swing.components.panels.page.info.element.TextCompDC)1 MouseEvent (java.awt.event.MouseEvent)1 PRINCIPLES (main.content.enums.entity.HeroEnums.PRINCIPLES)1 PARAMETER (main.content.values.parameters.PARAMETER)1 Entity (main.entity.Entity)1