Inventory bar de-select Functionality

I have set up a simple inventory that is one bar across the bottom of the screen. I have it set up simliar to the hotbar in minecraft. I have items correctly being added to the inventory widget, items are selectable, and a highlight shows up when clicked.

The code in the image shows how i’m deselecting the previously clicked item in the inventory and selecting the next item. what i want to do, is to deselect the currently selected item on a click. it isn’t doing that currently because I’m ressetting the selection to false on every button click meaning its constantly turning the highlight on.

a flip flop node doesn’t work. it requires two clicks to reselect something that was automatically deselected by the blueprint.

It looks ok, but I don’t think you need the conditional in the bottom right. When I click box X, just deselect everything followed by selecting box X.

I still can’t deselect a selected box this way.

Ok, I eventually got it figured out. I just had things a little out of order. Also, I realized the script could be simpler.

ClockworkOcean was pretty much correct, i just didn’t understand how to set it up. i had replaced the last branch node in the bottom right with a flip flop.

also, I need the branch the way i have it now, to turn off an already selected button on a second click. Pulling out the branch wholesale results in the button deselecting only if you click a different button, but it remains selected if you click a currently selected button.

And for future people searching, this is a Radio Button style inventory blueprint.