Joshimello / AL2Lab

Calculator for factory game Assembly Line 2
https://al2lab.vercel.app
0 stars 1 forks source link

Starter slider min value and step to 0.25 #1

Closed DatHaker123 closed 9 months ago

DatHaker123 commented 9 months ago

Haven't worked with Svelte much, is there a simple way to make the slider take only specific values (i.e. in this case, only 0.25, 0.5, 0.75, then 1, 2, 3, 4, 5 only)?

vercel[bot] commented 9 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
al2lab ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 8, 2023 11:05pm
Joshimello commented 9 months ago

Thanks! I didn't know it was 0.25 haha, haven't upgraded there yet xD As for the steps, I guess an array of custom values could solve, but I'd need to change the component a bit, since currently using shadcn as ui library. Will work on it soon~

Joshimello commented 9 months ago

implemented custom slider values :D 0e01db6