mirror of
https://github.com/TangentFoxy/Pop.Box.git
synced 2024-12-15 12:44:20 +00:00
more changes
This commit is contained in:
parent
e895e83ec4
commit
958fa7c5dd
@ -69,11 +69,11 @@
|
|||||||
<h2><a href="#Issues">Issues</a></h2>
|
<h2><a href="#Issues">Issues</a></h2>
|
||||||
<table class="function_list">
|
<table class="function_list">
|
||||||
<tr>
|
<tr>
|
||||||
<td class="name" nowrap><a href="#element.debugDraw-todo7">element.debugDraw-todo7</a></td>
|
<td class="name" nowrap><a href="#element.new-todo7">element.new-todo7</a></td>
|
||||||
<td class="summary">doc me</td>
|
<td class="summary">doc me</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="name" nowrap><a href="#element.debugDraw-todo7-todo8">element.debugDraw-todo7-todo8</a></td>
|
<td class="name" nowrap><a href="#element.new-todo7-todo8">element.new-todo7-todo8</a></td>
|
||||||
<td class="summary">document this</td>
|
<td class="summary">document this</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
@ -84,10 +84,6 @@
|
|||||||
<td class="summary">Constructor expects nothing, or a data table describing it.</td>
|
<td class="summary">Constructor expects nothing, or a data table describing it.</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="name" nowrap><a href="#element.debugDraw">element.debugDraw (self)</a></td>
|
|
||||||
<td class="summary">Slightly modified from pop.debugDraw</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="name" nowrap><a href="#element.setSize">element.setSize (w, h)</a></td>
|
<td class="name" nowrap><a href="#element.setSize">element.setSize (w, h)</a></td>
|
||||||
<td class="summary">Sets an element's width/height.</td>
|
<td class="summary">Sets an element's width/height.</td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -129,8 +125,8 @@
|
|||||||
|
|
||||||
<dl class="function">
|
<dl class="function">
|
||||||
<dt>
|
<dt>
|
||||||
<a name = "element.debugDraw-todo7"></a>
|
<a name = "element.new-todo7"></a>
|
||||||
<strong>element.debugDraw-todo7</strong>
|
<strong>element.new-todo7</strong>
|
||||||
</dt>
|
</dt>
|
||||||
<dd>
|
<dd>
|
||||||
doc me
|
doc me
|
||||||
@ -143,8 +139,8 @@
|
|||||||
|
|
||||||
</dd>
|
</dd>
|
||||||
<dt>
|
<dt>
|
||||||
<a name = "element.debugDraw-todo7-todo8"></a>
|
<a name = "element.new-todo7-todo8"></a>
|
||||||
<strong>element.debugDraw-todo7-todo8</strong>
|
<strong>element.new-todo7-todo8</strong>
|
||||||
</dt>
|
</dt>
|
||||||
<dd>
|
<dd>
|
||||||
document this
|
document this
|
||||||
@ -190,32 +186,6 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
</dd>
|
|
||||||
<dt>
|
|
||||||
<a name = "element.debugDraw"></a>
|
|
||||||
<strong>element.debugDraw (self)</strong>
|
|
||||||
</dt>
|
|
||||||
<dd>
|
|
||||||
Slightly modified from pop.debugDraw
|
|
||||||
|
|
||||||
|
|
||||||
<h3>Parameters:</h3>
|
|
||||||
<ul>
|
|
||||||
<li><span class="parameter">self</span>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<h3>See also:</h3>
|
|
||||||
<ul>
|
|
||||||
<a href="../modules/pop.html#debugDraw">pop.debugDraw</a>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
|
|
||||||
</dd>
|
</dd>
|
||||||
<dt>
|
<dt>
|
||||||
<a name = "element.setSize"></a>
|
<a name = "element.setSize"></a>
|
||||||
@ -456,7 +426,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 2017-04-10 20:32:12 </i>
|
<i style="float:right;">Last updated 2017-04-10 22:47:43 </i>
|
||||||
</div> <!-- id="about" -->
|
</div> <!-- id="about" -->
|
||||||
</div> <!-- id="container" -->
|
</div> <!-- id="container" -->
|
||||||
</body>
|
</body>
|
||||||
|
@ -144,7 +144,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 2017-04-10 20:32:12 </i>
|
<i style="float:right;">Last updated 2017-04-10 22:47:43 </i>
|
||||||
</div> <!-- id="about" -->
|
</div> <!-- id="about" -->
|
||||||
</div> <!-- id="container" -->
|
</div> <!-- id="container" -->
|
||||||
</body>
|
</body>
|
||||||
|
@ -84,7 +84,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 2017-04-10 20:32:12 </i>
|
<i style="float:right;">Last updated 2017-04-10 22:47:43 </i>
|
||||||
</div> <!-- id="about" -->
|
</div> <!-- id="about" -->
|
||||||
</div> <!-- id="container" -->
|
</div> <!-- id="container" -->
|
||||||
</body>
|
</body>
|
||||||
|
@ -491,7 +491,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 2017-04-10 20:32:12 </i>
|
<i style="float:right;">Last updated 2017-04-10 22:47:43 </i>
|
||||||
</div> <!-- id="about" -->
|
</div> <!-- id="about" -->
|
||||||
</div> <!-- id="container" -->
|
</div> <!-- id="container" -->
|
||||||
</body>
|
</body>
|
||||||
|
@ -105,7 +105,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 2017-04-10 20:32:12 </i>
|
<i style="float:right;">Last updated 2017-04-10 22:47:43 </i>
|
||||||
</div> <!-- id="about" -->
|
</div> <!-- id="about" -->
|
||||||
</div> <!-- id="container" -->
|
</div> <!-- id="container" -->
|
||||||
</body>
|
</body>
|
||||||
|
@ -723,7 +723,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 2017-04-10 20:32:12 </i>
|
<i style="float:right;">Last updated 2017-04-10 22:47:43 </i>
|
||||||
</div> <!-- id="about" -->
|
</div> <!-- id="about" -->
|
||||||
</div> <!-- id="container" -->
|
</div> <!-- id="container" -->
|
||||||
</body>
|
</body>
|
||||||
|
@ -126,7 +126,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 2017-04-10 20:32:12 </i>
|
<i style="float:right;">Last updated 2017-04-10 22:47:43 </i>
|
||||||
</div> <!-- id="about" -->
|
</div> <!-- id="about" -->
|
||||||
</div> <!-- id="container" -->
|
</div> <!-- id="container" -->
|
||||||
</body>
|
</body>
|
||||||
|
@ -6,16 +6,6 @@ local element
|
|||||||
do
|
do
|
||||||
local _class_0
|
local _class_0
|
||||||
local _base_0 = {
|
local _base_0 = {
|
||||||
debugDraw = function(self)
|
|
||||||
graphics.setLineWidth(1)
|
|
||||||
graphics.setColor(0, 20, 0, 100)
|
|
||||||
graphics.rectangle("fill", self.data.x, self.data.y, self.data.w, self.data.h)
|
|
||||||
graphics.setColor(150, 255, 150, 150)
|
|
||||||
graphics.rectangle("line", self.data.x, self.data.y, self.data.w, self.data.h)
|
|
||||||
graphics.setColor(200, 255, 200, 255)
|
|
||||||
graphics.print("e", self.data.x, self.data.y)
|
|
||||||
return self
|
|
||||||
end,
|
|
||||||
align = function(self, horizontal, vertical, toPixel)
|
align = function(self, horizontal, vertical, toPixel)
|
||||||
if toPixel == nil then
|
if toPixel == nil then
|
||||||
toPixel = true
|
toPixel = true
|
||||||
|
@ -32,19 +32,6 @@ class element
|
|||||||
|
|
||||||
@align!
|
@align!
|
||||||
|
|
||||||
--- Slightly modified from pop.debugDraw
|
|
||||||
--- @see pop.debugDraw
|
|
||||||
debugDraw: =>
|
|
||||||
graphics.setLineWidth 1
|
|
||||||
graphics.setColor 0, 20, 0, 100
|
|
||||||
graphics.rectangle "fill", @data.x, @data.y, @data.w, @data.h
|
|
||||||
graphics.setColor 150, 255, 150, 150
|
|
||||||
graphics.rectangle "line", @data.x, @data.y, @data.w, @data.h
|
|
||||||
graphics.setColor 200, 255, 200, 255
|
|
||||||
graphics.print "e", @data.x, @data.y
|
|
||||||
|
|
||||||
return @
|
|
||||||
|
|
||||||
--- @todo doc me
|
--- @todo doc me
|
||||||
align: (horizontal, vertical, toPixel=true) =>
|
align: (horizontal, vertical, toPixel=true) =>
|
||||||
unless @data.align return @
|
unless @data.align return @
|
||||||
|
Loading…
Reference in New Issue
Block a user