From 0f6c10a2260b9468ac28b281067fe95e2b3e44c8 Mon Sep 17 00:00:00 2001 From: Paul Liverman III Date: Wed, 7 Sep 2016 20:53:22 -0700 Subject: [PATCH] woop --- README.md | 5 +++++ docs/classes/element.html | 28 +--------------------------- docs/index.html | 2 +- docs/modules/Element.html | 2 +- docs/modules/main.html | 2 +- docs/modules/pop.html | 2 +- docs/modules/util.html | 2 +- elements/element.lua | 3 +++ elements/element.moon | 3 ++- elements/window.lua | 28 ++++++++++++++++++++++++++++ 10 files changed, 44 insertions(+), 33 deletions(-) create mode 100644 elements/window.lua diff --git a/README.md b/README.md index 0e63e33..7092f19 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,11 @@ to make it easy to experiment with GUIs during development. Supports LÖVE versions 0.9.1 and higher. +## Documentation + +Building the documentation relies on a specific version of LDoc. Run +`sudo luarocks install ldoc 1.4.4-1` to install the necessary version. + **Note**: Currently rewriting and redesigning Pop.Box. The following info is out of date until I finish: diff --git a/docs/classes/element.html b/docs/classes/element.html index 05042b3..8040c2a 100644 --- a/docs/classes/element.html +++ b/docs/classes/element.html @@ -32,7 +32,6 @@

Contents

@@ -65,13 +64,6 @@ -

Issues

- - - - - -
element.new-todo5if data, do stuff about it

Methods

@@ -84,24 +76,6 @@
-

Issues

- -
-
- - element.new-todo5 -
-
- if data, do stuff about it - - - - - - - -
-

Methods

@@ -144,7 +118,7 @@
generated by LDoc 1.4.3 -Last updated 2016-09-07 20:48:49 +Last updated 2016-09-07 20:53:10
diff --git a/docs/index.html b/docs/index.html index 3fb7c10..cdfa66b 100644 --- a/docs/index.html +++ b/docs/index.html @@ -79,7 +79,7 @@
generated by LDoc 1.4.3 -Last updated 2016-09-07 20:48:49 +Last updated 2016-09-07 20:53:10
diff --git a/docs/modules/Element.html b/docs/modules/Element.html index af0aea8..c5be4fa 100644 --- a/docs/modules/Element.html +++ b/docs/modules/Element.html @@ -486,7 +486,7 @@
generated by LDoc 1.4.3 -Last updated 2016-09-07 20:48:49 +Last updated 2016-09-07 20:53:10
diff --git a/docs/modules/main.html b/docs/modules/main.html index 02292c9..26923de 100644 --- a/docs/modules/main.html +++ b/docs/modules/main.html @@ -71,7 +71,7 @@
generated by LDoc 1.4.3 -Last updated 2016-09-07 20:48:49 +Last updated 2016-09-07 20:53:10
diff --git a/docs/modules/pop.html b/docs/modules/pop.html index 3c744f2..fb74b47 100644 --- a/docs/modules/pop.html +++ b/docs/modules/pop.html @@ -665,7 +665,7 @@ table.insert element.parent, element.parent\removeChild(element),
generated by LDoc 1.4.3 -Last updated 2016-09-07 20:48:49 +Last updated 2016-09-07 20:53:10
diff --git a/docs/modules/util.html b/docs/modules/util.html index d1d5b04..39f4c16 100644 --- a/docs/modules/util.html +++ b/docs/modules/util.html @@ -125,7 +125,7 @@
generated by LDoc 1.4.3 -Last updated 2016-09-07 20:48:49 +Last updated 2016-09-07 20:53:10
diff --git a/elements/element.lua b/elements/element.lua index b8f0dd4..e1c211b 100644 --- a/elements/element.lua +++ b/elements/element.lua @@ -11,6 +11,9 @@ do data = { } end self.parent, self.data = parent, data + if type(self.data ~= "table") then + self.data = { } + end end, __base = _base_0, __name = "element" diff --git a/elements/element.moon b/elements/element.moon index 6c71289..008786f 100644 --- a/elements/element.moon +++ b/elements/element.moon @@ -6,7 +6,8 @@ class element --- Constructor expects nothing, or a data table describing it. new: (@parent, @data={}) => - --- @todo if data, do stuff about it + if type @data != "table" + @data = {} setSize: => --do more stuff! diff --git a/elements/window.lua b/elements/window.lua new file mode 100644 index 0000000..b164cad --- /dev/null +++ b/elements/window.lua @@ -0,0 +1,28 @@ +local window +do + local _class_0 + local _base_0 = { + setSize = function(self) end + } + _base_0.__index = _base_0 + _class_0 = setmetatable({ + __init = function(self, parent, data) + if data == nil then + data = { } + end + self.parent, self.data = parent, data + end, + __base = _base_0, + __name = "window" + }, { + __index = _base_0, + __call = function(cls, ...) + local _self_0 = setmetatable({}, _base_0) + cls.__init(_self_0, ...) + return _self_0 + end + }) + _base_0.__class = _class_0 + window = _class_0 + return _class_0 +end