Files
Basalt/docs/objects/Frame/addLayoutFromString.md
Robert Jelic 4d614372a1 Updated docs
There is still stuff to do
2022-08-28 18:18:26 +02:00

333 B

addLayoutFromString

Adds a new XML Layout as string into your frame.

Parameters:

  1. string xml

Returns:

  1. frame The frame being used

Usage:

  • Creates a new base frame and adds the mainframe.xml layout
local myFrame = basalt.createFrame():addLayoutFromString("<button x='12' y='5' bg='black' />")