landgreen / n-gon

2-d physics rogue-lite platformer shooter
https://landgreen.github.io/n-gon/
GNU General Public License v3.0
154 stars 226 forks source link

Experiment selection mouse tools #55

Closed Ant-Throw-Pology closed 1 year ago

Ant-Throw-Pology commented 1 year ago

Idea: In the Experiment mode selection screen: Ctrl+clicking a tech gives you however many of that tech are needed to get to the max count of that tech, and Shift+clicking a tech removes all of it, regardless of how many you already have.

Perhaps you could do this by removing the "onclick" attribute in build.populateGrid (line 851) and instead add a click listener to the element at the same time that you add the description dataset attribute (line 887), and in the listener, use the ctrlKey and shiftKey attributes of the MouseEvent object passed to the listener.

landgreen commented 1 year ago

I don't think there is a need for this feature.