Advertisement
toastonrye

typoBasaltDemo

Aug 7th, 2022
1,073
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.49 KB | None | 0 0
  1. local basalt = require("Basalt")
  2.  
  3. local mainFrame = basalt.createFrame("mainFrame").show()
  4. local button = mainFrame --> Basalt returns an instance of the object on most methods, to make use of "call-chaining"
  5.         :addButton("clickableButton") --> This is an example of call chaining
  6.         :setPosition(4,4)
  7.         :setText("Click me!")
  8.         :onClick(
  9.             function()
  10.                 basalt.debug("I got clicked!")
  11.             end)
  12.         :show()
  13.  
  14. basalt.autoUpdate()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement