playScreen.ts 381 B

12345678
  1. import type { DisplayMode } from './types'
  2. /** Card Play asks only in per-screen mode with two or more real monitors. All screens is the default. */
  3. export function cardPlayNeedsScreenChoice(mode: DisplayMode, targets: readonly string[]): boolean {
  4. return mode === 'per-screen' && targets.filter((name) => name !== '*').length > 1
  5. }
  6. export const CARD_PLAY_DEFAULT_SCREEN = '*'