fix: inconsistency between SD play value, model custom script screen and value widget (#4391)
Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
This commit is contained in:
@@ -157,7 +157,7 @@ class ScriptEditWindow : public Page
|
|||||||
COLOR_THEME_PRIMARY1);
|
COLOR_THEME_PRIMARY1);
|
||||||
lbl->padLeft(PAD_LARGE);
|
lbl->padLeft(PAD_LARGE);
|
||||||
new DynamicNumber<int16_t>(
|
new DynamicNumber<int16_t>(
|
||||||
line, rect_t{}, [=]() { return calcRESXto1000(so->value); });
|
line, rect_t{}, [=]() { return calcRESXto1000(so->value); }, PREC1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -136,6 +136,12 @@ class ValueWidget : public Widget
|
|||||||
TimerOptions timerOptions;
|
TimerOptions timerOptions;
|
||||||
timerOptions.options = SHOW_TIME;
|
timerOptions.options = SHOW_TIME;
|
||||||
valueTxt = getTimerString(tme, timerOptions);
|
valueTxt = getTimerString(tme, timerOptions);
|
||||||
|
#if defined(LUA_INPUTS)
|
||||||
|
}
|
||||||
|
else if (field >= MIXSRC_FIRST_LUA && field <= MIXSRC_LAST_LUA) {
|
||||||
|
valueTxt =
|
||||||
|
getSourceCustomValueString(field, calcRESXto1000(getValue(field)), valueFlags | PREC1);
|
||||||
|
#endif
|
||||||
} else {
|
} else {
|
||||||
valueTxt =
|
valueTxt =
|
||||||
getSourceCustomValueString(field, getValue(field), valueFlags);
|
getSourceCustomValueString(field, getValue(field), valueFlags);
|
||||||
|
|||||||
Reference in New Issue
Block a user