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);
}
Aggregations