Update config, BasaltLS definitions, bundle and changelog
This commit is contained in:
6304
BasaltLS.lua
6304
BasaltLS.lua
File diff suppressed because it is too large
Load Diff
690
config.lua
690
config.lua
@@ -1,342 +1,226 @@
|
|||||||
return {
|
return {
|
||||||
["metadata"] = {
|
["metadata"] = {
|
||||||
|
["generated"] = "Sun Apr 6 17:27:35 2025",
|
||||||
["version"] = "2.0",
|
["version"] = "2.0",
|
||||||
["generated"] = "Sun Apr 6 04:52:09 2025",
|
|
||||||
},
|
},
|
||||||
["categories"] = {
|
["categories"] = {
|
||||||
["core"] = {
|
|
||||||
["description"] = "Core Files",
|
|
||||||
["files"] = {
|
|
||||||
["log"] = {
|
|
||||||
["default"] = true,
|
|
||||||
["path"] = "log.lua",
|
|
||||||
["description"] = "",
|
|
||||||
["size"] = 3142,
|
|
||||||
["requires"] = {
|
|
||||||
},
|
|
||||||
},
|
|
||||||
["elementManager"] = {
|
|
||||||
["default"] = true,
|
|
||||||
["path"] = "elementManager.lua",
|
|
||||||
["description"] = "",
|
|
||||||
["size"] = 6297,
|
|
||||||
["requires"] = {
|
|
||||||
},
|
|
||||||
},
|
|
||||||
["render"] = {
|
|
||||||
["default"] = true,
|
|
||||||
["path"] = "render.lua",
|
|
||||||
["description"] = "",
|
|
||||||
["size"] = 12422,
|
|
||||||
["requires"] = {
|
|
||||||
},
|
|
||||||
},
|
|
||||||
["errorManager"] = {
|
|
||||||
["default"] = true,
|
|
||||||
["path"] = "errorManager.lua",
|
|
||||||
["description"] = "",
|
|
||||||
["size"] = 3789,
|
|
||||||
["requires"] = {
|
|
||||||
},
|
|
||||||
},
|
|
||||||
["main"] = {
|
|
||||||
["default"] = true,
|
|
||||||
["path"] = "main.lua",
|
|
||||||
["description"] = "",
|
|
||||||
["size"] = 10388,
|
|
||||||
["requires"] = {
|
|
||||||
},
|
|
||||||
},
|
|
||||||
["init"] = {
|
|
||||||
["default"] = true,
|
|
||||||
["path"] = "init.lua",
|
|
||||||
["description"] = "",
|
|
||||||
["size"] = 583,
|
|
||||||
["requires"] = {
|
|
||||||
},
|
|
||||||
},
|
|
||||||
["propertySystem"] = {
|
|
||||||
["default"] = true,
|
|
||||||
["path"] = "propertySystem.lua",
|
|
||||||
["description"] = "",
|
|
||||||
["size"] = 15224,
|
|
||||||
["requires"] = {
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
["plugins"] = {
|
|
||||||
["description"] = "Plugins",
|
|
||||||
["files"] = {
|
|
||||||
["xml"] = {
|
|
||||||
["default"] = true,
|
|
||||||
["path"] = "plugins/xml.lua",
|
|
||||||
["description"] = "",
|
|
||||||
["size"] = 9901,
|
|
||||||
["requires"] = {
|
|
||||||
},
|
|
||||||
},
|
|
||||||
["reactive"] = {
|
|
||||||
["default"] = true,
|
|
||||||
["path"] = "plugins/reactive.lua",
|
|
||||||
["description"] = "",
|
|
||||||
["size"] = 7193,
|
|
||||||
["requires"] = {
|
|
||||||
},
|
|
||||||
},
|
|
||||||
["state"] = {
|
|
||||||
["default"] = true,
|
|
||||||
["path"] = "plugins/state.lua",
|
|
||||||
["description"] = "",
|
|
||||||
["size"] = 6926,
|
|
||||||
["requires"] = {
|
|
||||||
[1] = "Container",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
["theme"] = {
|
|
||||||
["default"] = true,
|
|
||||||
["path"] = "plugins/theme.lua",
|
|
||||||
["description"] = "",
|
|
||||||
["size"] = 5901,
|
|
||||||
["requires"] = {
|
|
||||||
},
|
|
||||||
},
|
|
||||||
["animation"] = {
|
|
||||||
["default"] = true,
|
|
||||||
["path"] = "plugins/animation.lua",
|
|
||||||
["description"] = "",
|
|
||||||
["size"] = 14749,
|
|
||||||
["requires"] = {
|
|
||||||
},
|
|
||||||
},
|
|
||||||
["benchmark"] = {
|
|
||||||
["default"] = true,
|
|
||||||
["path"] = "plugins/benchmark.lua",
|
|
||||||
["description"] = "",
|
|
||||||
["size"] = 12581,
|
|
||||||
["requires"] = {
|
|
||||||
[1] = "VisualElement",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
["debug"] = {
|
|
||||||
["default"] = true,
|
|
||||||
["path"] = "plugins/debug.lua",
|
|
||||||
["description"] = "",
|
|
||||||
["size"] = 6250,
|
|
||||||
["requires"] = {
|
|
||||||
},
|
|
||||||
},
|
|
||||||
["canvas"] = {
|
|
||||||
["default"] = true,
|
|
||||||
["path"] = "plugins/canvas.lua",
|
|
||||||
["description"] = "",
|
|
||||||
["size"] = 8002,
|
|
||||||
["requires"] = {
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
["elements"] = {
|
["elements"] = {
|
||||||
["description"] = "UI Elements",
|
|
||||||
["files"] = {
|
["files"] = {
|
||||||
["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"] = 3164,
|
|
||||||
["requires"] = {
|
|
||||||
},
|
|
||||||
},
|
|
||||||
["Switch"] = {
|
|
||||||
["default"] = true,
|
|
||||||
["path"] = "elements/Switch.lua",
|
|
||||||
["description"] = "",
|
|
||||||
["size"] = 1354,
|
|
||||||
["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"] = 17732,
|
|
||||||
["requires"] = {
|
|
||||||
[1] = "BaseElement",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
["Menu"] = {
|
|
||||||
["default"] = true,
|
|
||||||
["path"] = "elements/Menu.lua",
|
|
||||||
["description"] = "A horizontal menu bar with selectable items.",
|
|
||||||
["size"] = 4657,
|
|
||||||
["requires"] = {
|
|
||||||
[1] = "List",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
["Dropdown"] = {
|
|
||||||
["default"] = false,
|
|
||||||
["path"] = "elements/Dropdown.lua",
|
|
||||||
["description"] = "A dropdown menu that shows a list of selectable items",
|
|
||||||
["size"] = 6333,
|
|
||||||
["requires"] = {
|
|
||||||
[1] = "List",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
["Graph"] = {
|
|
||||||
["default"] = false,
|
|
||||||
["path"] = "elements/Graph.lua",
|
|
||||||
["description"] = "A point based graph element",
|
|
||||||
["size"] = 6967,
|
|
||||||
["requires"] = {
|
|
||||||
},
|
|
||||||
},
|
|
||||||
["List"] = {
|
|
||||||
["default"] = true,
|
|
||||||
["path"] = "elements/List.lua",
|
|
||||||
["description"] = "A scrollable list of selectable items",
|
|
||||||
["size"] = 8680,
|
|
||||||
["requires"] = {
|
|
||||||
[1] = "VisualElement",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
["Flexbox"] = {
|
|
||||||
["default"] = true,
|
|
||||||
["path"] = "elements/Flexbox.lua",
|
|
||||||
["description"] = "A flexbox container that arranges its children in a flexible layout.",
|
|
||||||
["size"] = 12190,
|
|
||||||
["requires"] = {
|
|
||||||
[1] = "Container",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
["Checkbox"] = {
|
|
||||||
["default"] = true,
|
|
||||||
["path"] = "elements/Checkbox.lua",
|
|
||||||
["description"] = "",
|
|
||||||
["size"] = 2872,
|
|
||||||
["requires"] = {
|
|
||||||
[1] = "VisualElement",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
["ProgressBar"] = {
|
|
||||||
["default"] = true,
|
|
||||||
["path"] = "elements/ProgressBar.lua",
|
|
||||||
["description"] = "",
|
|
||||||
["size"] = 3368,
|
|
||||||
["requires"] = {
|
|
||||||
[1] = "VisualElement",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
["Scrollbar"] = {
|
|
||||||
["default"] = true,
|
|
||||||
["path"] = "elements/Scrollbar.lua",
|
|
||||||
["description"] = "",
|
|
||||||
["size"] = 9164,
|
|
||||||
["requires"] = {
|
|
||||||
[1] = "VisualElement",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
["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",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
["Program"] = {
|
|
||||||
["default"] = true,
|
|
||||||
["path"] = "elements/Program.lua",
|
|
||||||
["description"] = "",
|
|
||||||
["size"] = 6295,
|
|
||||||
["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"] = 24654,
|
|
||||||
["requires"] = {
|
|
||||||
[1] = "VisualElement",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
["Table"] = {
|
|
||||||
["default"] = true,
|
|
||||||
["path"] = "elements/Table.lua",
|
|
||||||
["description"] = "",
|
|
||||||
["size"] = 8657,
|
|
||||||
["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"] = 8439,
|
|
||||||
["requires"] = {
|
|
||||||
[1] = "Container",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
["Tree"] = {
|
|
||||||
["default"] = true,
|
|
||||||
["path"] = "elements/Tree.lua",
|
|
||||||
["description"] = "",
|
|
||||||
["size"] = 7919,
|
|
||||||
["requires"] = {
|
|
||||||
[1] = "VisualElement",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
["BigFont"] = {
|
|
||||||
["default"] = false,
|
|
||||||
["path"] = "elements/BigFont.lua",
|
|
||||||
["description"] = "",
|
|
||||||
["size"] = 20926,
|
|
||||||
["requires"] = {
|
|
||||||
[1] = "VisualElement",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
["BaseElement"] = {
|
|
||||||
["default"] = true,
|
|
||||||
["path"] = "elements/BaseElement.lua",
|
|
||||||
["description"] = "The base class for all UI elements in Basalt.",
|
|
||||||
["size"] = 9402,
|
|
||||||
["requires"] = {
|
|
||||||
},
|
|
||||||
},
|
|
||||||
["Slider"] = {
|
["Slider"] = {
|
||||||
["default"] = true,
|
|
||||||
["path"] = "elements/Slider.lua",
|
["path"] = "elements/Slider.lua",
|
||||||
|
["default"] = true,
|
||||||
["description"] = "",
|
["description"] = "",
|
||||||
["size"] = 4676,
|
["size"] = 4676,
|
||||||
["requires"] = {
|
["requires"] = {
|
||||||
[1] = "VisualElement",
|
[1] = "VisualElement",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
["Image"] = {
|
["VisualElement"] = {
|
||||||
|
["path"] = "elements/VisualElement.lua",
|
||||||
|
["default"] = true,
|
||||||
|
["description"] = "The Visual Element class which is the base class for all visual UI elements",
|
||||||
|
["size"] = 17732,
|
||||||
|
["requires"] = {
|
||||||
|
[1] = "BaseElement",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
["Container"] = {
|
||||||
|
["path"] = "elements/Container.lua",
|
||||||
|
["default"] = true,
|
||||||
|
["description"] = "The container class. It is a visual element that can contain other elements. It is the base class for all containers",
|
||||||
|
["size"] = 24654,
|
||||||
|
["requires"] = {
|
||||||
|
[1] = "VisualElement",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
["Label"] = {
|
||||||
|
["path"] = "elements/Label.lua",
|
||||||
|
["default"] = true,
|
||||||
|
["description"] = "A simple text display element that automatically resizes its width based on the text content.",
|
||||||
|
["size"] = 3069,
|
||||||
|
["requires"] = {
|
||||||
|
[1] = "VisualElement",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
["Menu"] = {
|
||||||
|
["path"] = "elements/Menu.lua",
|
||||||
|
["default"] = true,
|
||||||
|
["description"] = "A horizontal menu bar with selectable items.",
|
||||||
|
["size"] = 4657,
|
||||||
|
["requires"] = {
|
||||||
|
[1] = "List",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
["Tree"] = {
|
||||||
|
["path"] = "elements/Tree.lua",
|
||||||
|
["default"] = true,
|
||||||
|
["description"] = "",
|
||||||
|
["size"] = 7919,
|
||||||
|
["requires"] = {
|
||||||
|
[1] = "VisualElement",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
["Graph"] = {
|
||||||
|
["path"] = "elements/Graph.lua",
|
||||||
["default"] = false,
|
["default"] = false,
|
||||||
|
["description"] = "A point based graph element",
|
||||||
|
["size"] = 6967,
|
||||||
|
["requires"] = {
|
||||||
|
},
|
||||||
|
},
|
||||||
|
["Button"] = {
|
||||||
|
["path"] = "elements/Button.lua",
|
||||||
|
["default"] = true,
|
||||||
|
["description"] = "",
|
||||||
|
["size"] = 1632,
|
||||||
|
["requires"] = {
|
||||||
|
[1] = "VisualElement",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
["BarChart"] = {
|
||||||
|
["path"] = "elements/BarChart.lua",
|
||||||
|
["default"] = false,
|
||||||
|
["description"] = "",
|
||||||
|
["size"] = 3164,
|
||||||
|
["requires"] = {
|
||||||
|
},
|
||||||
|
},
|
||||||
|
["BigFont"] = {
|
||||||
|
["path"] = "elements/BigFont.lua",
|
||||||
|
["default"] = false,
|
||||||
|
["description"] = "",
|
||||||
|
["size"] = 20926,
|
||||||
|
["requires"] = {
|
||||||
|
[1] = "VisualElement",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
["Table"] = {
|
||||||
|
["path"] = "elements/Table.lua",
|
||||||
|
["default"] = true,
|
||||||
|
["description"] = "",
|
||||||
|
["size"] = 8657,
|
||||||
|
["requires"] = {
|
||||||
|
[1] = "VisualElement",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
["TextBox"] = {
|
||||||
|
["path"] = "elements/TextBox.lua",
|
||||||
|
["default"] = false,
|
||||||
|
["description"] = "A multi-line text editor component with cursor support and text manipulation features",
|
||||||
|
["size"] = 10904,
|
||||||
|
["requires"] = {
|
||||||
|
[1] = "VisualElement",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
["Switch"] = {
|
||||||
|
["path"] = "elements/Switch.lua",
|
||||||
|
["default"] = true,
|
||||||
|
["description"] = "",
|
||||||
|
["size"] = 1354,
|
||||||
|
["requires"] = {
|
||||||
|
[1] = "VisualElement",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
["Flexbox"] = {
|
||||||
|
["path"] = "elements/Flexbox.lua",
|
||||||
|
["default"] = true,
|
||||||
|
["description"] = "A flexbox container that arranges its children in a flexible layout.",
|
||||||
|
["size"] = 12190,
|
||||||
|
["requires"] = {
|
||||||
|
[1] = "Container",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
["List"] = {
|
||||||
|
["path"] = "elements/List.lua",
|
||||||
|
["default"] = true,
|
||||||
|
["description"] = "A scrollable list of selectable items",
|
||||||
|
["size"] = 8680,
|
||||||
|
["requires"] = {
|
||||||
|
[1] = "VisualElement",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
["Scrollbar"] = {
|
||||||
|
["path"] = "elements/Scrollbar.lua",
|
||||||
|
["default"] = true,
|
||||||
|
["description"] = "",
|
||||||
|
["size"] = 9164,
|
||||||
|
["requires"] = {
|
||||||
|
[1] = "VisualElement",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
["Program"] = {
|
||||||
|
["path"] = "elements/Program.lua",
|
||||||
|
["default"] = true,
|
||||||
|
["description"] = "",
|
||||||
|
["size"] = 6295,
|
||||||
|
["requires"] = {
|
||||||
|
[1] = "VisualElement",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
["Dropdown"] = {
|
||||||
|
["path"] = "elements/Dropdown.lua",
|
||||||
|
["default"] = false,
|
||||||
|
["description"] = "A dropdown menu that shows a list of selectable items",
|
||||||
|
["size"] = 6333,
|
||||||
|
["requires"] = {
|
||||||
|
[1] = "List",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
["Frame"] = {
|
||||||
|
["path"] = "elements/Frame.lua",
|
||||||
|
["default"] = true,
|
||||||
|
["description"] = "A frame element that serves as a grouping container for other elements.",
|
||||||
|
["size"] = 4435,
|
||||||
|
["requires"] = {
|
||||||
|
[1] = "Container",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
["BaseFrame"] = {
|
||||||
|
["path"] = "elements/BaseFrame.lua",
|
||||||
|
["default"] = true,
|
||||||
|
["description"] = "This is the base frame class. It is the root element of all elements and the only element without a parent.",
|
||||||
|
["size"] = 8439,
|
||||||
|
["requires"] = {
|
||||||
|
[1] = "Container",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
["LineChart"] = {
|
||||||
|
["path"] = "elements/LineChart.lua",
|
||||||
|
["default"] = false,
|
||||||
|
["description"] = "",
|
||||||
|
["size"] = 3200,
|
||||||
|
["requires"] = {
|
||||||
|
},
|
||||||
|
},
|
||||||
|
["BaseElement"] = {
|
||||||
|
["path"] = "elements/BaseElement.lua",
|
||||||
|
["default"] = true,
|
||||||
|
["description"] = "The base class for all UI elements in Basalt.",
|
||||||
|
["size"] = 9402,
|
||||||
|
["requires"] = {
|
||||||
|
},
|
||||||
|
},
|
||||||
|
["ProgressBar"] = {
|
||||||
|
["path"] = "elements/ProgressBar.lua",
|
||||||
|
["default"] = true,
|
||||||
|
["description"] = "",
|
||||||
|
["size"] = 3368,
|
||||||
|
["requires"] = {
|
||||||
|
[1] = "VisualElement",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
["Checkbox"] = {
|
||||||
|
["path"] = "elements/Checkbox.lua",
|
||||||
|
["default"] = true,
|
||||||
|
["description"] = "",
|
||||||
|
["size"] = 2872,
|
||||||
|
["requires"] = {
|
||||||
|
[1] = "VisualElement",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
["Image"] = {
|
||||||
["path"] = "elements/Image.lua",
|
["path"] = "elements/Image.lua",
|
||||||
|
["default"] = false,
|
||||||
["description"] = "An element that displays an image in bimg format",
|
["description"] = "An element that displays an image in bimg format",
|
||||||
["size"] = 15102,
|
["size"] = 15102,
|
||||||
["requires"] = {
|
["requires"] = {
|
||||||
@@ -344,34 +228,17 @@ return {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
["Display"] = {
|
["Display"] = {
|
||||||
["default"] = false,
|
|
||||||
["path"] = "elements/Display.lua",
|
["path"] = "elements/Display.lua",
|
||||||
|
["default"] = false,
|
||||||
["description"] = "The Display is a special element which uses the cc window API which you can use.",
|
["description"] = "The Display is a special element which uses the cc window API which you can use.",
|
||||||
["size"] = 4218,
|
["size"] = 4218,
|
||||||
["requires"] = {
|
["requires"] = {
|
||||||
[1] = "VisualElement",
|
[1] = "VisualElement",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
["Button"] = {
|
|
||||||
["default"] = true,
|
|
||||||
["path"] = "elements/Button.lua",
|
|
||||||
["description"] = "",
|
|
||||||
["size"] = 1632,
|
|
||||||
["requires"] = {
|
|
||||||
[1] = "VisualElement",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
["LineChart"] = {
|
|
||||||
["default"] = false,
|
|
||||||
["path"] = "elements/LineChart.lua",
|
|
||||||
["description"] = "",
|
|
||||||
["size"] = 3200,
|
|
||||||
["requires"] = {
|
|
||||||
},
|
|
||||||
},
|
|
||||||
["Input"] = {
|
["Input"] = {
|
||||||
["default"] = true,
|
|
||||||
["path"] = "elements/Input.lua",
|
["path"] = "elements/Input.lua",
|
||||||
|
["default"] = true,
|
||||||
["description"] = "A text input field with various features",
|
["description"] = "A text input field with various features",
|
||||||
["size"] = 8774,
|
["size"] = 8774,
|
||||||
["requires"] = {
|
["requires"] = {
|
||||||
@@ -379,35 +246,168 @@ return {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
["description"] = "UI Elements",
|
||||||
},
|
},
|
||||||
["libraries"] = {
|
["libraries"] = {
|
||||||
["description"] = "Libraries",
|
|
||||||
["files"] = {
|
["files"] = {
|
||||||
["expect"] = {
|
["expect"] = {
|
||||||
["default"] = true,
|
|
||||||
["path"] = "libraries/expect.lua",
|
["path"] = "libraries/expect.lua",
|
||||||
|
["default"] = true,
|
||||||
["description"] = "",
|
["description"] = "",
|
||||||
["size"] = 846,
|
["size"] = 846,
|
||||||
["requires"] = {
|
["requires"] = {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
["utils"] = {
|
["utils"] = {
|
||||||
["default"] = true,
|
|
||||||
["path"] = "libraries/utils.lua",
|
["path"] = "libraries/utils.lua",
|
||||||
|
["default"] = true,
|
||||||
["description"] = "",
|
["description"] = "",
|
||||||
["size"] = 2661,
|
["size"] = 2661,
|
||||||
["requires"] = {
|
["requires"] = {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
["colorHex"] = {
|
["colorHex"] = {
|
||||||
["default"] = true,
|
|
||||||
["path"] = "libraries/colorHex.lua",
|
["path"] = "libraries/colorHex.lua",
|
||||||
|
["default"] = true,
|
||||||
["description"] = "",
|
["description"] = "",
|
||||||
["size"] = 132,
|
["size"] = 132,
|
||||||
["requires"] = {
|
["requires"] = {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
["description"] = "Libraries",
|
||||||
|
},
|
||||||
|
["core"] = {
|
||||||
|
["files"] = {
|
||||||
|
["init"] = {
|
||||||
|
["path"] = "init.lua",
|
||||||
|
["default"] = true,
|
||||||
|
["description"] = "",
|
||||||
|
["size"] = 583,
|
||||||
|
["requires"] = {
|
||||||
|
},
|
||||||
|
},
|
||||||
|
["propertySystem"] = {
|
||||||
|
["path"] = "propertySystem.lua",
|
||||||
|
["default"] = true,
|
||||||
|
["description"] = "",
|
||||||
|
["size"] = 15224,
|
||||||
|
["requires"] = {
|
||||||
|
},
|
||||||
|
},
|
||||||
|
["log"] = {
|
||||||
|
["path"] = "log.lua",
|
||||||
|
["default"] = true,
|
||||||
|
["description"] = "",
|
||||||
|
["size"] = 3142,
|
||||||
|
["requires"] = {
|
||||||
|
},
|
||||||
|
},
|
||||||
|
["elementManager"] = {
|
||||||
|
["path"] = "elementManager.lua",
|
||||||
|
["default"] = true,
|
||||||
|
["description"] = "",
|
||||||
|
["size"] = 6297,
|
||||||
|
["requires"] = {
|
||||||
|
},
|
||||||
|
},
|
||||||
|
["render"] = {
|
||||||
|
["path"] = "render.lua",
|
||||||
|
["default"] = true,
|
||||||
|
["description"] = "",
|
||||||
|
["size"] = 12422,
|
||||||
|
["requires"] = {
|
||||||
|
},
|
||||||
|
},
|
||||||
|
["errorManager"] = {
|
||||||
|
["path"] = "errorManager.lua",
|
||||||
|
["default"] = true,
|
||||||
|
["description"] = "",
|
||||||
|
["size"] = 3789,
|
||||||
|
["requires"] = {
|
||||||
|
},
|
||||||
|
},
|
||||||
|
["main"] = {
|
||||||
|
["path"] = "main.lua",
|
||||||
|
["default"] = true,
|
||||||
|
["description"] = "",
|
||||||
|
["size"] = 10456,
|
||||||
|
["requires"] = {
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
["description"] = "Core Files",
|
||||||
|
},
|
||||||
|
["plugins"] = {
|
||||||
|
["files"] = {
|
||||||
|
["debug"] = {
|
||||||
|
["path"] = "plugins/debug.lua",
|
||||||
|
["default"] = true,
|
||||||
|
["description"] = "",
|
||||||
|
["size"] = 6250,
|
||||||
|
["requires"] = {
|
||||||
|
},
|
||||||
|
},
|
||||||
|
["reactive"] = {
|
||||||
|
["path"] = "plugins/reactive.lua",
|
||||||
|
["default"] = true,
|
||||||
|
["description"] = "",
|
||||||
|
["size"] = 7193,
|
||||||
|
["requires"] = {
|
||||||
|
},
|
||||||
|
},
|
||||||
|
["canvas"] = {
|
||||||
|
["path"] = "plugins/canvas.lua",
|
||||||
|
["default"] = true,
|
||||||
|
["description"] = "",
|
||||||
|
["size"] = 8002,
|
||||||
|
["requires"] = {
|
||||||
|
},
|
||||||
|
},
|
||||||
|
["xml"] = {
|
||||||
|
["path"] = "plugins/xml.lua",
|
||||||
|
["default"] = true,
|
||||||
|
["description"] = "",
|
||||||
|
["size"] = 9901,
|
||||||
|
["requires"] = {
|
||||||
|
},
|
||||||
|
},
|
||||||
|
["theme"] = {
|
||||||
|
["path"] = "plugins/theme.lua",
|
||||||
|
["default"] = true,
|
||||||
|
["description"] = "",
|
||||||
|
["size"] = 6799,
|
||||||
|
["requires"] = {
|
||||||
|
},
|
||||||
|
},
|
||||||
|
["animation"] = {
|
||||||
|
["path"] = "plugins/animation.lua",
|
||||||
|
["default"] = true,
|
||||||
|
["description"] = "",
|
||||||
|
["size"] = 14749,
|
||||||
|
["requires"] = {
|
||||||
|
},
|
||||||
|
},
|
||||||
|
["state"] = {
|
||||||
|
["path"] = "plugins/state.lua",
|
||||||
|
["default"] = true,
|
||||||
|
["description"] = "",
|
||||||
|
["size"] = 6926,
|
||||||
|
["requires"] = {
|
||||||
|
[1] = "Container",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
["benchmark"] = {
|
||||||
|
["path"] = "plugins/benchmark.lua",
|
||||||
|
["default"] = true,
|
||||||
|
["description"] = "",
|
||||||
|
["size"] = 12581,
|
||||||
|
["requires"] = {
|
||||||
|
[1] = "VisualElement",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
["description"] = "Plugins",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@@ -1808,8 +1808,8 @@ function __a.removeSchedule(aca)
|
|||||||
for bca,cca in ipairs(__a._schedule)do if(cca.coroutine==aca)then
|
for bca,cca in ipairs(__a._schedule)do if(cca.coroutine==aca)then
|
||||||
table.remove(__a._schedule,bca)return true end end;return false end
|
table.remove(__a._schedule,bca)return true end end;return false end
|
||||||
local bba={mouse_click=true,mouse_up=true,mouse_scroll=true,mouse_drag=true}local cba={key=true,key_up=true,char=true}
|
local bba={mouse_click=true,mouse_up=true,mouse_scroll=true,mouse_drag=true}local cba={key=true,key_up=true,char=true}
|
||||||
local function dba(aca,...)
|
local function dba(aca,...)if(aca=="terminate")then __a.stop()
|
||||||
if(aca=="terminate")then __a.stop()end;if aba(aca,...)then return end
|
return end;if aba(aca,...)then return end
|
||||||
if(bba[aca])then
|
if(bba[aca])then
|
||||||
c_a[a_a]:dispatchEvent(aca,...)elseif(cba[aca])then
|
c_a[a_a]:dispatchEvent(aca,...)elseif(cba[aca])then
|
||||||
if(b_a~=nil)then b_a:dispatchEvent(aca,...)end else
|
if(b_a~=nil)then b_a:dispatchEvent(aca,...)end else
|
||||||
@@ -1823,9 +1823,10 @@ if(not dca)then bd.header="Basalt Schedule Error"bd.error(_da)end;cca.filter=_da
|
|||||||
__a.removeSchedule(cca.coroutine)end end;if __a._events[aca]then
|
__a.removeSchedule(cca.coroutine)end end;if __a._events[aca]then
|
||||||
for bca,cca in ipairs(__a._events[aca])do cca(...)end end end;local function _ca()
|
for bca,cca in ipairs(__a._events[aca])do cca(...)end end end;local function _ca()
|
||||||
for aca,bca in pairs(c_a)do bca:render()bca:postRender()end end
|
for aca,bca in pairs(c_a)do bca:render()bca:postRender()end end
|
||||||
function __a.update(...)
|
function __a.update(...)local aca=function(...)__a.isRunning=true
|
||||||
local aca=function(...)dba(...)_ca()end;local bca,cca=pcall(aca,...)if not(bca)then bd.header="Basalt Runtime Error"
|
dba(...)_ca()end
|
||||||
bd.error(cca)end end;function __a.stop()__a.isRunning=false;term.clear()
|
local bca,cca=pcall(aca,...)
|
||||||
|
if not(bca)then bd.header="Basalt Runtime Error"bd.error(cca)end;__a.isRunning=false end;function __a.stop()__a.isRunning=false;term.clear()
|
||||||
term.setCursorPos(1,1)end
|
term.setCursorPos(1,1)end
|
||||||
function __a.run(aca)if(__a.isRunning)then
|
function __a.run(aca)if(__a.isRunning)then
|
||||||
bd.error("Basalt is already running")end;if(aca==nil)then __a.isRunning=true else
|
bd.error("Basalt is already running")end;if(aca==nil)then __a.isRunning=true else
|
||||||
@@ -2402,42 +2403,55 @@ function db.getStats(_c)local ac=da[_c]if not ac then return nil end;return
|
|||||||
{averageTime=ac.totalTime/ac.calls,totalTime=ac.totalTime,calls=ac.calls,minTime=ac.minTime,maxTime=ac.maxTime,lastTime=ac.lastTime}end;function db.clear(_c)da[_c]=nil end;function db.clearAll()for _c,ac in pairs(da)do
|
{averageTime=ac.totalTime/ac.calls,totalTime=ac.totalTime,calls=ac.calls,minTime=ac.minTime,maxTime=ac.maxTime,lastTime=ac.lastTime}end;function db.clear(_c)da[_c]=nil end;function db.clearAll()for _c,ac in pairs(da)do
|
||||||
if ac.custom then da[_c]=nil end end end;return
|
if ac.custom then da[_c]=nil end end end;return
|
||||||
{BaseElement=bb,Container=cb,API=db} end
|
{BaseElement=bb,Container=cb,API=db} end
|
||||||
project["plugins/theme.lua"] = function(...)
|
project["plugins/theme.lua"] = function(...) local ab=require("errorManager")
|
||||||
local _b={default={background=colors.lightGray,foreground=colors.black},BaseFrame={background=colors.white,foreground=colors.black,Frame={background=colors.black,names={basaltDebugLogClose={background=colors.blue,foreground=colors.white}}},Button={background="{self.clicked and colors.black or colors.cyan}",foreground="{self.clicked and colors.cyan or colors.black}"},names={basaltDebugLog={background=colors.red,foreground=colors.white},test={background="{self.clicked and colors.black or colors.green}",foreground="{self.clicked and colors.green or colors.black}"}}}}local ab={default=_b}local bb="default"
|
local bb={default={background=colors.lightGray,foreground=colors.black},BaseFrame={background=colors.white,foreground=colors.black,Frame={background=colors.black,names={basaltDebugLogClose={background=colors.blue,foreground=colors.white}}},Button={background="{self.clicked and colors.black or colors.cyan}",foreground="{self.clicked and colors.cyan or colors.black}"},names={basaltDebugLog={background=colors.red,foreground=colors.white},test={background="{self.clicked and colors.black or colors.green}",foreground="{self.clicked and colors.green or colors.black}"}}}}local cb={default=bb}local db="default"
|
||||||
local cb={hooks={postInit={pre=function(dc)dc:applyTheme()end}}}
|
local _c={hooks={postInit={pre=function(ad)ad:applyTheme()end}}}
|
||||||
function cb.____getElementPath(dc,_d)if _d then table.insert(_d,1,dc._values.type)else
|
function _c.____getElementPath(ad,bd)if bd then table.insert(bd,1,ad._values.type)else
|
||||||
_d={dc._values.type}end;local ad=dc.parent;if ad then return
|
bd={ad._values.type}end;local cd=ad.parent;if cd then return
|
||||||
ad.____getElementPath(ad,_d)else return _d end end
|
cd.____getElementPath(cd,bd)else return bd end end
|
||||||
local function db(dc,_d)local ad=dc
|
local function ac(ad,bd)local cd=ad
|
||||||
for i=1,#_d do local bd=false;local cd=_d[i]for dd,__a in ipairs(cd)do
|
for i=1,#bd do local dd=false;local __a=bd[i]for a_a,b_a in ipairs(__a)do
|
||||||
if ad[__a]then ad=ad[__a]bd=true;break end end;if not bd then return nil end end;return ad end
|
if cd[b_a]then cd=cd[b_a]dd=true;break end end;if not dd then return nil end end;return cd end
|
||||||
local function _c(dc,_d)local ad={}
|
local function bc(ad,bd)local cd={}
|
||||||
if dc.default then for bd,cd in pairs(dc.default)do
|
if ad.default then for dd,__a in pairs(ad.default)do
|
||||||
if type(cd)~="table"then ad[bd]=cd end end;if dc.default[_d]then
|
if type(__a)~="table"then cd[dd]=__a end end;if ad.default[bd]then
|
||||||
for bd,cd in
|
for dd,__a in
|
||||||
pairs(dc.default[_d])do if type(cd)~="table"then ad[bd]=cd end end end end;return ad end
|
pairs(ad.default[bd])do if type(__a)~="table"then cd[dd]=__a end end end end;return cd end
|
||||||
local function ac(dc,_d,ad,bd,cd)
|
local function cc(ad,bd,cd,dd,__a)
|
||||||
if
|
if
|
||||||
_d.default and _d.default.names and _d.default.names[bd]then for dd,__a in pairs(_d.default.names[bd])do
|
bd.default and bd.default.names and bd.default.names[dd]then for a_a,b_a in pairs(bd.default.names[dd])do
|
||||||
if type(__a)~="table"then dc[dd]=__a end end end
|
if type(b_a)~="table"then ad[a_a]=b_a end end end
|
||||||
if
|
if
|
||||||
|
|
||||||
_d.default and _d.default[ad]and _d.default[ad].names and _d.default[ad].names[bd]then
|
bd.default and bd.default[cd]and bd.default[cd].names and bd.default[cd].names[dd]then
|
||||||
for dd,__a in pairs(_d.default[ad].names[bd])do if
|
for a_a,b_a in pairs(bd.default[cd].names[dd])do if
|
||||||
type(__a)~="table"then dc[dd]=__a end end end;if cd and cd.names and cd.names[bd]then
|
type(b_a)~="table"then ad[a_a]=b_a end end end;if __a and __a.names and __a.names[dd]then
|
||||||
for dd,__a in pairs(cd.names[bd])do if type(__a)~=
|
for a_a,b_a in pairs(__a.names[dd])do if
|
||||||
"table"then dc[dd]=__a end end end end
|
type(b_a)~="table"then ad[a_a]=b_a end end end end
|
||||||
local function bc(dc,_d,ad,bd)local cd={}local dd=db(dc,_d)
|
local function dc(ad,bd,cd,dd)local __a={}local a_a=ac(ad,bd)
|
||||||
if dd then for __a,a_a in pairs(dd)do
|
if a_a then for b_a,c_a in pairs(a_a)do
|
||||||
if type(a_a)~="table"then cd[__a]=a_a end end end;if next(cd)==nil then cd=_c(dc,ad)end;ac(cd,dc,ad,bd,dd)
|
if type(c_a)~="table"then __a[b_a]=c_a end end end;if next(__a)==nil then __a=bc(ad,cd)end
|
||||||
return cd end
|
cc(__a,ad,cd,dd,a_a)return __a end
|
||||||
function cb:applyTheme()local dc=self:getTheme()if(dc~=nil)then
|
function _c:applyTheme()local ad=self:getTheme()
|
||||||
for _d,ad in pairs(dc)do self.set(_d,ad)end end;return self end
|
if(ad~=nil)then
|
||||||
function cb:getTheme()local dc=self:____getElementPath()
|
for bd,cd in pairs(ad)do
|
||||||
local _d=self.get("type")local ad=self.get("name")return bc(ab[bb],dc,_d,ad)end;local cc={}function cc.setTheme(dc)ab.default=dc end
|
local dd=self._properties[bd]
|
||||||
function cc.getTheme()return ab.default end
|
if(dd)then
|
||||||
function cc.loadTheme(dc)local _d=fs.open(dc,"r")if _d then local ad=_d.readAll()_d.close()
|
if( (dd.type)=="color")then
|
||||||
ab.default=textutils.unserializeJSON(ad)end end;return{BaseElement=cb,API=cc} end
|
if(type(cd)=="string")then if(colors[cd])then cd=colors[cd]else
|
||||||
|
ab.error(
|
||||||
|
"Invalid color '"..cd..
|
||||||
|
"' for property '"..bd.."' in theme for "..self._values.type)end end end;self.set(bd,cd)else
|
||||||
|
ab.error("Invalid property '"..bd..
|
||||||
|
"' in theme for "..self._values.type)end end end;return self end
|
||||||
|
function _c:getTheme()local ad=self:____getElementPath()
|
||||||
|
local bd=self.get("type")local cd=self.get("name")return dc(cb[db],ad,bd,cd)end;local _d={}function _d.setTheme(ad)cb.default=ad end
|
||||||
|
function _d.getTheme()return cb.default end
|
||||||
|
function _d.loadTheme(ad)local bd=fs.open(ad,"r")
|
||||||
|
if bd then local cd=bd.readAll()bd.close()
|
||||||
|
cb.default=textutils.unserializeJSON(cd)if not cb.default then
|
||||||
|
ab.error("Failed to load theme from "..ad)end else
|
||||||
|
ab.error("Could not open theme file: "..ad)end end;return{BaseElement=_c,API=_d} end
|
||||||
project["elementManager.lua"] = function(...) local ab=table.pack(...)
|
project["elementManager.lua"] = function(...) local ab=table.pack(...)
|
||||||
local bb=fs.getDir(ab[2]or"basalt")local cb=ab[1]if(bb==nil)then
|
local bb=fs.getDir(ab[2]or"basalt")local cb=ab[1]if(bb==nil)then
|
||||||
error("Unable to find directory "..
|
error("Unable to find directory "..
|
||||||
|
|||||||
Reference in New Issue
Block a user