478 B
478 B
setMonitor
Sets this frame as a monitor frame
Parameters:
stringThe monitor name ("right", "left",... "monitor_1", "monitor_2",...)
Returns:
frameThe frame being used
Usage:
- Creates a new monitor frame, you can use to show objects on a monitor.
local mainFrame = basalt.createFrame()
local monitorFrame = basalt.createFrame():setMonitor("right")
monitorFrame:setBar("Monitor 1"):showBar()
<frame monitor="right"></frame>