I’m currently implementing an inventory system where there is a max storage, so a delete/sell function is required.
I realised that I needed to make a confirmation for the delete button, so what I did was when the red delete button is pressed, it turns grey, and 1.5s later, it turns back to red and the text in the button now says “Confirm?”. Once the button is pressed again, the item is deleted for good. I’ll be implementing a mass delete feature so the 1.5s wait shouldn’t be a worry, though let me know if you think otherwise.
Honestly, I did this because I was lazy to make a completely separate GUI that would pop up for confirmation, but in the end it worked out for me because I think this is a good way to handle confirmation as the player’s screen wouldn’t be interrupted with a confirmation GUI. However, I also have opposing views, a 1.5s wait might annoy the player, and having a separate confirmation GUI would make accidental deletion less likely as the confirm button would be somewhere else on the screen, as opposed to having the confirmation button on the delete button itself.
What do you think?