@vestra-player/sdk - v1.11.3
    Preparing search index...

    Variable OSD_LIMITSConst

    OSD_LIMITS: Readonly<
        {
            messageChars: 200;
            panelLines: 32;
            panelBytes: 4096;
            minColumns: 8;
            maxColumns: 1000;
            actions: 2;
            actionChars: 40;
        },
    > = ...

    The player's limits on the on-screen display (Osd), counted on the text as shown: after the player translated it and filled in its arguments. A text over them fails with code invalid: osd.show rejects, OsdPanel.set reports to Scope.onError. The player's tests check that these agree with the player.

    The block shows the first 32 rows of a list, each cut at 60 columns. The player counts the text as shown (after it is translated and formatted); a block over panelLines lines or panelBytes bytes is refused whole with invalid, reported to Scope.onError because set never throws, so the plugin trims the list itself (for very long non-ASCII rows, check the bytes too).

    import { OSD_LIMITS } from "@vestra-player/sdk/testing";

    const panel = plugin.osd.panel();
    const lines = rows.slice(0, OSD_LIMITS.panelLines);
    // maxColumns cuts each longer line and ends it with "…".
    panel.set(lines.join("\n"), null, { maxColumns: 60 });

    1.5.14