virtualtabletop-docker/.gitconfig
Roger Lipsett fa0ad654ee
Add scoreboard widget (#1381)
* First working version of scoreboard

* Fix computation of scores in some cases.

* Add horizontal player display.

Rewrite table building code, rewrite css.

* Sort player columns/rows, default values for round names.

* Allow sorting on any attribute of seat, as well as 'total'.

* Set the width/height widget properties instead of DOM property.

* First implementation of scrolling.

* Add scrolling w/fixed row, column.

* Sticky bottom row, allow unseated seats

* Fix z-index of 'Total', customize round display.

* Actually make showAllRounds work. Doh.

* Fix empty scoreboard, customize Round text, fix sortField.

* Implement `currentRound`.

* Change default for `sortField` and add JSON editor support.

* Add read-only property _totals

* Fix sorting crash in certain circumstances.

* Implement SCORE, with JSON edit support.

* Add `"round": "total"` to `SCORE`.

* Add teams processing.

* Change `addTotals` to `showTotals`

* Fix crash for empty score array.

* Fix a number of issues.

* Make sure that each team is an array.

* Oops.

* Revised definition of SCORE.

* Clean up handling of teams.

* Fix reported crash.

* Make scoreboard corners rounded.

* Change JSON editor for new SCORE parameters.

* Change rounding strategy for scoreboard in css.

* Fix children removed from DOM

* store table in `this.tableDOM` and clear that element instead of everything

* Change ScoreBoard to Scoreboard

* Move table height computation into CSS.

* Fix sort functions.

* Move sticky rows/cols into CSS; determine header text color based on background.

* Erase table on invalid 'seats' parameter; also allow "seats": "Seat1"

* Fix read-only property processing for scoreboard.

* Fix foreground color computation for named colors.

* Fix sort routine to work with unnamed players, some other code reorg.

* includeAllSeats -> showAllSeats, usePlayerColors -> showPlayerColors, 'None' -> '-'

* Add 'autosizeColumns' to allow automatic equalization of column sizes.

This is on by default.

* Change scoreboard css to make autosizing work better.

* Various code cleanup to respond to comments.

* Remove display: flex in the scoreboard css.

* Fix firstColWidth problem in css

* Fix error in team score computation.

* Now non-numeric scores are treated as zero but are shown in the display.

* Oops.

* inserted an intermediate div so that children are not hidden

* Fix issue with non-array scores.

* Remove height setting on table to allow white space at bottom.

* added manual input overlay when clicking a scoreboard

* catch needs a variable apparently

* removed unnecessary CSS properties

* removed cellType parameter from addRowToTable

* renamed getHexColor to toRGB

* empty the table first to avoid duplicated code

* moved scoreboard update to updateLinkedWidgets

* made intermediate div its own stacking context

* fixed indentation

* turn the score into a number

* Apply background-color to root widget and inherit border-radius.

* Don't use applyDeltaToDOM(null) to update score table.

* Minor code quality changes.

* Now team-based scoreboards will list all players on each team when editing the scoreboard.

* Seats are now ordered in editor as they are in scoreboard.

Also seats inside teams are ordered by index.

Finally, scalar scores are no longer converted to arrays.

* Fix totals-only scoreboards. Also move click routine to the end.

* Use new contrastAnyColor function

* Remove getFgColor, replace calls by calls to contrastAnyColor.

* Add Hearts with new scoreboard

* Add Scoreboard tutorial with 3 variants

* Add SCORE tutorial with 1 variant

* Update Tittle with scoreboard

* Tittle-add reset scoreboard function to restart button

* Add scoreboard to Wordy

* puts click in correct place

* Wordy-add turn capability into scoreboard

* Tittle-add turn capability to scoreboard

* Fix typo in Tittle

* Fix typo in Wordy

Co-authored-by: 96LawDawg <76912527+96LawDawg@users.noreply.github.com>
Co-authored-by: MICHAEL W TAYLOR <pafbadc@gmail.com>
Co-authored-by: ArnoldSmith86 <arnold.smith.86@mail.ru>
Co-authored-by: RaphaelAlvez <73476656+RaphaelAlvez@users.noreply.github.com>
Co-authored-by: Robert Flack <flackr@gmail.com>
2023-01-04 18:43:42 -05:00

9 lines
204 B
INI

[user]
name = 96LawDawg
email = 76912527+96LawDawg@users.noreply.github.com
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true