Hiyve Components - v1.0.0
    Preparing search index...

    Props for FrogBandGame.

    interface FrogBandGameProps {
        bandBook?: boolean;
        collectionStore?: CollectionStore;
        game?: string;
        instructions?: false | GameInstructions | readonly GameInstructions[];
        labels?: Partial<FrogBandLabels>;
        levels?: number;
        mascot?: false | MascotName;
        onAnother?: () => void;
        onBandCompleted?: (summary: DeckSummary) => void;
        onContinue?: () => void;
        onError?: (error: Error) => void;
        onLevelChange?: (level: number) => void;
        onMemberCollected?: (member: BandMember, isNew: boolean) => void;
        onResult?: (result: GameResult) => void;
        player?: { id: string; name?: string };
        resultStore?: ResultStore;
        samples?: SampleSource;
        seed: number;
        settings: Partial<BandSettings>;
        shellLabels?: Partial<GameShellLabels>;
        showInstructionsFirst?: boolean;
        showScore?: boolean;
        sounds?: boolean;
        speak?: (text: string) => void | Promise<void>;
        subtitle?: string;
        sx?: SxProps<Theme>;
        title?: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    bandBook?: boolean

    Show the band book: its button on the Ready screen and the player won on the End screen (default: true)

    collectionStore?: CollectionStore

    Where the band is kept, one collection per player; without one it lasts as long as the page

    game?: string

    The game's name, stamped on its results (default: the kinds of its cards)

    instructions?: false | GameInstructions | readonly GameInstructions[]

    How to play, shown from the help button and on first play (default: made from the kinds of cards; false hides the help button)

    labels?: Partial<FrogBandLabels>
    levels?: number

    How many levels the pills offer (default: 5)

    mascot?: false | MascotName

    The mascot who reacts to answers (default: 'owl'; false for none)

    onAnother?: () => void

    A new show from the End screen: deal another seed

    onBandCompleted?: (summary: DeckSummary) => void

    The last song was played (or the crowd drifted away): how the rounds went

    onContinue?: () => void

    Onward from the End screen (back to a map, say): a button with a forward arrow, the main one

    onError?: (error: Error) => void
    onLevelChange?: (level: number) => void

    Level pills on the Ready screen: a pill was chosen (the host deals the game again at that level). The pills show only when this is given

    onMemberCollected?: (member: BandMember, isNew: boolean) => void

    A finished show brought a player into the band: isNew the first time

    onResult?: (result: GameResult) => void

    A result was made, whether or not a store kept it

    player?: { id: string; name?: string }

    Who is playing, stamped on results

    resultStore?: ResultStore

    Where results go; nothing is kept without it

    samples?: SampleSource

    Recorded piano samples for the notes the cards play (see UseGameSoundsOptions); without them a small built-in voice plays

    seed: number
    settings: Partial<BandSettings>

    The show: its level (1–5) sets the tempo, the timing windows, the rhythms, the time signatures and the length of the songs together; songs how many (default: 3)

    shellLabels?: Partial<GameShellLabels>

    The shell's words: the HUD, the Ready and End screens, How to play

    showInstructionsFirst?: boolean

    Show how to play before the first card (default: false)

    showScore?: boolean

    Show points, stars and streak as the game goes (default: true)

    sounds?: boolean

    Sound on (default: true); a mute button in the HUD silences it as the show goes on

    speak?: (text: string) => void | Promise<void>

    Your own recordings for How to play's words (see useReadAloud)

    subtitle?: string

    A line under the title

    sx?: SxProps<Theme>
    title?: string

    The game's name over the stage