Open GniLudio opened 10 months ago
To display the initial value:
function InitSlider(sliderId) {
const slider = FindDotaHudElement(sliderId);
const min = isNaN(slider["min"]) ? 0 : slider["min"];
const value = parseFloat(slider.GetAttributeString("value", min.toString()));
if (value <= min) slider["min"] = value-1;
slider.value = value;
if (value <= min) slider["min"] = min;
}
Sorry, didn't see this. Good initiative, turn it into a pull request maybe?
It would be nice to have the ability to show settings as sliders.
Notes:
invert="true"
doesn't work withdisplayprecision