Skip to content
Snippets Groups Projects
Commit 2ea20583 authored by dg's avatar dg
Browse files

tweaking

git-svn-id: http://svn.net-core.org/repos/t-engine4@6328 51575b47-30f0-44d4-a5cc-537603b46e54
parent ecb2db32
No related branches found
No related tags found
No related merge requests found
......@@ -413,6 +413,13 @@ function _M:setupUI(resizex, resizey, on_resize, addmw, addmh)
elseif ui.hcenter then
if type(ui.hcenter) == "table" then ui.hcenter = self.ui_by_ui[ui.hcenter].x + ui.hcenter.w end
ux = ux + math.floor(self.iw / 2) + ui.hcenter - ui.ui.w / 2
elseif ui.hcenter_left then
if type(ui.hcenter_left) == "table" then
ui.hcenter_left = self.ui_by_ui[ui.hcenter_left].x + ui.hcenter_left.w
ux = ux + ui.hcenter_left - self.ix
else
ux = ux + math.floor(self.iw / 2) + ui.hcenter_left
end
end
else
ux, uy = 0, 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment