Search in sources :

Example 1 with GuiTexturedButton

use of ivorius.reccomplex.gui.GuiTexturedButton in project RecurrentComplex by Ivorforce.

the class TableCellButton method initGui.

@Override
public void initGui(GuiTable screen) {
    super.initGui(screen);
    Bounds bounds = bounds();
    button = new GuiTexturedButton(-1, bounds.getMinX(), bounds.getMinY() + (bounds.getHeight() - 20) / 2, bounds.getWidth(), 20, title);
    button.setTexture(texture);
    button.visible = !isHidden();
    button.enabled = enabled;
    screen.addButton(this, 0, button);
}
Also used : Bounds(ivorius.reccomplex.gui.table.Bounds) GuiTexturedButton(ivorius.reccomplex.gui.GuiTexturedButton)

Aggregations

GuiTexturedButton (ivorius.reccomplex.gui.GuiTexturedButton)1 Bounds (ivorius.reccomplex.gui.table.Bounds)1