import{_ as s,c as i,o as a,a4 as t}from"./chunks/framework.nQaBHiNx.js";const y=JSON.parse('{"title":"BigMonitor","description":"","frontmatter":{},"headers":[],"relativePath":"references/bigmonitor.md","filePath":"references/bigmonitor.md","lastUpdated":null}'),n={name:"references/bigmonitor.md"},e=t(`

BigMonitor

Unlike the standard Monitor, BigMonitor has the capability to render across multiple monitors, simulating a single expansive display.

BigMonitor inherit from Container, VisualElement and BasicElement

Properties

PropertyTypeDescription
grouptableA table specifying the arrangement of multiple monitors in the BigMonitor group. Each entry in the table represents a row, where the key indicates the Y-coordinate and the value is an array containing the X-coordinates of the monitors in that row.

Example of the Table Layout for Groups:

lua
{
    [y1] = {"x1", "x2", "x3"}
    [y2] = {"x1", "x2", "x3"}
}

Example

Click to see example
lua
local basalt = require("basalt")

local monitor = basalt.addBigMonitor()

local monitorGroup = {
    [1] = {"monitor_1", "monitor_2"},
    [2] = {"monitor_3", "monitor_4"}
}

monitor:setGroup(monitorGroup)

basalt.autoUpdate()
`,9),h=[e];function l(p,k,r,o,E,d){return a(),i("div",null,h)}const c=s(n,[["render",l]]);export{y as __pageData,c as default};