Search in sources :

Example 1 with DC_ItemPanel

use of eidolons.swing.components.panels.DC_ItemPanel 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 DC_ItemPanel

use of eidolons.swing.components.panels.DC_ItemPanel in project Eidolons by IDemiurge.

the class HeroSlidePanel method createPageComponent.

@Override
protected G_Component createPageComponent(List<Object> list) {
    switch(getCurrentSlideView()) {
        case CLASSES:
            return new HeroObjList<>(hero.getClasses(), hero);
        case INVENTORY:
            return new HeroObjList<>(hero.getInventory(), hero);
        case QUICK_ITEMS:
            return new HeroObjList<>(hero.getQuickItems(), hero);
        case SPELLBOOK:
            return new HeroObjList<>(hero.getSpells(), hero);
        case ACTIONS:
            // dismiss, talk, order
            break;
        case PARAMETERS:
            // = new ValueIconPanel(hero)
            Header header = new Header(Arrays.asList(HERO_HEADER_VALUE_LIST), hero);
            header.refresh();
            return header;
        case STATUS:
            HeroBarPanel bars = new HeroBarPanel();
            bars.setObj(hero);
            bars.refresh();
            return bars.getPanel();
        case ITEMS:
            // new G_Panel("flowy", items, stuff);
            DC_ItemPanel items = new DC_ItemPanel(hero.getGame());
            // jewelry? quick item button? open inventory? item-info
            // (gold/weight/...)
            items.setObj(hero);
            items.refresh();
            return items;
        default:
            break;
    }
    return null;
}
Also used : DC_ItemPanel(eidolons.swing.components.panels.DC_ItemPanel)

Aggregations

DC_ItemPanel (eidolons.swing.components.panels.DC_ItemPanel)2 SpecialValueBar (eidolons.client.cc.gui.neo.bars.SpecialValueBar)1 HeroHeader (eidolons.client.cc.gui.neo.header.HeroHeader)1 ValueIconPanel (eidolons.swing.components.panels.ValueIconPanel)1 DC_PagedInfoPanel (eidolons.swing.components.panels.page.info.DC_PagedInfoPanel)1 DC_PagedBuffPanel (eidolons.swing.components.panels.page.small.DC_PagedBuffPanel)1