use of eidolons.swing.components.buttons.CustomButton in project Eidolons by IDemiurge.
the class DivinationPanel method addButton.
private void addButton() {
CustomButton divinationButton = new CustomButton(VISUALS.DIVINATION, "") {
@Override
public void handleClick() {
divine();
}
@Override
protected void playClickSound() {
DC_SoundMaster.playStandardSound(STD_SOUNDS.SPELL_ACTIVATE);
}
};
add(divinationButton, "@pos center_x-4 0");
setComponentZOrder(divinationButton, 0);
setComponentZOrder(list, 1);
}
use of eidolons.swing.components.buttons.CustomButton in project Eidolons by IDemiurge.
the class DebugGui method init.
public void init() {
pages = new PagedDebugPanel();
valueButton = new CustomButton(VISUALS.HAMMER) {
public void handleClick() {
editValue();
}
};
functionButton = new CustomButton(VISUALS.GEARS) {
public void handleClick() {
enterFunction();
}
};
// initial index?
pages.refresh();
add(pages, "pos 0 0");
int x = DebugGuiPage.BUTTON_VISUALS.getWidth() * 2 + DebugGuiPage.gapX;
int y = pages.getArrowHeight() + VISUALS.MENU_BUTTON.getHeight();
add(valueButton, "id value,pos " + x + " " + y);
add(// +
functionButton, // +
" pos " + x + " value.y2");
setComponentZOrder(functionButton, 0);
setComponentZOrder(valueButton, 1);
setComponentZOrder(pages, 2);
panelSize = new Dimension(732, 132);
}
Aggregations