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