import{_ as s,o as a,c as n,Q as o}from"./chunks/framework.4313453f.js";const h=JSON.parse('{"title":"BigMonitor","description":"","frontmatter":{},"headers":[],"relativePath":"references/bigmonitor.md","filePath":"references/bigmonitor.md","lastUpdated":null}'),l={name:"references/bigmonitor.md"},p=o(`
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
| Property | Type | Description |
|---|---|---|
| group | table | A 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. |
{
[y1] = {"x1", "x2", "x3"}
[y2] = {"x1", "x2", "x3"}
}{
[y1] = {"x1", "x2", "x3"}
[y2] = {"x1", "x2", "x3"}
}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()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()