Search in sources :

Example 1 with SpecialValueBar

use of eidolons.client.cc.gui.neo.bars.SpecialValueBar in project Eidolons by IDemiurge.

the class HeroPanel method init.

private void init() {
    xpBar = new SpecialValueBar(false, PARAMS.XP);
    xpBar.setObj(hero);
    integrityBar = new SpecialValueBar(true, PARAMS.INTEGRITY);
    integrityBar.setObj(hero);
    values = new ValueIconPanel(hero);
    infoPanel = new DC_PagedInfoPanel(hero);
    buffPanel = new DC_PagedBuffPanel();
    buffPanel.setObj(hero);
    itemPanel = new DC_ItemPanel(hero.getGame(), true);
    itemPanel.setObj(hero);
    lowerPanel = new DC_PagedInfoPanel(hero);
    header = new HeroHeader(hero, this);
    comps = new G_Component[] { header, values, buffPanel, infoPanel, lowerPanel };
}
Also used : DC_PagedInfoPanel(eidolons.swing.components.panels.page.info.DC_PagedInfoPanel) DC_PagedBuffPanel(eidolons.swing.components.panels.page.small.DC_PagedBuffPanel) DC_ItemPanel(eidolons.swing.components.panels.DC_ItemPanel) ValueIconPanel(eidolons.swing.components.panels.ValueIconPanel) SpecialValueBar(eidolons.client.cc.gui.neo.bars.SpecialValueBar) HeroHeader(eidolons.client.cc.gui.neo.header.HeroHeader)

Example 2 with SpecialValueBar

use of eidolons.client.cc.gui.neo.bars.SpecialValueBar in project Eidolons by IDemiurge.

the class PrincipleMiddlePanel method init.

public void init() {
    add(new GraphicComponent(STD_IMAGES.GUARDIAN), "@pos 0 max_bottom");
    add(new GraphicComponent(ImageTransformer.flipHorizontally(ImageManager.getBufferedImage(STD_IMAGES.GUARDIAN.getImage()))), "@pos max_right max_bottom");
    integrityBar = new SpecialValueBar(false, PARAMS.INTEGRITY);
    integrityBar.setObj(hero);
    rpgDescription = new TextCompDC(null, "", 18, FONT.AVQ);
    bonusTextComp = new WrappedTextComp(null, false);
    bonusTextComp.setPanelSize(new Dimension(250, 170));
    add(integrityBar, "@id bar, pos center_x 0");
    add(bonusTextComp, "@id text, pos center_x rpg.y2");
}
Also used : GraphicComponent(main.swing.generic.components.misc.GraphicComponent) SpecialValueBar(eidolons.client.cc.gui.neo.bars.SpecialValueBar) TextCompDC(eidolons.swing.components.panels.page.info.element.TextCompDC) WrappedTextComp(eidolons.swing.components.panels.page.log.WrappedTextComp)

Aggregations

SpecialValueBar (eidolons.client.cc.gui.neo.bars.SpecialValueBar)2 HeroHeader (eidolons.client.cc.gui.neo.header.HeroHeader)1 DC_ItemPanel (eidolons.swing.components.panels.DC_ItemPanel)1 ValueIconPanel (eidolons.swing.components.panels.ValueIconPanel)1 DC_PagedInfoPanel (eidolons.swing.components.panels.page.info.DC_PagedInfoPanel)1 TextCompDC (eidolons.swing.components.panels.page.info.element.TextCompDC)1 WrappedTextComp (eidolons.swing.components.panels.page.log.WrappedTextComp)1 DC_PagedBuffPanel (eidolons.swing.components.panels.page.small.DC_PagedBuffPanel)1 GraphicComponent (main.swing.generic.components.misc.GraphicComponent)1