Update config, BasaltLS definitions, bundle and changelog
This commit is contained in:
7706
BasaltLS.lua
7706
BasaltLS.lua
File diff suppressed because it is too large
Load Diff
714
config.lua
714
config.lua
@@ -1,440 +1,440 @@
|
||||
return {
|
||||
["metadata"] = {
|
||||
["generated"] = "Sun Sep 28 13:05:58 2025",
|
||||
["version"] = "2.0",
|
||||
["generated"] = "Mon Sep 29 18:10:08 2025",
|
||||
},
|
||||
["categories"] = {
|
||||
["libraries"] = {
|
||||
["description"] = "Libraries",
|
||||
["files"] = {
|
||||
["utils"] = {
|
||||
["path"] = "libraries/utils.lua",
|
||||
["default"] = true,
|
||||
["description"] = "",
|
||||
["size"] = 2661,
|
||||
["requires"] = {
|
||||
},
|
||||
},
|
||||
["colorHex"] = {
|
||||
["path"] = "libraries/colorHex.lua",
|
||||
["default"] = true,
|
||||
["description"] = "",
|
||||
["size"] = 132,
|
||||
["requires"] = {
|
||||
},
|
||||
},
|
||||
["expect"] = {
|
||||
["path"] = "libraries/expect.lua",
|
||||
["default"] = true,
|
||||
["description"] = "",
|
||||
["size"] = 846,
|
||||
["requires"] = {
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
["core"] = {
|
||||
["description"] = "Core Files",
|
||||
["files"] = {
|
||||
["log"] = {
|
||||
["path"] = "log.lua",
|
||||
["default"] = true,
|
||||
["description"] = "",
|
||||
["size"] = 3142,
|
||||
["requires"] = {
|
||||
},
|
||||
},
|
||||
["render"] = {
|
||||
["path"] = "render.lua",
|
||||
["default"] = true,
|
||||
["description"] = "",
|
||||
["size"] = 12422,
|
||||
["requires"] = {
|
||||
},
|
||||
},
|
||||
["main"] = {
|
||||
["path"] = "main.lua",
|
||||
["default"] = true,
|
||||
["description"] = "",
|
||||
["size"] = 14085,
|
||||
["requires"] = {
|
||||
},
|
||||
},
|
||||
["errorManager"] = {
|
||||
["path"] = "errorManager.lua",
|
||||
["default"] = true,
|
||||
["description"] = "",
|
||||
["size"] = 3789,
|
||||
["requires"] = {
|
||||
},
|
||||
},
|
||||
["elementManager"] = {
|
||||
["path"] = "elementManager.lua",
|
||||
["default"] = true,
|
||||
["description"] = "",
|
||||
["size"] = 6297,
|
||||
["requires"] = {
|
||||
},
|
||||
},
|
||||
["propertySystem"] = {
|
||||
["path"] = "propertySystem.lua",
|
||||
["default"] = true,
|
||||
["description"] = "",
|
||||
["size"] = 15524,
|
||||
["requires"] = {
|
||||
},
|
||||
},
|
||||
["init"] = {
|
||||
["path"] = "init.lua",
|
||||
["default"] = true,
|
||||
["description"] = "",
|
||||
["size"] = 622,
|
||||
["requires"] = {
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
["elements"] = {
|
||||
["description"] = "UI Elements",
|
||||
["files"] = {
|
||||
["List"] = {
|
||||
["path"] = "elements/List.lua",
|
||||
["default"] = true,
|
||||
["description"] = "A scrollable list of selectable items",
|
||||
["size"] = 8758,
|
||||
["requires"] = {
|
||||
[1] = "VisualElement",
|
||||
},
|
||||
},
|
||||
["ProgressBar"] = {
|
||||
["path"] = "elements/ProgressBar.lua",
|
||||
["default"] = true,
|
||||
["description"] = "",
|
||||
["size"] = 3397,
|
||||
["requires"] = {
|
||||
[1] = "VisualElement",
|
||||
},
|
||||
},
|
||||
["Image"] = {
|
||||
["path"] = "elements/Image.lua",
|
||||
["default"] = false,
|
||||
["description"] = "An element that displays an image in bimg format",
|
||||
["size"] = 15125,
|
||||
["requires"] = {
|
||||
[1] = "VisualElement",
|
||||
},
|
||||
},
|
||||
["Input"] = {
|
||||
["path"] = "elements/Input.lua",
|
||||
["default"] = true,
|
||||
["description"] = "A text input field with various features",
|
||||
["size"] = 9558,
|
||||
["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"] = 43466,
|
||||
["requires"] = {
|
||||
[1] = "VisualElement",
|
||||
},
|
||||
},
|
||||
["Program"] = {
|
||||
["path"] = "elements/Program.lua",
|
||||
["default"] = true,
|
||||
["description"] = "",
|
||||
["size"] = 11430,
|
||||
["requires"] = {
|
||||
[1] = "VisualElement",
|
||||
},
|
||||
},
|
||||
["VisualElement"] = {
|
||||
["path"] = "elements/VisualElement.lua",
|
||||
["default"] = true,
|
||||
["description"] = "The Visual Element class which is the base class for all visual UI elements",
|
||||
["size"] = 18564,
|
||||
["requires"] = {
|
||||
[1] = "BaseElement",
|
||||
},
|
||||
},
|
||||
["ScrollBar"] = {
|
||||
["path"] = "elements/ScrollBar.lua",
|
||||
["default"] = true,
|
||||
["description"] = "A ScrollBar element that can be attached to other elements to control their scroll properties.",
|
||||
["size"] = 9665,
|
||||
["requires"] = {
|
||||
[1] = "VisualElement",
|
||||
},
|
||||
},
|
||||
["LineChart"] = {
|
||||
["path"] = "elements/LineChart.lua",
|
||||
["default"] = false,
|
||||
["description"] = "",
|
||||
["size"] = 3227,
|
||||
["requires"] = {
|
||||
},
|
||||
},
|
||||
["Display"] = {
|
||||
["path"] = "elements/Display.lua",
|
||||
["default"] = false,
|
||||
["description"] = "The Display is a special element which uses the cc window API which you can use.",
|
||||
["size"] = 4243,
|
||||
["requires"] = {
|
||||
[1] = "VisualElement",
|
||||
},
|
||||
},
|
||||
["Slider"] = {
|
||||
["path"] = "elements/Slider.lua",
|
||||
["default"] = true,
|
||||
["description"] = "",
|
||||
["size"] = 4977,
|
||||
["requires"] = {
|
||||
[1] = "VisualElement",
|
||||
},
|
||||
},
|
||||
["Timer"] = {
|
||||
["path"] = "elements/Timer.lua",
|
||||
["default"] = true,
|
||||
["description"] = "",
|
||||
["size"] = 2914,
|
||||
["requires"] = {
|
||||
[1] = "BaseElement",
|
||||
},
|
||||
},
|
||||
["BarChart"] = {
|
||||
["path"] = "elements/BarChart.lua",
|
||||
["default"] = false,
|
||||
["description"] = "",
|
||||
["size"] = 3190,
|
||||
["requires"] = {
|
||||
},
|
||||
},
|
||||
["Label"] = {
|
||||
["path"] = "elements/Label.lua",
|
||||
["default"] = true,
|
||||
["description"] = "A simple text display element that automatically resizes its width based on the text content.",
|
||||
["size"] = 3092,
|
||||
["requires"] = {
|
||||
[1] = "VisualElement",
|
||||
},
|
||||
},
|
||||
["Graph"] = {
|
||||
["path"] = "elements/Graph.lua",
|
||||
["default"] = false,
|
||||
["description"] = "A point based graph element",
|
||||
["size"] = 6989,
|
||||
["requires"] = {
|
||||
},
|
||||
},
|
||||
["FlexBox"] = {
|
||||
["path"] = "elements/FlexBox.lua",
|
||||
["default"] = true,
|
||||
["description"] = "A flexbox container that arranges its children in a flexible layout.",
|
||||
["size"] = 32431,
|
||||
["requires"] = {
|
||||
[1] = "Container",
|
||||
},
|
||||
},
|
||||
["Table"] = {
|
||||
["path"] = "elements/Table.lua",
|
||||
["default"] = true,
|
||||
["description"] = "",
|
||||
["size"] = 16214,
|
||||
["requires"] = {
|
||||
[1] = "VisualElement",
|
||||
},
|
||||
},
|
||||
["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"] = 8466,
|
||||
["requires"] = {
|
||||
[1] = "Container",
|
||||
},
|
||||
},
|
||||
["BigFont"] = {
|
||||
["path"] = "elements/BigFont.lua",
|
||||
["default"] = false,
|
||||
["description"] = "",
|
||||
["size"] = 21049,
|
||||
["requires"] = {
|
||||
[1] = "VisualElement",
|
||||
},
|
||||
},
|
||||
["Menu"] = {
|
||||
["path"] = "elements/Menu.lua",
|
||||
["default"] = true,
|
||||
["description"] = "A horizontal menu bar with selectable items.",
|
||||
["size"] = 4679,
|
||||
["requires"] = {
|
||||
[1] = "List",
|
||||
},
|
||||
},
|
||||
["DropDown"] = {
|
||||
["path"] = "elements/DropDown.lua",
|
||||
["default"] = false,
|
||||
["description"] = "A DropDown menu that shows a list of selectable items",
|
||||
["size"] = 6359,
|
||||
["requires"] = {
|
||||
[1] = "List",
|
||||
},
|
||||
["size"] = 6359,
|
||||
["path"] = "elements/DropDown.lua",
|
||||
},
|
||||
["Switch"] = {
|
||||
["default"] = true,
|
||||
["description"] = "The Switch is a standard Switch element with click handling and state management.",
|
||||
["requires"] = {
|
||||
[1] = "VisualElement",
|
||||
},
|
||||
["size"] = 3269,
|
||||
["path"] = "elements/Switch.lua",
|
||||
},
|
||||
["TextBox"] = {
|
||||
["default"] = false,
|
||||
["description"] = "A multi-line text editor component with cursor support and text manipulation features",
|
||||
["requires"] = {
|
||||
[1] = "VisualElement",
|
||||
},
|
||||
["size"] = 43466,
|
||||
["path"] = "elements/TextBox.lua",
|
||||
},
|
||||
["Frame"] = {
|
||||
["default"] = true,
|
||||
["description"] = "A frame element that serves as a grouping container for other elements.",
|
||||
["requires"] = {
|
||||
[1] = "Container",
|
||||
},
|
||||
["size"] = 6508,
|
||||
["path"] = "elements/Frame.lua",
|
||||
},
|
||||
["Menu"] = {
|
||||
["default"] = true,
|
||||
["description"] = "A horizontal menu bar with selectable items.",
|
||||
["requires"] = {
|
||||
[1] = "List",
|
||||
},
|
||||
["size"] = 4679,
|
||||
["path"] = "elements/Menu.lua",
|
||||
},
|
||||
["Display"] = {
|
||||
["default"] = false,
|
||||
["description"] = "The Display is a special element which uses the cc window API which you can use.",
|
||||
["requires"] = {
|
||||
[1] = "VisualElement",
|
||||
},
|
||||
["size"] = 4243,
|
||||
["path"] = "elements/Display.lua",
|
||||
},
|
||||
["Container"] = {
|
||||
["default"] = true,
|
||||
["description"] = "The container class. It is a visual element that can contain other elements. It is the base class for all containers",
|
||||
["requires"] = {
|
||||
[1] = "VisualElement",
|
||||
},
|
||||
["size"] = 25383,
|
||||
["path"] = "elements/Container.lua",
|
||||
},
|
||||
["Table"] = {
|
||||
["default"] = true,
|
||||
["description"] = "",
|
||||
["requires"] = {
|
||||
[1] = "VisualElement",
|
||||
},
|
||||
["size"] = 16214,
|
||||
["path"] = "elements/Table.lua",
|
||||
},
|
||||
["Label"] = {
|
||||
["default"] = true,
|
||||
["description"] = "A simple text display element that automatically resizes its width based on the text content.",
|
||||
["requires"] = {
|
||||
[1] = "VisualElement",
|
||||
},
|
||||
["size"] = 3092,
|
||||
["path"] = "elements/Label.lua",
|
||||
},
|
||||
["Image"] = {
|
||||
["default"] = false,
|
||||
["description"] = "An element that displays an image in bimg format",
|
||||
["requires"] = {
|
||||
[1] = "VisualElement",
|
||||
},
|
||||
["size"] = 15125,
|
||||
["path"] = "elements/Image.lua",
|
||||
},
|
||||
["BigFont"] = {
|
||||
["default"] = false,
|
||||
["description"] = "",
|
||||
["requires"] = {
|
||||
[1] = "VisualElement",
|
||||
},
|
||||
["size"] = 21049,
|
||||
["path"] = "elements/BigFont.lua",
|
||||
},
|
||||
["ComboBox"] = {
|
||||
["path"] = "elements/ComboBox.lua",
|
||||
["default"] = false,
|
||||
["description"] = "A ComboBox that combines dropdown selection with editable text input",
|
||||
["size"] = 14649,
|
||||
["requires"] = {
|
||||
[1] = "DropDown",
|
||||
},
|
||||
["size"] = 14649,
|
||||
["path"] = "elements/ComboBox.lua",
|
||||
},
|
||||
["Switch"] = {
|
||||
["path"] = "elements/Switch.lua",
|
||||
["List"] = {
|
||||
["default"] = true,
|
||||
["description"] = "The Switch is a standard Switch element with click handling and state management.",
|
||||
["size"] = 3269,
|
||||
["description"] = "A scrollable list of selectable items",
|
||||
["requires"] = {
|
||||
[1] = "VisualElement",
|
||||
},
|
||||
["size"] = 8758,
|
||||
["path"] = "elements/List.lua",
|
||||
},
|
||||
["Tree"] = {
|
||||
["path"] = "elements/Tree.lua",
|
||||
["Slider"] = {
|
||||
["default"] = true,
|
||||
["description"] = "",
|
||||
["size"] = 7942,
|
||||
["requires"] = {
|
||||
[1] = "VisualElement",
|
||||
},
|
||||
["size"] = 4977,
|
||||
["path"] = "elements/Slider.lua",
|
||||
},
|
||||
["TabControl"] = {
|
||||
["path"] = "elements/TabControl.lua",
|
||||
["default"] = true,
|
||||
["description"] = "A TabControl element that provides tabbed interface with multiple content areas.",
|
||||
["size"] = 15300,
|
||||
["requires"] = {
|
||||
[1] = "Container",
|
||||
},
|
||||
},
|
||||
["CheckBox"] = {
|
||||
["path"] = "elements/CheckBox.lua",
|
||||
["default"] = true,
|
||||
["BarChart"] = {
|
||||
["default"] = false,
|
||||
["description"] = "",
|
||||
["size"] = 2928,
|
||||
["requires"] = {
|
||||
[1] = "VisualElement",
|
||||
},
|
||||
},
|
||||
["Frame"] = {
|
||||
["path"] = "elements/Frame.lua",
|
||||
["default"] = true,
|
||||
["description"] = "A frame element that serves as a grouping container for other elements.",
|
||||
["size"] = 6508,
|
||||
["requires"] = {
|
||||
[1] = "Container",
|
||||
},
|
||||
["size"] = 3190,
|
||||
["path"] = "elements/BarChart.lua",
|
||||
},
|
||||
["Button"] = {
|
||||
["path"] = "elements/Button.lua",
|
||||
["default"] = true,
|
||||
["description"] = "",
|
||||
["size"] = 1656,
|
||||
["requires"] = {
|
||||
[1] = "VisualElement",
|
||||
},
|
||||
["size"] = 1656,
|
||||
["path"] = "elements/Button.lua",
|
||||
},
|
||||
["BaseElement"] = {
|
||||
["path"] = "elements/BaseElement.lua",
|
||||
["default"] = true,
|
||||
["description"] = "The base class for all UI elements in Basalt.",
|
||||
["size"] = 9686,
|
||||
["requires"] = {
|
||||
},
|
||||
["size"] = 9686,
|
||||
["path"] = "elements/BaseElement.lua",
|
||||
},
|
||||
["Container"] = {
|
||||
["path"] = "elements/Container.lua",
|
||||
["VisualElement"] = {
|
||||
["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"] = 25383,
|
||||
["description"] = "The Visual Element class which is the base class for all visual UI elements",
|
||||
["requires"] = {
|
||||
[1] = "BaseElement",
|
||||
},
|
||||
["size"] = 22480,
|
||||
["path"] = "elements/VisualElement.lua",
|
||||
},
|
||||
["ScrollBar"] = {
|
||||
["default"] = true,
|
||||
["description"] = "A ScrollBar element that can be attached to other elements to control their scroll properties.",
|
||||
["requires"] = {
|
||||
[1] = "VisualElement",
|
||||
},
|
||||
["size"] = 9665,
|
||||
["path"] = "elements/ScrollBar.lua",
|
||||
},
|
||||
},
|
||||
},
|
||||
["plugins"] = {
|
||||
["description"] = "Plugins",
|
||||
["files"] = {
|
||||
["canvas"] = {
|
||||
["path"] = "plugins/canvas.lua",
|
||||
["Tree"] = {
|
||||
["default"] = true,
|
||||
["description"] = "",
|
||||
["size"] = 7873,
|
||||
["requires"] = {
|
||||
[1] = "VisualElement",
|
||||
},
|
||||
["size"] = 7942,
|
||||
["path"] = "elements/Tree.lua",
|
||||
},
|
||||
["theme"] = {
|
||||
["path"] = "plugins/theme.lua",
|
||||
["Program"] = {
|
||||
["default"] = true,
|
||||
["description"] = "",
|
||||
["size"] = 7042,
|
||||
["requires"] = {
|
||||
[1] = "VisualElement",
|
||||
},
|
||||
["size"] = 11430,
|
||||
["path"] = "elements/Program.lua",
|
||||
},
|
||||
["reactive"] = {
|
||||
["path"] = "plugins/reactive.lua",
|
||||
["CheckBox"] = {
|
||||
["default"] = true,
|
||||
["description"] = "",
|
||||
["size"] = 7580,
|
||||
["requires"] = {
|
||||
[1] = "VisualElement",
|
||||
},
|
||||
["size"] = 2928,
|
||||
["path"] = "elements/CheckBox.lua",
|
||||
},
|
||||
["xml"] = {
|
||||
["path"] = "plugins/xml.lua",
|
||||
["BaseFrame"] = {
|
||||
["default"] = true,
|
||||
["description"] = "",
|
||||
["size"] = 9940,
|
||||
["requires"] = {
|
||||
},
|
||||
},
|
||||
["animation"] = {
|
||||
["path"] = "plugins/animation.lua",
|
||||
["default"] = true,
|
||||
["description"] = "",
|
||||
["size"] = 18421,
|
||||
["requires"] = {
|
||||
},
|
||||
},
|
||||
["state"] = {
|
||||
["path"] = "plugins/state.lua",
|
||||
["default"] = true,
|
||||
["description"] = "",
|
||||
["size"] = 6896,
|
||||
["description"] = "This is the base frame class. It is the root element of all elements and the only element without a parent.",
|
||||
["requires"] = {
|
||||
[1] = "Container",
|
||||
},
|
||||
["size"] = 8466,
|
||||
["path"] = "elements/BaseFrame.lua",
|
||||
},
|
||||
["debug"] = {
|
||||
["path"] = "plugins/debug.lua",
|
||||
["Input"] = {
|
||||
["default"] = true,
|
||||
["description"] = "",
|
||||
["size"] = 6250,
|
||||
["requires"] = {
|
||||
},
|
||||
},
|
||||
["benchmark"] = {
|
||||
["path"] = "plugins/benchmark.lua",
|
||||
["default"] = true,
|
||||
["description"] = "",
|
||||
["size"] = 12581,
|
||||
["description"] = "A text input field with various features",
|
||||
["requires"] = {
|
||||
[1] = "VisualElement",
|
||||
},
|
||||
["size"] = 9558,
|
||||
["path"] = "elements/Input.lua",
|
||||
},
|
||||
["ProgressBar"] = {
|
||||
["default"] = true,
|
||||
["description"] = "",
|
||||
["requires"] = {
|
||||
[1] = "VisualElement",
|
||||
},
|
||||
["size"] = 3397,
|
||||
["path"] = "elements/ProgressBar.lua",
|
||||
},
|
||||
["LineChart"] = {
|
||||
["default"] = false,
|
||||
["description"] = "",
|
||||
["requires"] = {
|
||||
},
|
||||
["size"] = 3227,
|
||||
["path"] = "elements/LineChart.lua",
|
||||
},
|
||||
["FlexBox"] = {
|
||||
["default"] = true,
|
||||
["description"] = "A flexbox container that arranges its children in a flexible layout.",
|
||||
["requires"] = {
|
||||
[1] = "Container",
|
||||
},
|
||||
["size"] = 32431,
|
||||
["path"] = "elements/FlexBox.lua",
|
||||
},
|
||||
["Timer"] = {
|
||||
["default"] = true,
|
||||
["description"] = "",
|
||||
["requires"] = {
|
||||
[1] = "BaseElement",
|
||||
},
|
||||
["size"] = 2914,
|
||||
["path"] = "elements/Timer.lua",
|
||||
},
|
||||
["Graph"] = {
|
||||
["default"] = false,
|
||||
["description"] = "A point based graph element",
|
||||
["requires"] = {
|
||||
},
|
||||
["size"] = 6989,
|
||||
["path"] = "elements/Graph.lua",
|
||||
},
|
||||
["TabControl"] = {
|
||||
["default"] = true,
|
||||
["description"] = "A TabControl element that provides tabbed interface with multiple content areas.",
|
||||
["requires"] = {
|
||||
[1] = "Container",
|
||||
},
|
||||
["size"] = 15300,
|
||||
["path"] = "elements/TabControl.lua",
|
||||
},
|
||||
},
|
||||
["description"] = "UI Elements",
|
||||
},
|
||||
["libraries"] = {
|
||||
["files"] = {
|
||||
["colorHex"] = {
|
||||
["default"] = true,
|
||||
["description"] = "",
|
||||
["requires"] = {
|
||||
},
|
||||
["size"] = 132,
|
||||
["path"] = "libraries/colorHex.lua",
|
||||
},
|
||||
["expect"] = {
|
||||
["default"] = true,
|
||||
["description"] = "",
|
||||
["requires"] = {
|
||||
},
|
||||
["size"] = 846,
|
||||
["path"] = "libraries/expect.lua",
|
||||
},
|
||||
["utils"] = {
|
||||
["default"] = true,
|
||||
["description"] = "",
|
||||
["requires"] = {
|
||||
},
|
||||
["size"] = 2661,
|
||||
["path"] = "libraries/utils.lua",
|
||||
},
|
||||
},
|
||||
["description"] = "Libraries",
|
||||
},
|
||||
["core"] = {
|
||||
["files"] = {
|
||||
["render"] = {
|
||||
["default"] = true,
|
||||
["description"] = "",
|
||||
["requires"] = {
|
||||
},
|
||||
["size"] = 12422,
|
||||
["path"] = "render.lua",
|
||||
},
|
||||
["errorManager"] = {
|
||||
["default"] = true,
|
||||
["description"] = "",
|
||||
["requires"] = {
|
||||
},
|
||||
["size"] = 3789,
|
||||
["path"] = "errorManager.lua",
|
||||
},
|
||||
["main"] = {
|
||||
["default"] = true,
|
||||
["description"] = "",
|
||||
["requires"] = {
|
||||
},
|
||||
["size"] = 14085,
|
||||
["path"] = "main.lua",
|
||||
},
|
||||
["log"] = {
|
||||
["default"] = true,
|
||||
["description"] = "",
|
||||
["requires"] = {
|
||||
},
|
||||
["size"] = 3142,
|
||||
["path"] = "log.lua",
|
||||
},
|
||||
["propertySystem"] = {
|
||||
["default"] = true,
|
||||
["description"] = "",
|
||||
["requires"] = {
|
||||
},
|
||||
["size"] = 15524,
|
||||
["path"] = "propertySystem.lua",
|
||||
},
|
||||
["init"] = {
|
||||
["default"] = true,
|
||||
["description"] = "",
|
||||
["requires"] = {
|
||||
},
|
||||
["size"] = 622,
|
||||
["path"] = "init.lua",
|
||||
},
|
||||
["elementManager"] = {
|
||||
["default"] = true,
|
||||
["description"] = "",
|
||||
["requires"] = {
|
||||
},
|
||||
["size"] = 6297,
|
||||
["path"] = "elementManager.lua",
|
||||
},
|
||||
},
|
||||
["description"] = "Core Files",
|
||||
},
|
||||
["plugins"] = {
|
||||
["files"] = {
|
||||
["animation"] = {
|
||||
["default"] = true,
|
||||
["description"] = "",
|
||||
["requires"] = {
|
||||
},
|
||||
["size"] = 18421,
|
||||
["path"] = "plugins/animation.lua",
|
||||
},
|
||||
["reactive"] = {
|
||||
["default"] = true,
|
||||
["description"] = "",
|
||||
["requires"] = {
|
||||
},
|
||||
["size"] = 7580,
|
||||
["path"] = "plugins/reactive.lua",
|
||||
},
|
||||
["theme"] = {
|
||||
["default"] = true,
|
||||
["description"] = "",
|
||||
["requires"] = {
|
||||
},
|
||||
["size"] = 7042,
|
||||
["path"] = "plugins/theme.lua",
|
||||
},
|
||||
["benchmark"] = {
|
||||
["default"] = true,
|
||||
["description"] = "",
|
||||
["requires"] = {
|
||||
[1] = "VisualElement",
|
||||
},
|
||||
["size"] = 12581,
|
||||
["path"] = "plugins/benchmark.lua",
|
||||
},
|
||||
["xml"] = {
|
||||
["default"] = true,
|
||||
["description"] = "",
|
||||
["requires"] = {
|
||||
},
|
||||
["size"] = 9940,
|
||||
["path"] = "plugins/xml.lua",
|
||||
},
|
||||
["state"] = {
|
||||
["default"] = true,
|
||||
["description"] = "",
|
||||
["requires"] = {
|
||||
[1] = "Container",
|
||||
},
|
||||
["size"] = 6896,
|
||||
["path"] = "plugins/state.lua",
|
||||
},
|
||||
["canvas"] = {
|
||||
["default"] = true,
|
||||
["description"] = "",
|
||||
["requires"] = {
|
||||
},
|
||||
["size"] = 7873,
|
||||
["path"] = "plugins/canvas.lua",
|
||||
},
|
||||
["debug"] = {
|
||||
["default"] = true,
|
||||
["description"] = "",
|
||||
["requires"] = {
|
||||
},
|
||||
["size"] = 6250,
|
||||
["path"] = "plugins/debug.lua",
|
||||
},
|
||||
},
|
||||
["description"] = "Plugins",
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -2218,6 +2218,11 @@ _b.defineProperty(_b,"foreground",{default=colors.white,type="color",canTriggerR
|
||||
_b.defineProperty(_b,"clicked",{default=false,type="boolean"})
|
||||
_b.defineProperty(_b,"hover",{default=false,type="boolean"})
|
||||
_b.defineProperty(_b,"backgroundEnabled",{default=true,type="boolean",canTriggerRender=true})
|
||||
_b.defineProperty(_b,"borderTop",{default=false,type="boolean",canTriggerRender=true})
|
||||
_b.defineProperty(_b,"borderBottom",{default=false,type="boolean",canTriggerRender=true})
|
||||
_b.defineProperty(_b,"borderLeft",{default=false,type="boolean",canTriggerRender=true})
|
||||
_b.defineProperty(_b,"borderRight",{default=false,type="boolean",canTriggerRender=true})
|
||||
_b.defineProperty(_b,"borderColor",{default=colors.white,type="color",canTriggerRender=true})
|
||||
_b.defineProperty(_b,"focused",{default=false,type="boolean",setter=function(cb,db,_c)local ac=cb.get("focused")
|
||||
if db==ac then return db end;if db then cb:focus()else cb:blur()end;if not _c and cb.parent then
|
||||
if db then
|
||||
@@ -2279,7 +2284,7 @@ self:fireEvent("mouse_up",cb,self:getRelativePosition(db,_c))return true end;ret
|
||||
false end
|
||||
function _b:mouse_release(cb,db,_c)
|
||||
self:fireEvent("mouse_release",cb,self:getRelativePosition(db,_c))self.set("clicked",false)end
|
||||
function _b:mouse_move(cb,db,_c)if(db==nil)or(_c==nil)then return end
|
||||
function _b:mouse_move(cb,db,_c)if(db==nil)or(_c==nil)then return false end
|
||||
local ac=self.get("hover")
|
||||
if(self:isInBounds(db,_c))then if(not ac)then self.set("hover",true)
|
||||
self:fireEvent("mouse_enter",self:getRelativePosition(db,_c))end;return true else if(ac)then
|
||||
@@ -2289,14 +2294,30 @@ function _b:mouse_scroll(cb,db,_c)if(self:isInBounds(db,_c))then
|
||||
self:fireEvent("mouse_scroll",cb,self:getRelativePosition(db,_c))return true end;return false end
|
||||
function _b:mouse_drag(cb,db,_c)if(self.get("clicked"))then
|
||||
self:fireEvent("mouse_drag",cb,self:getRelativePosition(db,_c))return true end;return false end;function _b:focus()self:fireEvent("focus")end;function _b:blur()
|
||||
self:fireEvent("blur")self:setCursor(1,1,false)end
|
||||
function _b:key(cb,db)if
|
||||
(self.get("focused"))then self:fireEvent("key",cb,db)end end;function _b:key_up(cb)
|
||||
if(self.get("focused"))then self:fireEvent("key_up",cb)end end;function _b:char(cb)if(self.get("focused"))then
|
||||
self:fireEvent("char",cb)end end
|
||||
function _b:calculatePosition()
|
||||
local cb,db=self.get("x"),self.get("y")
|
||||
if not self.get("ignoreOffset")then if self.parent~=nil then
|
||||
self:fireEvent("blur")
|
||||
pcall(function()
|
||||
self:setCursor(1,1,false,self.get and self.get("foreground"))end)end
|
||||
function _b:addBorder(cb,db)
|
||||
local _c=nil;local ac=nil
|
||||
if type(cb)=="table"and
|
||||
(cb.color or cb.top~=nil or cb.left~=nil)then _c=cb.color;ac=cb else _c=cb;ac=db end
|
||||
if ac then
|
||||
if ac.top~=nil then self.set("borderTop",ac.top)end
|
||||
if ac.bottom~=nil then self.set("borderBottom",ac.bottom)end
|
||||
if ac.left~=nil then self.set("borderLeft",ac.left)end
|
||||
if ac.right~=nil then self.set("borderRight",ac.right)end else self.set("borderTop",true)
|
||||
self.set("borderBottom",true)self.set("borderLeft",true)
|
||||
self.set("borderRight",true)end;if _c then self.set("borderColor",_c)end;return self end
|
||||
function _b:removeBorder()self.set("borderTop",false)
|
||||
self.set("borderBottom",false)self.set("borderLeft",false)
|
||||
self.set("borderRight",false)return self end;function _b:key(cb,db)
|
||||
if(self.get("focused"))then self:fireEvent("key",cb,db)end end;function _b:key_up(cb)if(self.get("focused"))then
|
||||
self:fireEvent("key_up",cb)end end
|
||||
function _b:char(cb)if
|
||||
(self.get("focused"))then self:fireEvent("char",cb)end end
|
||||
function _b:calculatePosition()local cb,db=self.get("x"),self.get("y")
|
||||
if not
|
||||
self.get("ignoreOffset")then if self.parent~=nil then
|
||||
local _c,ac=self.parent.get("offsetX"),self.parent.get("offsetY")cb=cb-_c;db=db-ac end end;return cb,db end
|
||||
function _b:getAbsolutePosition(cb,db)local _c,ac=self.get("x"),self.get("y")if(cb~=nil)then
|
||||
_c=_c+cb-1 end;if(db~=nil)then ac=ac+db-1 end;local bc=self.parent
|
||||
@@ -2319,7 +2340,22 @@ if(self.parent)then local cb=self.parent;cb:removeChild(self)
|
||||
cb:addChild(self)self:updateRender()end;return self end
|
||||
function _b:render()
|
||||
if(not self.get("backgroundEnabled"))then return end;local cb,db=self.get("width"),self.get("height")
|
||||
self:multiBlit(1,1,cb,db," ",da[self.get("foreground")],da[self.get("background")])end;function _b:postRender()end;function _b:destroy()self.set("visible",false)
|
||||
local _c=da[self.get("foreground")]local ac=da[self.get("background")]
|
||||
self:multiBlit(1,1,cb,db," ",_c,ac)
|
||||
if
|
||||
(self.get("borderTop")or self.get("borderBottom")or
|
||||
self.get("borderLeft")or self.get("borderRight"))then
|
||||
local bc=self.get("borderColor")or self.get("foreground")local cc=da[bc]or _c;if self.get("borderTop")then
|
||||
self:textFg(1,1,("\131"):rep(cb),bc)end;if self.get("borderBottom")then
|
||||
self:multiBlit(1,db,cb,1,"\143",ac,cc)end;if self.get("borderLeft")then
|
||||
self:multiBlit(1,1,1,db,"\149",cc,ac)end;if self.get("borderRight")then
|
||||
self:multiBlit(cb,1,1,db,"\149",ac,cc)end
|
||||
if self.get("borderTop")and
|
||||
self.get("borderLeft")then self:blit(1,1,"\151",cc,ac)end;if self.get("borderTop")and self.get("borderRight")then
|
||||
self:blit(cb,1,"\148",ac,cc)end
|
||||
if self.get("borderBottom")and
|
||||
self.get("borderLeft")then self:blit(1,db,"\138",ac,cc)end;if self.get("borderBottom")and self.get("borderRight")then
|
||||
self:blit(cb,db,"\133",ac,cc)end end end;function _b:postRender()end;function _b:destroy()self.set("visible",false)
|
||||
ca.destroy(self)end;return _b end
|
||||
project["elements/ProgressBar.lua"] = function(...) local d=require("elements/VisualElement")
|
||||
local _a=require("libraries/colorHex")local aa=setmetatable({},d)aa.__index=aa
|
||||
|
||||
Reference in New Issue
Block a user