Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Tourahi authored Jan 8, 2024
1 parent c3d583d commit 9d3c089
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,19 @@ Button = assert require MeowUI.c_cwd .. "Button"

with love
.load = ->
-- Get the manager (Takes care of all events). <Singleton>
export manager = MeowUI.manager
-- Get the root control. <Singleton>
root = manager\getRoot!

-- And lets make a fansy polygon shaped button.
bPoly = with Button "Polygon"
\setPosition 200, 200
\setRadius 25
\setSides 6

-- Finally add the new button as a child to the root so it can be drawn updated etc...
root\addChild frame
-- Get the manager (Takes care of all events). <Singleton>
export manager = MeowUI.manager
-- Get the root control. <Singleton>
root = manager\getRoot!
-- And lets make a fansy polygon shaped button.
bPoly = with Button "Polygon"
\setPosition 200, 200
\setRadius 25
\setSides 6
-- Finally add the new button as a child to the root so it can be drawn updated etc...
root\addChild frame

.update = (dt) ->
manager\update dt
Expand Down

0 comments on commit 9d3c089

Please sign in to comment.