Search in sources :

Example 1 with TableCellFloatNullable

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

the class RCGuiTables method defaultWeightElement.

public static TitledCell defaultWeightElement(Consumer<Float> consumer, Float value, String title, @Nullable List<String> tooltip) {
    TableCellFloatNullable cell = new TableCellFloatNullable("value", value, 1.0f, 0, 1000, IvTranslations.get("reccomplex.gui.random.weight.default.short"), IvTranslations.get("reccomplex.gui.random.weight.custom.short"));
    cell.setScale(Scales.pow(5));
    cell.addPropertyConsumer(consumer);
    return new TitledCell(title, cell).withTitleTooltip(tooltip);
}
Also used : TitledCell(ivorius.reccomplex.gui.table.cell.TitledCell) TableCellFloatNullable(ivorius.reccomplex.gui.table.cell.TableCellFloatNullable)

Aggregations

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