Search in sources :

Example 41 with G_Panel

use of main.swing.generic.components.G_Panel in project Eidolons by IDemiurge.

the class ShopListsPanel method addTab.

protected void addTab(String title) {
    if (!Launcher.getMainManager().isMacroMode()) {
        super.addTab(title);
        return;
    }
    G_Panel comp = new G_Panel();
    tabMap.put(title, comp);
    tabs.addTab(title, getShop(title).getImagePath(), comp);
}
Also used : G_Panel(main.swing.generic.components.G_Panel)

Example 42 with G_Panel

use of main.swing.generic.components.G_Panel in project Eidolons by IDemiurge.

the class VendorListsPanel method addTab.

protected void addTab(String title) {
    G_Panel comp = new G_Panel();
    tabMap.put(title, comp);
    tabs.addTab(title, comp);
}
Also used : G_Panel(main.swing.generic.components.G_Panel)

Example 43 with G_Panel

use of main.swing.generic.components.G_Panel in project Eidolons by IDemiurge.

the class HeaderPanel method initValues.

private G_Panel initValues(VALUE[] values, boolean top) {
    G_Panel panel = new G_Panel(// (top) ? "" :
    "flowy");
    for (VALUE v : values) {
        String text = hero.getValue(v);
        if (!top) {
            text = v.getName() + ": " + text;
        }
        JLabel lbl = new JLabel(text);
        // if (!top)
        panel.add(lbl);
    }
    return panel;
}
Also used : G_Panel(main.swing.generic.components.G_Panel) VALUE(main.content.VALUE)

Example 44 with G_Panel

use of main.swing.generic.components.G_Panel in project Eidolons by IDemiurge.

the class PortraitComp method initComp.

private void initComp() {
    comp = new G_Panel(border);
    Image img = ImageManager.getSizedVersion(hero.getIcon().getImage(), size);
    label = new JLabel(new ImageIcon(img));
    comp.add(label, "pos 5 17");
    comp.addMouseListener(this);
}
Also used : G_Panel(main.swing.generic.components.G_Panel)

Example 45 with G_Panel

use of main.swing.generic.components.G_Panel in project Eidolons by IDemiurge.

the class CellComp method initPanel.

private void initPanel() {
    panel = new G_Panel() {

        protected void paintComponent(Graphics g) {
            if (bufferImage != null) {
                g.drawImage(bufferImage, 0, 0, null);
            }
            String text = getToolTipText();
            if (text != null) {
                LogMaster.log(1, toString() + " has tooltip: " + text);
            }
        }
    };
    resetSize();
    panel.setIgnoreRepaint(true);
}
Also used : G_Panel(main.swing.generic.components.G_Panel)

Aggregations

G_Panel (main.swing.generic.components.G_Panel)59 CustomButton (eidolons.swing.components.buttons.CustomButton)6 List (java.util.List)4 PARAMETER (main.content.values.parameters.PARAMETER)4 ObjType (main.entity.type.ObjType)4 TextComp (main.swing.components.TextComp)4 ArrayList (java.util.ArrayList)3 XLinkedMap (main.data.XLinkedMap)3 MigLayout (net.miginfocom.swing.MigLayout)3 PoolComp (eidolons.client.cc.gui.misc.PoolComp)2 HC_Tab (eidolons.client.cc.gui.neo.tabs.HC_Tab)2 HC_TabPanel (eidolons.client.cc.gui.neo.tabs.HC_TabPanel)2 WrappedTextComp (eidolons.swing.components.panels.page.log.WrappedTextComp)2 MusicList (main.music.entity.MusicList)2 MusicListPanel (main.music.gui.MusicListPanel)2 G_Component (main.swing.generic.components.G_Component)2 GraphicComponent (main.swing.generic.components.misc.GraphicComponent)2 PortraitComp (eidolons.client.cc.gui.neo.header.PortraitComp)1 HC_PagedListPanel (eidolons.client.cc.gui.pages.HC_PagedListPanel)1 PartyComp (eidolons.game.module.adventure.gui.map.obj.PartyComp)1