Basalt2 update

- Finished themes
- Added state plugins for persistance
- Finished reactive plugin
- Added debug plugin (80% finished)
- Added benchmark plugin
- Added Tree, Table, List, Dropdown and Menu Elements
- Bugfixes
This commit is contained in:
Robert Jelic
2025-02-15 18:18:49 +01:00
parent 8ea3ca2465
commit db716636bd
32 changed files with 1700 additions and 165 deletions

19
examples/benchmarks.lua Normal file
View File

@@ -0,0 +1,19 @@
local basalt = require("src")
local main = basalt.getMainFrame()
local btn = main:addButton()
:setText("Test")
:setX(40)
:setY(5)
:onMouseClick(function()
main:logContainerBenchmarks("render")
--main:stopChildrenBenchmark("render")
end)
local prog = main:addProgram()
:execute("../rom/programs/shell.lua")
local frame main:addFrame():setX(30):addButton()
main:benchmarkContainer("render")
basalt.run()