bga-score-sheet
    Preparing search index...

    Create a Score Sheet on an empty element. The Score sheet will not be visible by default, except if there are scores given in the settings.

    Index

    Constructors

    Properties

    animationDuration: number

    The current animation duration.

    element: HTMLElement

    the element to place the sheet on

    the score sheet settings

    Methods

    • Returns boolean

    • Returns void

    • Returns HTMLTableCellElement

    • Parameters

      • entry: Entry

      Returns HTMLTableCellElement

    • Parameters

      • player: Player

      Returns HTMLTableCellElement

    • Parameters

      • entry: Entry
      • playerId: string | number

      Returns HTMLTableCellElement

    • Sets the score on a cell, and trigger the callback if needed.

      Parameters

      • playerId: number
      • property: string
      • score: string | number

      Returns void

    • Triggers the animation of the scores. Makes the score sheet visible.

      Parameters

      • playerScores: PlayerScores

        the scores to display, with an entry for each player. The player entry is an associative array (entry property => score for this entry & this player).

      • animationSettings: AnimationSettings = undefined

        the animation settings, or null if you don't want any animation.

      Returns Promise<void>

    • Define the visibility of the score sheet.

      Parameters

      • visible: boolean = true

      Returns void

    • Skip the running animations. Can be triggered by a click on the Skip button, or programmatically.

      Returns void

    • Return a Promise that resolves at the end of a given number of ms.

      Parameters

      • delay: number

        the time to wait, in milliseconds

      Returns Promise<void>

      a promise when the timer ends