zengm-games / zengm

Basketball GM (and other ZenGM games) are single-player sports management simulation games, made entirely in client-side JavaScript.
https://zengm.com
Other
349 stars 127 forks source link

QOL: Heal team button #443

Closed domini7 closed 1 year ago

domini7 commented 1 year ago

Couldn't figure out how to disappear the button if the team was healthy. Also not sure how to deal with this awkward gap of space

image

dumbmatter commented 1 year ago

I'm going to make a couple little changes and release this tomorrow probably, thanks!

dumbmatter commented 1 year ago

https://github.com/zengm-games/zengm/commit/5efc88af237c38c2e6dd464912cb7c3d9595c0df - shorter API code by making it always pass an array, even for one player. And for the UI, it shows all the buttons on one row if there is enough room.