Search in sources :

Example 1 with TableCellIntegerRange

use of ivorius.reccomplex.gui.table.cell.TableCellIntegerRange in project RecurrentComplex by Ivorforce.

the class TableDataSourceInvGenMultiTag method cellForIndexInSegment.

@Override
public TableCell cellForIndexInSegment(GuiTable table, int index, int segment) {
    if (segment == 0) {
        if (index == 0) {
            TableCellIntegerRange cell = new TableCellIntegerRange("itemCount", item.getGenerationCount(stack), 0, 64);
            cell.addPropertyConsumer(range -> item.setGenerationCount(stack, range));
            return new TitledCell(IvTranslations.get("reccomplex.gui.inventorygen.multi.count"), cell);
        }
    }
    return null;
}
Also used : TitledCell(ivorius.reccomplex.gui.table.cell.TitledCell) TableCellIntegerRange(ivorius.reccomplex.gui.table.cell.TableCellIntegerRange)

Aggregations

TableCellIntegerRange (ivorius.reccomplex.gui.table.cell.TableCellIntegerRange)1 TitledCell (ivorius.reccomplex.gui.table.cell.TitledCell)1