mirror of
https://github.com/TangentFoxy/Pop.Box.git
synced 2024-12-15 12:44:20 +00:00
woop
This commit is contained in:
parent
98dc6729be
commit
0f6c10a226
@ -13,6 +13,11 @@ to make it easy to experiment with GUIs during development.
|
|||||||
|
|
||||||
Supports LÖVE versions 0.9.1 and higher.
|
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:
|
**Note**: Currently rewriting and redesigning Pop.Box. The following info is out of date until I finish:
|
||||||
|
@ -32,7 +32,6 @@
|
|||||||
|
|
||||||
<h2>Contents</h2>
|
<h2>Contents</h2>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#Issues">Issues</a></li>
|
|
||||||
<li><a href="#Methods">Methods</a></li>
|
<li><a href="#Methods">Methods</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
@ -65,13 +64,6 @@
|
|||||||
</ul>
|
</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>
|
<h2><a href="#Methods">Methods</a></h2>
|
||||||
<table class="function_list">
|
<table class="function_list">
|
||||||
<tr>
|
<tr>
|
||||||
@ -84,24 +76,6 @@
|
|||||||
<br/>
|
<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>
|
<h2 class="section-header "><a name="Methods"></a>Methods</h2>
|
||||||
|
|
||||||
<dl class="function">
|
<dl class="function">
|
||||||
@ -144,7 +118,7 @@
|
|||||||
</div> <!-- id="main" -->
|
</div> <!-- id="main" -->
|
||||||
<div id="about">
|
<div id="about">
|
||||||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.3</a></i>
|
<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="about" -->
|
||||||
</div> <!-- id="container" -->
|
</div> <!-- id="container" -->
|
||||||
</body>
|
</body>
|
||||||
|
@ -79,7 +79,7 @@
|
|||||||
</div> <!-- id="main" -->
|
</div> <!-- id="main" -->
|
||||||
<div id="about">
|
<div id="about">
|
||||||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.3</a></i>
|
<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="about" -->
|
||||||
</div> <!-- id="container" -->
|
</div> <!-- id="container" -->
|
||||||
</body>
|
</body>
|
||||||
|
@ -486,7 +486,7 @@
|
|||||||
</div> <!-- id="main" -->
|
</div> <!-- id="main" -->
|
||||||
<div id="about">
|
<div id="about">
|
||||||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.3</a></i>
|
<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="about" -->
|
||||||
</div> <!-- id="container" -->
|
</div> <!-- id="container" -->
|
||||||
</body>
|
</body>
|
||||||
|
@ -71,7 +71,7 @@
|
|||||||
</div> <!-- id="main" -->
|
</div> <!-- id="main" -->
|
||||||
<div id="about">
|
<div id="about">
|
||||||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.3</a></i>
|
<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="about" -->
|
||||||
</div> <!-- id="container" -->
|
</div> <!-- id="container" -->
|
||||||
</body>
|
</body>
|
||||||
|
@ -665,7 +665,7 @@ table.insert element.parent, element.parent\removeChild(element),
|
|||||||
</div> <!-- id="main" -->
|
</div> <!-- id="main" -->
|
||||||
<div id="about">
|
<div id="about">
|
||||||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.3</a></i>
|
<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="about" -->
|
||||||
</div> <!-- id="container" -->
|
</div> <!-- id="container" -->
|
||||||
</body>
|
</body>
|
||||||
|
@ -125,7 +125,7 @@
|
|||||||
</div> <!-- id="main" -->
|
</div> <!-- id="main" -->
|
||||||
<div id="about">
|
<div id="about">
|
||||||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.3</a></i>
|
<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="about" -->
|
||||||
</div> <!-- id="container" -->
|
</div> <!-- id="container" -->
|
||||||
</body>
|
</body>
|
||||||
|
@ -11,6 +11,9 @@ do
|
|||||||
data = { }
|
data = { }
|
||||||
end
|
end
|
||||||
self.parent, self.data = parent, data
|
self.parent, self.data = parent, data
|
||||||
|
if type(self.data ~= "table") then
|
||||||
|
self.data = { }
|
||||||
|
end
|
||||||
end,
|
end,
|
||||||
__base = _base_0,
|
__base = _base_0,
|
||||||
__name = "element"
|
__name = "element"
|
||||||
|
@ -6,7 +6,8 @@
|
|||||||
class element
|
class element
|
||||||
--- Constructor expects nothing, or a data table describing it.
|
--- Constructor expects nothing, or a data table describing it.
|
||||||
new: (@parent, @data={}) =>
|
new: (@parent, @data={}) =>
|
||||||
--- @todo if data, do stuff about it
|
if type @data != "table"
|
||||||
|
@data = {}
|
||||||
|
|
||||||
setSize: =>
|
setSize: =>
|
||||||
--do more stuff!
|
--do more stuff!
|
||||||
|
28
elements/window.lua
Normal file
28
elements/window.lua
Normal 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
|
Loading…
Reference in New Issue
Block a user