boardgamers / gaia-engine

Javascript engine for project gaia
MIT License
13 stars 6 forks source link

Range for freeActions #119

Closed rzulian closed 6 years ago

rzulian commented 6 years ago

This will allow the viewer to allow multiple payments

coyotte508 commented 6 years ago

Maybe instead of adding multiples of free action, you can add a range parameter (in addition to income & cost) which tells the UX how many times the action can be exectured. then let the UX handle it. Maybe we can make the buttons dropdowns with how many times (and the burn button too).

coyotte508 commented 6 years ago

Here are dropdowns in bootstrap: https://getbootstrap.com/docs/4.0/components/dropdowns/

rzulian commented 6 years ago

Nice idea! This PR is adding the range. Please have a look and approve.I'll work on the viewer then

coyotte508 commented 6 years ago

By the way, bootstrap, in addition to regular dropdowns, has a "split dropdown", maybe we can use that on the UX. With the main part of the button doing the regular freeaction, and the dropdown part allowing the choice to do the free action 1-X times.