ConfigMe icon indicating copy to clipboard operation
ConfigMe copied to clipboard

Int property within range

Open ljacqu opened this issue 2 years ago • 1 comments

I might want to have an int property that can only be, for example, between 0 and 10. It would be nice to just let ConfigMe handle it and to be sure that the value is within the range.

ljacqu avatar Jul 03 '23 11:07 ljacqu

Yeah, it can be done for all other numeric types! For example, FloatProperty with a range like:

public class FrequencyProperty extends/implements FloatProperty {
    @Override
    public float maxValue() {
        return 1.0F;
    }
   
    @Override
    public float minValue() {
        return -1.0F;
    }
}

gamerover98 avatar Oct 27 '23 07:10 gamerover98