@tavora/sdk / OverlaySource
Interface: OverlaySource
Defined in: packages/sdk/src/protocol.ts:758
One thing a panel can show over the game on its own (overlay.setSources): a clock, a counter, a group of counters as one line. The Overlay page lists these under the panel, and a click on one puts the overlay for its key into the setup.
Properties
group?
optionalgroup?:boolean
Defined in: packages/sdk/src/protocol.ts:764
A group of several things shown as one: the list draws a link icon instead of the item icon.
grows?
optionalgrows?:boolean
Defined in: packages/sdk/src/protocol.ts:777
The frame follows the content, like an OBS text source without a bounding box: it is as big as size (with the room around it) times the scale the user drags it to, and grows or shrinks with size whenever the panel lists a new one. Reset size puts the scale back to 100 %. The page takes the scale from its height (inTavoraFrame). false (or left out): the user sizes the frame and the page fits itself in; with false Tavora also knows that the content is drawn at 100 % in it, so it keeps its size if it grows later. Tavora 0.23.94 and newer; older ones ignore it.
key
key:
string
Defined in: packages/sdk/src/protocol.ts:760
The overlay key it shows from, the same as for overlay.publish and overlay.showOverGame.
name
name:
string
Defined in: packages/sdk/src/protocol.ts:762
What the Overlay page calls it: the item's name, or the line a group shows. At most LIMITS.maxOverlaySourceName characters.
size?
optionalsize?:object
Defined in: packages/sdk/src/protocol.ts:769
How big the overlay is at its natural size, in pixels of a 1080 px high game window, as overlaySize in the manifest is. A new frame starts at this size (with a little room around it); without it, at the manifest's overlaySize.
height
height:
number
width
width:
number