mirror of
https://github.com/TangentFoxy/Pop.Box.git
synced 2024-12-15 12:44:20 +00:00
bb2cbba024
- added modified debugDraw to element class - made window element properly inherit from element class - fixed path detection on initialization - added better logging and more logging to initialization - fixed stupid bug with pop.debugDraw
17 lines
468 B
Plaintext
17 lines
468 B
Plaintext
--- A generic window element. Supports resizing, minimizing(?), and closing.
|
|
--- @classmod window
|
|
--- @copyright Paul Liverman III (2016)
|
|
--- @license The MIT License (MIT)
|
|
|
|
element = require "#{(...)\sub 1, -7}/element"
|
|
|
|
class window extends element
|
|
--- Constructor expects nothing, or a data table describing it.
|
|
new: (@parent, @data={}) =>
|
|
super @parent, @data
|
|
|
|
--- @todo if data, do stuff about it
|
|
|
|
setSize: =>
|
|
--do more stuff!
|