1
mirror of https://github.com/Shiewk/Widgets.git synced 2026-04-28 11:34:17 +02:00

Add option to set show condition on widget options

This commit is contained in:
Shy
2024-09-09 10:01:10 +02:00
parent c51c79286b
commit c61dca9533
3 changed files with 16 additions and 0 deletions
@@ -1,7 +1,11 @@
package de.shiewk.widgets;
import java.util.function.BooleanSupplier;
public class WidgetUtils {
public static final BooleanSupplier TRUE_SUPPLIER = () -> true;
public static double translateToWidgetSettingsValue(double value, int max){
return (value / max) * 100;
}