Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement logarithmic flag for single slider widgets #2415

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

SamuMazzi
Copy link
Contributor

@SamuMazzi SamuMazzi commented Nov 7, 2024

Description:
This PR implements logarithmic flag for the int/double/float_slider. This is done by refactoring a little bit the underlying structs.

I also removed vertical variable and used the flag ImGuiSliderFlags_Vertical, for coherence.

Also a little refactor regarding this PR has been done in mvBasicWidgets.cpp. pre_draw and post_draw parts were all the same (and sometimes with some typos) so I just wrapped them in two functions.

I think this are all changes to the codebase that are not essential, they are simple and I think they improve code quality, but I'd like a feedback on this.

Close #2404

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sliders are missing the logarithmic flag
1 participant