Files
Basalt2/src/elements/Frame.lua
Robert Jelic 2b8a0764bc LuaLS Test
2025-02-10 16:47:00 +01:00

18 lines
426 B
Lua

local Container = require("elements/Container")
---@class Frame : Container
local Frame = setmetatable({}, Container)
Frame.__index = Frame
function Frame.new(id, basalt)
local self = setmetatable({}, Frame):__init()
self:init(id, basalt)
self.set("width", 12)
self.set("height", 6)
self.set("background", colors.blue)
self.set("type", "Frame")
self.set("z", 10)
return self
end
return Frame