Draw hud hitbox issues

Hi there, I have a hud where I draw some buttons, and there’s a button that when I click on it I change it’s icon and when I do End mouse over, it spawns the object showed in the icon, the problem I’m having is that when I click this button, it also activate the end mouse over event and spawns the object.
Any help on this?

Someone? It looks like a simple problem to solve

I resolved the problem by just adding a boolean that when it’s activated, it does not spawns actors, so when I click to change the icon I activate the boolean, the button changes it’s icon, and then after a delay of 0.5 second the boolean deactivate. It was easy as I supposed