Pop.Box/elements/button.moon

10 lines
223 B
Plaintext
Raw Normal View History

2017-05-11 21:44:54 +00:00
import graphics from love
element = require "#{(...)\sub 1, -7}/element"
class button extends element
new: (@parent, @data={}) =>
super @parent, @data
@data.type = "button" if @data.type == "element"