Open p0nce opened 7 months ago
EnumParameter
for the longest time, one hour lostThis doesn't crash at runtime:
static immutable string[] names = ["V1", "V2", "V3"];
params.pushBack( mallocNew!EnumParameter(paramSomething, "MyEnum", names, 1));
But this crash:
static immutable string[3] names = ["V1", "V2", "V3"];
params.pushBack( mallocNew!EnumParameter(paramSomething, "MyEnum", names, 1));
find a way to avoid that
@ScriptProperty
double
doesn't exist, despite parameters being double internallysetFromGUINormalized
is a public API that exists forIntegerParameter
andFloatParameter
Calling them with out of [0 .. 1] should clamp them, but also create a debug time assertion, instead of just having the debug time assertion. It is because the primary user for this call is sliders and knobs of all sort, who maintain complicated dragging invariants. Now outside 0 to 1 is allowed.sensitivity
as a property, instead of a Wren-accessible script property (variable), which isn't same as UIKnob. Change that to regular variable.