nicholas-maltbie / GGJ-2023

Isle of Roots
http://nickmaltbie.com/GGJ-2023
MIT License
3 stars 0 forks source link

Number Select Plant for Tableau #16

Open nicholas-maltbie opened 1 year ago

nicholas-maltbie commented 1 year ago

In addition to selecting plant by scrolling on mouse wheel, add ability to change selected plant by hitting a number key.

ndamalas commented 1 year ago

Right now the scroll wheel method adds/subtracts from the current selection. Do we need to make an entire new InputActionReference to just grab the values from the numbered keys? Because in that case we just want to set it to the raw value, not add/subtract from the current selection.

ndamalas commented 1 year ago

My thinking was in the Update function of PlantIconTableau.cs we would have an if/else to see which InputActionReference was triggered. If its the scroll wheel, we keep what we have, if its numpad we just get the raw number value