Set flags for ImageButton? #6126

Closed
opened 2023-01-29 16:38:36 +00:00 by indjev99 · 1 comment
indjev99 commented 2023-01-29 16:38:36 +00:00 (Migrated from github.com)

I've been using ButtonEx to set additional flags. In particular, I was setting ImGuiButtonFlags_AllowItemOverlap, because my buttons represent cards that may be partially on top of each other (and I want presses to count for the top most card). However, as I was now switching to ImageButton, I found that ImageButtonEx has no such field. Is there a workaround?

Note: I am pretty sure I know how to mod the library to have this, but I'd rather not.

I've been using `ButtonEx` to set additional flags. In particular, I was setting `ImGuiButtonFlags_AllowItemOverlap`, because my buttons represent cards that may be partially on top of each other (and I want presses to count for the top most card). However, as I was now switching to `ImageButton`, I found that `ImageButtonEx` has no such field. Is there a workaround? Note: I am pretty sure I know how to mod the library to have this, but I'd rather not.
ocornut commented 2023-01-31 10:31:30 +00:00 (Migrated from github.com)

Hello,
I agree this is missing.
For now most of those flags are in internal so I've added the additional parameter to ImageButtonEx() but not the outer public-layer yet. Pushed change in d719776

Thank you!

Hello, I agree this is missing. For now most of those flags are in internal so I've added the additional parameter to `ImageButtonEx()` but not the outer public-layer yet. Pushed change in d719776 Thank you!
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ocornut/imgui#6126
No description provided.