mirror of
https://github.com/TangentFoxy/Pop.Box.git
synced 2024-12-15 12:44:20 +00:00
added getPosition, broke ldoc'ing
This commit is contained in:
parent
adb74f476a
commit
65f9715f99
@ -84,7 +84,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 2017-04-13 08:11:30 </i>
|
||||
<i style="float:right;">Last updated 2017-04-13 14:28:39 </i>
|
||||
</div> <!-- id="about" -->
|
||||
</div> <!-- id="container" -->
|
||||
</body>
|
||||
|
@ -491,7 +491,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 2017-04-13 08:11:30 </i>
|
||||
<i style="float:right;">Last updated 2017-04-13 14:28:39 </i>
|
||||
</div> <!-- id="about" -->
|
||||
</div> <!-- id="container" -->
|
||||
</body>
|
||||
|
@ -105,7 +105,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 2017-04-13 08:11:30 </i>
|
||||
<i style="float:right;">Last updated 2017-04-13 14:28:39 </i>
|
||||
</div> <!-- id="about" -->
|
||||
</div> <!-- id="container" -->
|
||||
</body>
|
||||
|
@ -758,7 +758,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 2017-04-13 08:11:30 </i>
|
||||
<i style="float:right;">Last updated 2017-04-13 14:28:39 </i>
|
||||
</div> <!-- id="about" -->
|
||||
</div> <!-- id="container" -->
|
||||
</body>
|
||||
|
@ -126,7 +126,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 2017-04-13 08:11:30 </i>
|
||||
<i style="float:right;">Last updated 2017-04-13 14:28:39 </i>
|
||||
</div> <!-- id="about" -->
|
||||
</div> <!-- id="container" -->
|
||||
</body>
|
||||
|
@ -75,6 +75,9 @@ do
|
||||
end
|
||||
return self
|
||||
end,
|
||||
getPosition = function(self)
|
||||
return self.data.x, self.data.y
|
||||
end,
|
||||
setSize = function(self, w, h)
|
||||
if w then
|
||||
self.data.w = w
|
||||
|
@ -96,6 +96,11 @@ class element
|
||||
|
||||
return @
|
||||
|
||||
--- @todo doc me
|
||||
--- @todo rewrite me to return value based on alignment instead of just x/y
|
||||
getPosition: =>
|
||||
return @data.x, @data.y
|
||||
|
||||
--- Sets an element's width/height. Fixes alignment if needed.
|
||||
--- @tparam integer w[opt] Width.
|
||||
--- @tparam integer h[opt] Height.
|
||||
|
Loading…
Reference in New Issue
Block a user