-
Notifications
You must be signed in to change notification settings - Fork 169
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
Added definitions for ImageButton with explicit ID #266
Conversation
This will require we raise the minimum ImGui requirement from 1.87 to 1.89. @eliasdaler Thoughts on raising that requirement? |
For what's it's worth, it seems like the old definitions are still available in 1.89, although they are now marked as deprecated. |
Search the repo for "1.87". You should find another reference to that version in a build script. |
Are there certain package managers still shipping <1.89 that we would break support with if we raised this requirement? |
Found it and fixed it in CMakeLists.txt
I would have to check, I mostly use FetchContent with ImGui-SFML so I'm not sure about that |
Search again. There are more references to 1.87. |
You're right my bad, should be fine now (🤞) |
Thanks for cleaning that up. I'm going to give Elias time to weigh in one whether he likes increasing this minimum requirement. |
Let's do it. 1.89 was released more than a year ago and Dear ImGui is a fast moving library which many users are expected to keep up with since it rarely breaks its API. |
Shouldn't overloads without |
They can be kept, as those definitions are still available in 1.89. The only difference is that they are now marked as deprecated. |
I see. Let's just drop these overloads - it's better than copy-paste and we'll need to get rid of them eventually. |
Just dropped them in last commit |
Much better. |
Hello!
I've added support for the new definitions of ImGui::ImageButton that support explicitely setting the id of the widget.
This feature was added in ImGui v1.89 and wasn't implemented in ImGui-SFML as far as I was aware.
Please give any feedback if something is wrong. Thanks :)