Conversation
|
In principle this is correct, but merging #3993 was meant to solve a specific use cases which was not possible to use without the public API. I realize that the presence of (I realize that I promised the "path" thing described above a while ago, we've been happily using in the TestEngine, see "named references", it's mostly another API design issue that it's not there yet in popups). IMHO for now I would prefer to snooze this until I can spend time to think about this more thoroughly, and suggest you use "Workaround 1" which is not really a problem at all, just call
Your PR is good, thank you! |
As the title says, this PR adds an overload to
BeginPopupand takes in anImGuiID.OpenPopupalready has anImGuiIDoverload, so I was a bit confused whyBeginPopupdidn't have this.Related to: #3993
This is not a huge issue since there are some workarounds, but they either make you add a new variable or include
imgui_internal.hWorkaround 1:
Add name variable to use in
GetIDandBeginPopupWorkaround 2:
Include
imgui_internal.hand useBeginPopupExEdit: This also removed all of the default flags, so you need to manually add those again.
PR fix:
Added an overload for
BeginPopupto take in anImGuiIDMost of the time, I call
OpenPopupin nested IDs so I almost always useImGuiIDfor pop-ups.This is my first PR, so I'm sorry if I missed a rule/guideline.