Search in sources :

Example 1 with TableCellFloat

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

the class TableDataSourceInvGenSingleTag method cellForIndexInSegment.

@Override
public TableCell cellForIndexInSegment(GuiTable table, int index, int segment) {
    if (segment == 0) {
        if (index == 0) {
            TableCellFloat cell = new TableCellFloat("itemCount", item.getItemChance(stack), 0, 1);
            cell.setScale(Scales.pow(5));
            cell.addPropertyConsumer(range -> item.setItemChance(stack, range));
            return new TitledCell(IvTranslations.get("reccomplex.gui.inventorygen.single.chance"), cell);
        }
    }
    return null;
}
Also used : TitledCell(ivorius.reccomplex.gui.table.cell.TitledCell) TableCellFloat(ivorius.reccomplex.gui.table.cell.TableCellFloat)

Aggregations

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