This commit is contained in:
Paul Liverman III 2016-09-07 20:53:22 -07:00
parent 98dc6729be
commit 0f6c10a226
10 changed files with 44 additions and 33 deletions

View File

@ -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:

View File

@ -32,7 +32,6 @@
<h2>Contents</h2>
<ul>
<li><a href="#Issues">Issues</a></li>
<li><a href="#Methods">Methods</a></li>
</ul>
@ -65,13 +64,6 @@
</ul>
<h2><a href="#Issues">Issues</a></h2>
<table class="function_list">
<tr>
<td class="name" nowrap><a href="#element.new-todo5">element.new-todo5</a></td>
<td class="summary">if data, do stuff about it</td>
</tr>
</table>
<h2><a href="#Methods">Methods</a></h2>
<table class="function_list">
<tr>
@ -84,24 +76,6 @@
<br/>
<h2 class="section-header "><a name="Issues"></a>Issues</h2>
<dl class="function">
<dt>
<a name = "element.new-todo5"></a>
<strong>element.new-todo5</strong>
</dt>
<dd>
if data, do stuff about it
</dd>
</dl>
<h2 class="section-header "><a name="Methods"></a>Methods</h2>
<dl class="function">
@ -144,7 +118,7 @@
</div> <!-- id="main" -->
<div id="about">
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.3</a></i>
<i style="float:right;">Last updated 2016-09-07 20:48:49 </i>
<i style="float:right;">Last updated 2016-09-07 20:53:10 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>

View File

@ -79,7 +79,7 @@
</div> <!-- id="main" -->
<div id="about">
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.3</a></i>
<i style="float:right;">Last updated 2016-09-07 20:48:49 </i>
<i style="float:right;">Last updated 2016-09-07 20:53:10 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>

View File

@ -486,7 +486,7 @@
</div> <!-- id="main" -->
<div id="about">
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.3</a></i>
<i style="float:right;">Last updated 2016-09-07 20:48:49 </i>
<i style="float:right;">Last updated 2016-09-07 20:53:10 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>

View File

@ -71,7 +71,7 @@
</div> <!-- id="main" -->
<div id="about">
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.3</a></i>
<i style="float:right;">Last updated 2016-09-07 20:48:49 </i>
<i style="float:right;">Last updated 2016-09-07 20:53:10 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>

View File

@ -665,7 +665,7 @@ table.insert element.parent, element.parent\removeChild(element),
</div> <!-- id="main" -->
<div id="about">
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.3</a></i>
<i style="float:right;">Last updated 2016-09-07 20:48:49 </i>
<i style="float:right;">Last updated 2016-09-07 20:53:10 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>

View File

@ -125,7 +125,7 @@
</div> <!-- id="main" -->
<div id="about">
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.3</a></i>
<i style="float:right;">Last updated 2016-09-07 20:48:49 </i>
<i style="float:right;">Last updated 2016-09-07 20:53:10 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>

View File

@ -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"

View File

@ -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!

28
elements/window.lua Normal file
View File

@ -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