Docs update + some element updates

This commit is contained in:
Robert Jelic
2025-04-06 00:57:19 +02:00
parent 5ccd201be0
commit f911e9bce8
11 changed files with 159 additions and 36 deletions

View File

@@ -6,7 +6,10 @@ local colorHex = require("libraries/colorHex")
---@configDescription The Display is a special element which uses the cc window API which you can use.
---@configDefault false
--- The Display is a special element where you can use the window (term) API to draw on a element, useful when you need to use external APIs.
--- The Display is a special element where you can use the window (term) API to draw on the display, useful when you need to use external APIs.
--- @usage local display = main:addDisplay() -- Create a display element
--- @usage local displayWindow = display:getWindow() -- Get the window object of the display
--- @usage displayWindow.write("Hello World!") -- Write "Hello World!" to the display
---@class Display : VisualElement
local Display = setmetatable({}, VisualElement)
Display.__index = Display