ConstThe 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 });
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.showrejects,OsdPanel.setreports toScope.onError. The player's tests check that these agree with the player.