This commit is contained in:
Paul Liverman III
2018-04-05 15:43:24 -07:00
commit f0a9da387a
13 changed files with 328 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
{
text: "click me"
-- define a clicked fn here
}
{
padding: 3
text: "button"
background: {0, 255, 255, 255} -- teal
color: {255, 255, 255, 255} -- white
}
{
padding: 8
text: "+"
background: {0, 255, 255, 255} -- teal
color: {255, 255, 255, 255} -- white
round: true -- to make a rounded button (like a badge)
round: 5 -- round the background box by this percent/pixels
}
{
background: some_image
clicked: (btn, x, y) -> -- now its a button! :D
hovered: (x, y) -> -- with optional hoverable capability
}