mirror of
https://github.com/TangentFoxy/Pop.Box.git
synced 2024-12-15 12:44:20 +00:00
10 lines
223 B
Plaintext
10 lines
223 B
Plaintext
|
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"
|