drwhut / tabletop-club

An open-source platform for playing tabletop games in a physics-based 3D environment for Windows, macOS, and Linux! Made with the Godot Engine.
https://tabletopclub.net
MIT License
1.27k stars 55 forks source link

Doubleclick in previews to trigger action #149

Closed elmodor closed 1 year ago

elmodor commented 1 year ago

Fixes/Solves While I was create an asset pack, I was adding cards to the game quite often. Clicking on the card an add is quite tedious after a while. Also a double click on an item is usually an enter action in many games / GUIs.

So I tried to implement a double click action for these. The double click action now works for:

elmodor commented 1 year ago

So I modified the click behavior. Singleclick does not unselect anymore. Only multi_select can unselect. I think this looks more clean now too.

I added the function set_selected_single which unselects all other pieces except the own. Triggered on a singleclick.