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

Baseframe

Base frames are fundamental elements in Basalt, typically the first element you need. They can be created using basalt.addFrame. Base frames are unique in that they do not require a parent container. They occupy the entire screen. If you need a BaseFrame that doesn't occupy the entire screen, consider using CC:Tweaked's Window API.

It's important to note that only one base frame can be active (visible) at a time. While you can create multiple base frames, only the currently active one listens to incoming events (except for some events like time-events and peripheral-events). To switch between BaseFrames, you can use basalt.switchFrame

Baseframe inherit from Container, VisualElement and BasicElement

Example

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

local main = basalt.addFrame() -- a new baseframe is created.

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