Skip to content
Snippets Groups Projects
Commit 5075b1f9 authored by DarkGod's avatar DarkGod
Browse files

Merge branch 'small_fixes' into 'master'

Small fixes: Revenge: Sliders were off.

They were seriously off to the top, especially on Steam UI. I tried to fix this and seemingly succeeded.
(Note: birth screen sliers are never set to 0 for some reason. Perhaps you might want to look into it.)
parents 4a36e73d a9619d1d
No related branches found
No related tags found
No related merge requests found
......@@ -48,9 +48,9 @@ function _M:display(x, y)
self.middle.t:toScreenFull(x, y + self.top.h, self.middle.w, self.h - self.top.h - self.bottom.h, self.middle.tw, self.middle.th)
self.pos = util.minBound(self.pos, 0, self.max)
if self.inverse then
y = y + self.h - (self.pos / self.max) * (self.h - self.bottom.h - self.top.h - self.sel.h * 0.5) + self.sel.h * 0.5
y = y + self.h - (self.pos / self.max) * (self.h - self.bottom.h - self.top.h - self.sel.h) - self.bottom.h - self.sel.h
else
y = y + (self.pos / self.max) * (self.h - self.bottom.h - self.top.h - self.sel.h * 0.5) + self.sel.h * 0.5
y = y + (self.pos / self.max) * (self.h - self.bottom.h - self.top.h - self.sel.h) + self.top.h
end
self.sel.t:toScreenFull(x - (self.sel.w - self.top.w) * 0.5, y, self.sel.w, self.sel.h, self.sel.tw, self.sel.th)
end
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