Container:children

Returns the list of child elements.

Usage

container:children()

Returns

Name Type Description
list table List of child UIElement.

Examples

local list = crystal.VerticalList:new();
local sword = self.list:add_child(crystal.Image:new(crystal.assets.get("assets/sword.png")));
local shield = self.list:add_child(crystal.Image:new(crystal.assets.get("assets/shield.png")));
local armor = self.list:add_child(crystal.Image:new(crystal.assets.get("assets/armor.png")));

for _, child in list:children() do
  child:set_opacity(0.5);
end

This site uses Just the Docs, a documentation theme for Jekyll.