Update config, LuaLS definitions, bundle and changelog

This commit is contained in:
github-actions[bot]
2025-03-04 13:34:03 +00:00
parent 4434989731
commit a07c74d855
2 changed files with 401 additions and 390 deletions

View File

@@ -1,385 +1,385 @@
return {
["metadata"] = {
["version"] = "2.0",
["generated"] = "Tue Mar 4 13:27:04 2025",
},
["categories"] = {
["libraries"] = {
["files"] = {
["utils"] = {
["default"] = true,
["path"] = "libraries/utils.lua",
["description"] = "",
["size"] = 2661,
["requires"] = {
},
},
["expect"] = {
["default"] = true,
["path"] = "libraries/expect.lua",
["description"] = "",
["size"] = 846,
["requires"] = {
},
},
["colorHex"] = {
["default"] = true,
["path"] = "libraries/colorHex.lua",
["description"] = "",
["size"] = 132,
["requires"] = {
},
},
},
["description"] = "Libraries",
},
["elements"] = {
["files"] = {
["Input"] = {
["default"] = true,
["path"] = "elements/Input.lua",
["description"] = "A text input field with various features",
["size"] = 7997,
["requires"] = {
[1] = "VisualElement",
},
},
["Slider"] = {
["default"] = true,
["path"] = "elements/Slider.lua",
["description"] = "",
["size"] = 4676,
["requires"] = {
[1] = "VisualElement",
},
},
["Scrollbar"] = {
["default"] = true,
["path"] = "elements/Scrollbar.lua",
["description"] = "",
["size"] = 9164,
["requires"] = {
[1] = "VisualElement",
},
},
["List"] = {
["default"] = true,
["path"] = "elements/List.lua",
["description"] = "A scrollable list of selectable items",
["size"] = 8645,
["requires"] = {
[1] = "VisualElement",
},
},
["Tree"] = {
["default"] = true,
["path"] = "elements/Tree.lua",
["description"] = "",
["size"] = 7885,
["requires"] = {
[1] = "VisualElement",
},
},
["Checkbox"] = {
["default"] = true,
["path"] = "elements/Checkbox.lua",
["description"] = "",
["size"] = 2872,
["requires"] = {
[1] = "VisualElement",
},
},
["BaseFrame"] = {
["default"] = true,
["path"] = "elements/BaseFrame.lua",
["description"] = "This is the base frame class. It is the root element of all elements and the only element without a parent.",
["size"] = 5868,
["requires"] = {
[1] = "Container",
},
},
["Graph"] = {
["default"] = false,
["path"] = "elements/Graph.lua",
["description"] = "A point based graph element",
["size"] = 5940,
["requires"] = {
},
},
["Table"] = {
["default"] = true,
["path"] = "elements/Table.lua",
["description"] = "",
["size"] = 7586,
["requires"] = {
[1] = "VisualElement",
},
},
["TextBox"] = {
["default"] = false,
["path"] = "elements/TextBox.lua",
["description"] = "A multi-line text editor component with cursor support and text manipulation features",
["size"] = 10904,
["requires"] = {
[1] = "VisualElement",
},
},
["BarChart"] = {
["default"] = false,
["path"] = "elements/BarChart.lua",
["description"] = "",
["size"] = 2634,
["requires"] = {
},
},
["Program"] = {
["default"] = true,
["path"] = "elements/Program.lua",
["description"] = "",
["size"] = 6295,
["requires"] = {
[1] = "VisualElement",
},
},
["BaseElement"] = {
["default"] = true,
["path"] = "elements/BaseElement.lua",
["description"] = "The base class for all UI elements in Basalt.",
["size"] = 8911,
["requires"] = {
},
},
["Button"] = {
["default"] = true,
["path"] = "elements/Button.lua",
["description"] = "",
["size"] = 1632,
["requires"] = {
[1] = "VisualElement",
},
},
["Dropdown"] = {
["default"] = false,
["path"] = "elements/Dropdown.lua",
["description"] = "A dropdown menu that shows a list of selectable items",
["size"] = 5845,
["requires"] = {
[1] = "List",
},
},
["Label"] = {
["default"] = true,
["path"] = "elements/Label.lua",
["description"] = "A simple text display element that automatically resizes its width based on the text content.",
["size"] = 3069,
["requires"] = {
[1] = "VisualElement",
},
},
["LineChart"] = {
["default"] = false,
["path"] = "elements/LineChart.lua",
["description"] = "",
["size"] = 2707,
["requires"] = {
},
},
["Image"] = {
["default"] = false,
["path"] = "elements/Image.lua",
["description"] = "An element that displays an image in bimg format",
["size"] = 13312,
["requires"] = {
[1] = "VisualElement",
},
},
["Container"] = {
["default"] = true,
["path"] = "elements/Container.lua",
["description"] = "The container class. It is a visual element that can contain other elements. It is the base class for all containers",
["size"] = 23180,
["requires"] = {
[1] = "VisualElement",
},
},
["Frame"] = {
["default"] = true,
["path"] = "elements/Frame.lua",
["description"] = "A frame element that serves as a grouping container for other elements.",
["size"] = 4435,
["requires"] = {
[1] = "Container",
},
},
["VisualElement"] = {
["default"] = true,
["path"] = "elements/VisualElement.lua",
["description"] = "The Visual Element class which is the base class for all visual UI elements",
["size"] = 17105,
["requires"] = {
[1] = "BaseElement",
},
},
["ProgressBar"] = {
["default"] = true,
["path"] = "elements/ProgressBar.lua",
["description"] = "",
["size"] = 2272,
["requires"] = {
[1] = "VisualElement",
},
},
["BigFont"] = {
["default"] = false,
["path"] = "elements/BigFont.lua",
["description"] = "",
["size"] = 20332,
["requires"] = {
[1] = "VisualElement",
},
},
["Menu"] = {
["default"] = true,
["path"] = "elements/Menu.lua",
["description"] = "A horizontal menu bar with selectable items.",
["size"] = 4657,
["requires"] = {
[1] = "List",
},
},
["Flexbox"] = {
["default"] = true,
["path"] = "elements/Flexbox.lua",
["description"] = "A flexbox container that arranges its children in a flexible layout.",
["size"] = 11530,
["requires"] = {
[1] = "Container",
},
},
},
["description"] = "UI Elements",
},
["plugins"] = {
["files"] = {
["theme"] = {
["default"] = true,
["path"] = "plugins/theme.lua",
["description"] = "",
["size"] = 5885,
["requires"] = {
},
},
["benchmark"] = {
["default"] = true,
["path"] = "plugins/benchmark.lua",
["description"] = "",
["size"] = 12515,
["requires"] = {
},
},
["animation"] = {
["default"] = true,
["path"] = "plugins/animation.lua",
["description"] = "",
["size"] = 14116,
["requires"] = {
},
},
["reactive"] = {
["default"] = true,
["path"] = "plugins/reactive.lua",
["description"] = "",
["size"] = 6962,
["requires"] = {
},
},
["debug"] = {
["default"] = true,
["path"] = "plugins/debug.lua",
["description"] = "",
["size"] = 6175,
["requires"] = {
},
},
["xml"] = {
["default"] = true,
["path"] = "plugins/xml.lua",
["description"] = "",
["size"] = 17568,
["requires"] = {
},
},
["state"] = {
["default"] = true,
["path"] = "plugins/state.lua",
["description"] = "",
["size"] = 5867,
["requires"] = {
},
},
},
["description"] = "Plugins",
},
["core"] = {
["files"] = {
["propertySystem"] = {
["default"] = true,
["path"] = "propertySystem.lua",
["description"] = "",
["size"] = 15225,
["requires"] = {
},
},
["elementManager"] = {
["default"] = true,
["path"] = "elementManager.lua",
["description"] = "",
["size"] = 6297,
["requires"] = {
},
},
["render"] = {
["default"] = true,
["path"] = "render.lua",
["description"] = "",
["size"] = 11100,
["requires"] = {
},
},
["main"] = {
["default"] = true,
["path"] = "main.lua",
["description"] = "",
["size"] = 8188,
["requires"] = {
},
},
["log"] = {
["default"] = true,
["path"] = "log.lua",
["description"] = "",
["size"] = 3142,
["requires"] = {
},
},
["init"] = {
["default"] = true,
["path"] = "init.lua",
["description"] = "",
["size"] = 519,
["requires"] = {
},
["description"] = "",
["path"] = "log.lua",
},
["errorManager"] = {
["default"] = true,
["path"] = "errorManager.lua",
["description"] = "",
["size"] = 3789,
["default"] = true,
["requires"] = {
},
["description"] = "",
["path"] = "errorManager.lua",
},
["main"] = {
["size"] = 8188,
["default"] = true,
["requires"] = {
},
["description"] = "",
["path"] = "main.lua",
},
["propertySystem"] = {
["size"] = 15225,
["default"] = true,
["requires"] = {
},
["description"] = "",
["path"] = "propertySystem.lua",
},
["render"] = {
["size"] = 11100,
["default"] = true,
["requires"] = {
},
["description"] = "",
["path"] = "render.lua",
},
["init"] = {
["size"] = 519,
["default"] = true,
["requires"] = {
},
["description"] = "",
["path"] = "init.lua",
},
["elementManager"] = {
["size"] = 6297,
["default"] = true,
["requires"] = {
},
["description"] = "",
["path"] = "elementManager.lua",
},
},
["description"] = "Core Files",
},
["libraries"] = {
["files"] = {
["utils"] = {
["size"] = 2661,
["default"] = true,
["requires"] = {
},
["description"] = "",
["path"] = "libraries/utils.lua",
},
["colorHex"] = {
["size"] = 132,
["default"] = true,
["requires"] = {
},
["description"] = "",
["path"] = "libraries/colorHex.lua",
},
["expect"] = {
["size"] = 846,
["default"] = true,
["requires"] = {
},
["description"] = "",
["path"] = "libraries/expect.lua",
},
},
["description"] = "Libraries",
},
["plugins"] = {
["files"] = {
["theme"] = {
["size"] = 5885,
["default"] = true,
["requires"] = {
},
["description"] = "",
["path"] = "plugins/theme.lua",
},
["benchmark"] = {
["size"] = 12515,
["default"] = true,
["requires"] = {
},
["description"] = "",
["path"] = "plugins/benchmark.lua",
},
["animation"] = {
["size"] = 14116,
["default"] = true,
["requires"] = {
},
["description"] = "",
["path"] = "plugins/animation.lua",
},
["state"] = {
["size"] = 5867,
["default"] = true,
["requires"] = {
},
["description"] = "",
["path"] = "plugins/state.lua",
},
["xml"] = {
["size"] = 17568,
["default"] = true,
["requires"] = {
},
["description"] = "",
["path"] = "plugins/xml.lua",
},
["reactive"] = {
["size"] = 6962,
["default"] = true,
["requires"] = {
},
["description"] = "",
["path"] = "plugins/reactive.lua",
},
["debug"] = {
["size"] = 6175,
["default"] = true,
["requires"] = {
},
["description"] = "",
["path"] = "plugins/debug.lua",
},
},
["description"] = "Plugins",
},
["elements"] = {
["files"] = {
["Checkbox"] = {
["size"] = 2872,
["default"] = true,
["requires"] = {
[1] = "VisualElement",
},
["description"] = "",
["path"] = "elements/Checkbox.lua",
},
["Program"] = {
["size"] = 6295,
["default"] = true,
["requires"] = {
[1] = "VisualElement",
},
["description"] = "",
["path"] = "elements/Program.lua",
},
["Scrollbar"] = {
["size"] = 9164,
["default"] = true,
["requires"] = {
[1] = "VisualElement",
},
["description"] = "",
["path"] = "elements/Scrollbar.lua",
},
["Flexbox"] = {
["size"] = 11530,
["default"] = true,
["requires"] = {
[1] = "Container",
},
["description"] = "A flexbox container that arranges its children in a flexible layout.",
["path"] = "elements/Flexbox.lua",
},
["ProgressBar"] = {
["size"] = 2272,
["default"] = true,
["requires"] = {
[1] = "VisualElement",
},
["description"] = "",
["path"] = "elements/ProgressBar.lua",
},
["Tree"] = {
["size"] = 7885,
["default"] = true,
["requires"] = {
[1] = "VisualElement",
},
["description"] = "",
["path"] = "elements/Tree.lua",
},
["Label"] = {
["size"] = 3069,
["default"] = true,
["requires"] = {
[1] = "VisualElement",
},
["description"] = "A simple text display element that automatically resizes its width based on the text content.",
["path"] = "elements/Label.lua",
},
["Dropdown"] = {
["size"] = 5845,
["default"] = false,
["requires"] = {
[1] = "List",
},
["description"] = "A dropdown menu that shows a list of selectable items",
["path"] = "elements/Dropdown.lua",
},
["BarChart"] = {
["size"] = 2634,
["default"] = false,
["requires"] = {
},
["description"] = "",
["path"] = "elements/BarChart.lua",
},
["Button"] = {
["size"] = 1632,
["default"] = true,
["requires"] = {
[1] = "VisualElement",
},
["description"] = "",
["path"] = "elements/Button.lua",
},
["TextBox"] = {
["size"] = 10904,
["default"] = false,
["requires"] = {
[1] = "VisualElement",
},
["description"] = "A multi-line text editor component with cursor support and text manipulation features",
["path"] = "elements/TextBox.lua",
},
["Graph"] = {
["size"] = 5940,
["default"] = false,
["requires"] = {
},
["description"] = "A point based graph element",
["path"] = "elements/Graph.lua",
},
["Image"] = {
["size"] = 13312,
["default"] = false,
["requires"] = {
[1] = "VisualElement",
},
["description"] = "An element that displays an image in bimg format",
["path"] = "elements/Image.lua",
},
["Table"] = {
["size"] = 7586,
["default"] = true,
["requires"] = {
[1] = "VisualElement",
},
["description"] = "",
["path"] = "elements/Table.lua",
},
["BigFont"] = {
["size"] = 20332,
["default"] = false,
["requires"] = {
[1] = "VisualElement",
},
["description"] = "",
["path"] = "elements/BigFont.lua",
},
["Input"] = {
["size"] = 7997,
["default"] = true,
["requires"] = {
[1] = "VisualElement",
},
["description"] = "A text input field with various features",
["path"] = "elements/Input.lua",
},
["LineChart"] = {
["size"] = 2707,
["default"] = false,
["requires"] = {
},
["description"] = "",
["path"] = "elements/LineChart.lua",
},
["VisualElement"] = {
["size"] = 17150,
["default"] = true,
["requires"] = {
[1] = "BaseElement",
},
["description"] = "The Visual Element class which is the base class for all visual UI elements",
["path"] = "elements/VisualElement.lua",
},
["List"] = {
["size"] = 8645,
["default"] = true,
["requires"] = {
[1] = "VisualElement",
},
["description"] = "A scrollable list of selectable items",
["path"] = "elements/List.lua",
},
["BaseFrame"] = {
["size"] = 5868,
["default"] = true,
["requires"] = {
[1] = "Container",
},
["description"] = "This is the base frame class. It is the root element of all elements and the only element without a parent.",
["path"] = "elements/BaseFrame.lua",
},
["Frame"] = {
["size"] = 4435,
["default"] = true,
["requires"] = {
[1] = "Container",
},
["description"] = "A frame element that serves as a grouping container for other elements.",
["path"] = "elements/Frame.lua",
},
["Slider"] = {
["size"] = 4676,
["default"] = true,
["requires"] = {
[1] = "VisualElement",
},
["description"] = "",
["path"] = "elements/Slider.lua",
},
["Menu"] = {
["size"] = 4657,
["default"] = true,
["requires"] = {
[1] = "List",
},
["description"] = "A horizontal menu bar with selectable items.",
["path"] = "elements/Menu.lua",
},
["Container"] = {
["size"] = 23180,
["default"] = true,
["requires"] = {
[1] = "VisualElement",
},
["description"] = "The container class. It is a visual element that can contain other elements. It is the base class for all containers",
["path"] = "elements/Container.lua",
},
["BaseElement"] = {
["size"] = 8911,
["default"] = true,
["requires"] = {
},
["description"] = "The base class for all UI elements in Basalt.",
["path"] = "elements/BaseElement.lua",
},
},
["description"] = "UI Elements",
},
},
["metadata"] = {
["generated"] = "Tue Mar 4 13:33:59 2025",
["version"] = "2.0",
},
}

View File

@@ -362,20 +362,21 @@ end
--- Gets the Combined property for offsetX and offsetY
---@generic Element: Container
---@param self Element
---@return nil
---@return offsetY
function Container:getOffset()
return self.offset
return self.offsetX
end
--- Sets the Combined property for offsetX and offsetY
---@generic Element: Container
---@param self Element
---@param offset nil
---@param offsetX offsetY
---@return Element
function Container:setOffset(offset)
self.offset = offset
function Container:setOffset(offsetX)
self.offsetX = offsetX
return self
end
--- Adds a new BigFontText to the container
---@generic Element: Container
---@param self Element
@@ -1019,21 +1020,22 @@ end
--- Gets the Combined property for offsetX and offsetY
---@generic Element: Image
---@param self Element
---@return nil
---@return offsetY
function Image:getOffset()
return self.offset
return self.offsetX
end
--- Sets the Combined property for offsetX and offsetY
---@generic Element: Image
---@param self Element
---@param offset nil
---@param offsetX offsetY
---@return Element
function Image:setOffset(offset)
self.offset = offset
function Image:setOffset(offsetX)
self.offsetX = offsetX
return self
end
---@class Input
---@field text string
---@field cursorPos number
@@ -2428,54 +2430,63 @@ end
--- Gets the Combined x, y position
---@generic Element: VisualElement
---@param self Element
---@return nil
---@return number number
function VisualElement:getPosition()
return self.position
return self.x, self.y
end
--- Sets the Combined x, y position
---@generic Element: VisualElement
---@param self Element
---@param position nil
---@param x number
---@param y number
---@return Element
function VisualElement:setPosition(position)
self.position = position
function VisualElement:setPosition(x, y)
self.x = x
self.y = y
return self
end
--- Gets the Combined width, height
---@generic Element: VisualElement
---@param self Element
---@return nil
---@return number number
function VisualElement:getSize()
return self.size
return self.width, self.height
end
--- Sets the Combined width, height
---@generic Element: VisualElement
---@param self Element
---@param size nil
---@param width number
---@param height number
---@return Element
function VisualElement:setSize(size)
self.size = size
function VisualElement:setSize(width, height)
self.width = width
self.height = height
return self
end
--- Gets the Combined foreground, background colors
---@generic Element: VisualElement
---@param self Element
---@return nil
---@return number number
function VisualElement:getColor()
return self.color
return self.foreground, self.background
end
--- Sets the Combined foreground, background colors
---@generic Element: VisualElement
---@param self Element
---@param color nil
---@param foreground number
---@param background number
---@return Element
function VisualElement:setColor(color)
self.color = color
function VisualElement:setColor(foreground, background)
self.foreground = foreground
self.background = background
return self
end
--- {button, x, y} Fired on mouse click
---@generic Element: VisualElement
---@param self Element