Files
Basalt/docs/docs1_6/objects/Frame/addLayoutFromString.md
Robert Jelic d4c72514ef Docs 1.6
Accidentally uploaded outdated 1.6 docs
2023-05-01 16:28:46 +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' />")