Lea-fish / Leafish

A minecraft-like multi version client implemented in Rust.
Apache License 2.0
824 stars 46 forks source link

working sliders #267

Closed cooltexture1 closed 1 year ago

cooltexture1 commented 1 year ago

I saw that the src/screen/settings.rs file contained a few TODOs for sliders in the menu system. So i created a slider ui element. I also created a setting for the mouse sensitivity and implemented a slider for it in the Controls tab of the menu. It is working but can probably be improved alot, like updating the slider position every tick to make it slide smoothly. Most of the boilerplate code for the Menu itself or the button is just copied over from the existing buttons and menus.

skillman623 commented 1 year ago

Thanks I'll look into at least documenting why the linux build is failing tomorrow.

cooltexture1 commented 1 year ago

oh yea, the build seems to fail because of a trailing whitespace on a line that cargo fmt --check is not happy about. ill fix it

cooltexture1 commented 1 year ago

i think github automatically squashes all commits into one if it is merged, but if it doesnt this should probably be squashed into a single commit

terrarier2111 commented 1 year ago

Thanks for your amazing work!