Hi all, I’m in the process of creating a UI with UMG in UE 5.1 and I’m having some troubles with some details that are pretty much something I’ve seen in many video games before.
The idea is that I want to have my Comboboxes setup in a way that when you click once, the ButtonStyle of the combobox changes to an opened state which is then switched back to default state when the combobox is closed (whether it’s by selecting an option, loosing focus or clicking outside the combobox’s list). Here is how my combobox looks, right is default state and left is opened state:
I did try to use the On Opening event to apply a custom ButtonStyle to the dropdown, but it’s not reseting the style once the combobox is closed. It keeps using the “opened” style forever and it doesnt seem to be something like an “On Closed” event to reset the style.
I did try using Focused base events to tie in the style reset, but it doesnt apply to every use case and it feels like a patch more than the actual solution.
Can someone please enlighten me on how to manage those states the way I want? It’s pretty frustrating as changing a dropdown’s style when it’s pressed seems likea pretty trivial thing to do.
Thank you!