use of eidolons.client.cc.gui.misc.PoolComp in project Eidolons by IDemiurge.
the class OperationWindow method createComponent.
public Component createComponent() {
panel = new G_Panel(getVisuals());
operationsPool = new PoolComp(getPoolText(), getPoolTooltip(), false);
//
CustomButton okButton = new CustomButton(OK) {
public void handleClick() {
done();
}
protected boolean isMoreY() {
return true;
}
};
CustomButton cancelButton = new CustomButton(CANCEL) {
protected boolean isMoreY() {
return true;
}
public void handleClick() {
cancel();
}
};
panel.add(getComponent(), "id tab, pos " + GuiManager.PANEL_FRAME_WIDTH + " " + GuiManager.PANEL_FRAME_HEIGHT);
panel.add(okButton, "@id ok, pos max_right-" + GuiManager.PANEL_FRAME_WIDTH + " max_top-" + GuiManager.PANEL_FRAME_HEIGHT);
panel.add(cancelButton, "@id cancel, pos max_right-" + GuiManager.PANEL_FRAME_WIDTH + " ok.y2");
panel.add(operationsPool, "@id op, pos max_right-" + GuiManager.PANEL_FRAME_WIDTH + " cancel.y2");
panel.setBackground(ColorManager.BACKGROUND);
return panel;
}
use of eidolons.client.cc.gui.misc.PoolComp in project Eidolons by IDemiurge.
the class T3InfoPanel method init.
public void init() {
Entity skill = null;
try {
skill = CharacterCreator.getHero().getSkills().get(flipped ? 1 : 0);
} catch (Exception e) {
main.system.ExceptionMaster.printStackTrace(e);
}
infoPanel = new DC_PagedInfoPanel(skill);
ImageIcon icon = ImageManager.getEmptyItemIcon(flipped);
if (skill != null) {
icon = skill.getIcon();
}
label = new JLabel(icon);
controlPanel = new G_Panel();
controlPanel.setPanelSize(new Dimension(122, getPanelSize().height));
costPool = new PoolComp(skill, PARAMS.XP_COST, "Experience cost", false);
xpPool = new PoolComp(CharacterCreator.getHero(), PARAMS.XP, "Experience points", true) {
};
addComps();
}
use of eidolons.client.cc.gui.misc.PoolComp in project Eidolons by IDemiurge.
the class SkillBottomPanel method addSpecial.
protected void addSpecial() {
freePoints = new TextCompDC(VISUALS.SPACE_SMALL) {
protected String getText() {
return "Skill Points: " + DC_MathManager.getFreeMasteryPoints(hero, (PARAMETER) arg);
}
};
masteryScore = new TextCompDC(VISUALS.SPACE_SMALL) {
protected String getText() {
return "Final Score: " + hero.getIntParam(ContentManager.getMasteryScore((PARAMETER) arg));
}
};
masteryPoints = new PoolComp(hero, PARAMS.MASTERY_POINTS, "Mastery Points", false);
masteryComp = new HC_PointComp(true, hero, bufferType, (PARAMETER) arg, PARAMS.MASTERY_POINTS) {
public void mouseClicked(MouseEvent e) {
if (e.getSource() == upArrow) {
// sound
upClick();
tree.refresh();
refresh();
} else if (e.getSource() == downArrow) {
// sound
downClick();
// CharacterCreator.refreshGUI();
tree.refresh();
} else if (e.getSource() == lock) {
lockClick(e);
}
}
};
// @center_x
add(freePoints, "id points, pos @center_x-" + VISUALS.SPACE_SMALL.getWidth() / 2 + " 0");
add(masteryScore, "id masteryScore, pos points.x2+1 points.y");
add(masteryComp, "id masteryComp, pos 0 points.y2");
}
use of eidolons.client.cc.gui.misc.PoolComp in project Eidolons by IDemiurge.
the class StatsControlComponent method initPools.
protected void initPools() {
attrPool = new PoolComp(bufferType, PARAMS.ATTR_POINTS, ATTR, false);
mstrPool = new PoolComp(bufferType, PARAMS.MASTERY_POINTS, MSTR, false);
xpPool = new PoolComp(bufferType, PARAMS.XP, XP, false);
goldPool = new PoolComp(bufferType, PARAMS.GOLD, GOLD, false);
String cost = DC_MathManager.getBuyCost(false, false, hero) + XP;
mstrXpCostPool = new PoolComp(cost);
cost = DC_MathManager.getBuyCost(false, true, hero) + GOLD;
mstrGoldCostPool = new PoolComp(cost);
cost = DC_MathManager.getBuyCost(true, false, hero) + XP;
attrXpCostPool = new PoolComp(cost);
cost = DC_MathManager.getBuyCost(true, true, hero) + GOLD;
attrGoldCostPool = new PoolComp(cost);
}
use of eidolons.client.cc.gui.misc.PoolComp in project Eidolons by IDemiurge.
the class ItemsTab method initPoolComp.
protected void initPoolComp() {
poolComp = new PoolComp(getWeightString());
poolComp.setVisuals(VISUALS.POOL);
poolComp.setToolTipText(POOL);
updatePoolComp();
}
Aggregations