heroes-of-nerevelon/lib/simple_ui/multi_child_element.lua
2025-11-18 23:48:18 +03:00

14 lines
314 B
Lua

--- @class MultiChildElement : UIElement
--- @field children UIElement[]
local element = setmetatable({}, require "lib.simple_ui.element")
element.__index = element
element.children = {}
function element:update(dt)
for _, child in ipairs(self.children) do
child:update(dt)
end
end
return element