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