- Added Layout System

- Added Grid Layout
- Removed Flexbox

this will make it easy to apply layouts on all container types.
This commit is contained in:
Robert Jelic
2025-11-01 10:47:56 +01:00
parent 278ad08c04
commit 82d8d6cc43
6 changed files with 191 additions and 837 deletions

View File

@@ -85,16 +85,13 @@ local function collectAllClassNames(folder)
end
local function getParentProperties(parentClass, allClasses)
-- Rekursiv alle Properties der Elternklasse(n) holen
local properties = {}
if parentClass then
for _, classContent in pairs(allClasses) do
if classContent.name == parentClass then
-- Properties der Elternklasse kopieren
for _, prop in ipairs(classContent.properties) do
table.insert(properties, prop)
end
-- Auch von der Elternklasse der Elternklasse holen
if classContent.parent then
local parentProps = getParentProperties(classContent.parent, allClasses)
for _, prop in ipairs(parentProps) do