* Updated setTheme.md * Updated 1.6 setTheme.md * Fixed typo * Cleaned up loadImage functions * Changed it to use the new function * More typos --------- Co-authored-by: SeaSide53 <https://github.com/SeaSide53>
550 B
550 B
add<Object>
Adds a new object. Don't use add<Object> please use addTheObjectYouNeed. For example if you want a new Frame, use addFrame, if you want to add a button, use addButton.
Parameters:
stringoptional - the id if you don't add a id it will automatically generate one for you
Returns:
objectThe new object you've created
Usage:
- Creates some example objects
local main = basalt.createFrame()
local button = main:addButton()
local label = main:addLabel()
local frame = main:addFrame()