Skip to content
Snippets Groups Projects
Commit 4b55f584 authored by Alex Ksandra's avatar Alex Ksandra
Browse files

Whoops. :)

parent 12f0e284
No related branches found
No related tags found
1 merge request!64Steamtech UI fix
......@@ -434,8 +434,8 @@ function _M:setupUI(resizex, resizey, on_resize, addmw, addmh)
-- At first, calculate ALL dependencies
if ui.top and type(ui.top) == "table" then ui.top = self.ui_by_ui[ui.top].y - self.iy + ui.top.h + padding end
if ui.bottom and type(ui.bottom) == "table" then
local top = self.ui_by_ui[ui.bottom].y - self.iy - padding
ui.bottom = self.ih - top - ui.ui.h
local top = self.ui_by_ui[ui.bottom].y - self.iy -- top of ui.bottom
ui.bottom = self.ih - top + padding
end
if ui.vcenter and type(ui.vcenter) == "table" then
local vcenter = self.ui_by_ui[ui.vcenter].y + ui.vcenter.h
......@@ -444,8 +444,8 @@ function _M:setupUI(resizex, resizey, on_resize, addmw, addmh)
if ui.left and type(ui.left) == "table" then ui.left = self.ui_by_ui[ui.left].x - self.ix + ui.left.w + padding end
if ui.right and type(ui.right)== "table" then
local left = self.ui_by_ui[ui.right].x - self.ix - padding
ui.right = self.iw - left - ui.ui.w
local left = self.ui_by_ui[ui.right].x - self.ix -- left of ui.right
ui.right = self.iw - left + padding
end
if ui.hcenter and type(ui.hcenter) == "table" then
local hcenter = self.ui_by_ui[ui.hcenter].x - self.ix + ui.hcenter.w / 2
......
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