Search in sources :

Example 1 with PortraitComp

use of eidolons.client.cc.gui.neo.header.PortraitComp in project Eidolons by IDemiurge.

the class PartyMemberComp method init.

private void init() {
    slidePanel = new HeroSlidePanel(hero);
    portrait = new PortraitComp(hero) {

        @Override
        protected void handleMouseClick() {
        // TODO Auto-generated method stub
        }
    };
    // nameComp = new TextComp(null, hero.getName()) {
    // protected int getDefaultFontSize() {
    // return 17;
    // }
    // };
    // add(nameComp, "id n, pos 0 0");
    add(portrait.getComp(), "id portrait, pos 0 n.y2");
    add(slidePanel, "id s, pos portrait.x2 n.y2");
    refresh();
}
Also used : PortraitComp(eidolons.client.cc.gui.neo.header.PortraitComp)

Example 2 with PortraitComp

use of eidolons.client.cc.gui.neo.header.PortraitComp in project Eidolons by IDemiurge.

the class T3UpperPanel method init.

public void init() {
    heroPortrait = new PortraitComp(hero);
    controlPanel = new G_Panel();
    for (final String c : controls) {
        controlPanel.add(new CustomButton(VISUALS.BUTTON_NEW_TINY, (c)) {

            public void handleClick() {
                handleControl(c, false);
            }

            @Override
            public void handleAltClick() {
                handleControl(c, true);
            }
        });
    }
    add(controlPanel, "id cp, pos @center_x 0");
    add(heroPortrait.getComp(), "pos @center_x cp.y2");
}
Also used : G_Panel(main.swing.generic.components.G_Panel) CustomButton(eidolons.swing.components.buttons.CustomButton) PortraitComp(eidolons.client.cc.gui.neo.header.PortraitComp)

Aggregations

PortraitComp (eidolons.client.cc.gui.neo.header.PortraitComp)2 CustomButton (eidolons.swing.components.buttons.CustomButton)1 G_Panel (main.swing.generic.components.G_Panel)1