mirror of
https://github.com/TangentFoxy/Pop.Box.git
synced 2024-12-15 12:44:20 +00:00
some basics wip stuff
This commit is contained in:
parent
92da91076e
commit
3ec0067799
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -1,3 +1,6 @@
|
|||||||
[submodule "lib/bitser"]
|
[submodule "lib/bitser"]
|
||||||
path = lib/bitser
|
path = lib/bitser
|
||||||
url = https://github.com/gvx/bitser
|
url = https://github.com/gvx/bitser
|
||||||
|
[submodule "lib/middleclass"]
|
||||||
|
path = lib/middleclass
|
||||||
|
url = https://github.com/kikito/middleclass.git
|
||||||
|
@ -39,7 +39,7 @@ do
|
|||||||
local _exp_1 = self.data.vertical
|
local _exp_1 = self.data.vertical
|
||||||
if "center" == _exp_1 then
|
if "center" == _exp_1 then
|
||||||
self.data.y = self.data.y + ((self.parent.data.h - self.data.h) / 2)
|
self.data.y = self.data.y + ((self.parent.data.h - self.data.h) / 2)
|
||||||
elseif "right" == _exp_1 then
|
elseif "bottom" == _exp_1 then
|
||||||
self.data.y = self.data.y + (self.parent.data.h - self.data.h)
|
self.data.y = self.data.y + (self.parent.data.h - self.data.h)
|
||||||
end
|
end
|
||||||
if toPixel then
|
if toPixel then
|
||||||
|
@ -62,7 +62,7 @@ class element
|
|||||||
switch @data.vertical
|
switch @data.vertical
|
||||||
when "center"
|
when "center"
|
||||||
@data.y += (@parent.data.h - @data.h) / 2
|
@data.y += (@parent.data.h - @data.h) / 2
|
||||||
when "right"
|
when "bottom"
|
||||||
@data.y += @parent.data.h - @data.h
|
@data.y += @parent.data.h - @data.h
|
||||||
|
|
||||||
if toPixel
|
if toPixel
|
||||||
|
1
lib/middleclass
Submodule
1
lib/middleclass
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 27a64f107e61532006030a6168e4fe6a71eee9a2
|
Loading…
Reference in New Issue
Block a user