mirror of
https://github.com/linux-man/LoveFrames.git
synced 2024-11-18 16:04:22 +00:00
Fix scrollbutton positioning issues
This commit is contained in:
parent
90a2458c11
commit
e7d71c4ab6
@ -61,6 +61,8 @@ function newobject:initialize(parent, bartype)
|
|||||||
downbutton.Update = function(object, dt)
|
downbutton.Update = function(object, dt)
|
||||||
downbutton.staticx = 0 + self.width - downbutton.width
|
downbutton.staticx = 0 + self.width - downbutton.width
|
||||||
downbutton.staticy = 0 + self.height - downbutton.height
|
downbutton.staticy = 0 + self.height - downbutton.height
|
||||||
|
downbutton.x = downbutton.parent.x + downbutton.staticx
|
||||||
|
downbutton.y = downbutton.parent.y + downbutton.staticy
|
||||||
if object.down and object.hover then
|
if object.down and object.hover then
|
||||||
local dtscrolling = self.parent.dtscrolling
|
local dtscrolling = self.parent.dtscrolling
|
||||||
if dtscrolling then
|
if dtscrolling then
|
||||||
@ -98,6 +100,8 @@ function newobject:initialize(parent, bartype)
|
|||||||
rightbutton.Update = function(object, dt)
|
rightbutton.Update = function(object, dt)
|
||||||
rightbutton.staticx = 0 + self.width - rightbutton.width
|
rightbutton.staticx = 0 + self.width - rightbutton.width
|
||||||
rightbutton.staticy = 0
|
rightbutton.staticy = 0
|
||||||
|
rightbutton.x = rightbutton.parent.x + rightbutton.staticx
|
||||||
|
rightbutton.y = rightbutton.parent.y + rightbutton.staticy
|
||||||
if object.down and object.hover then
|
if object.down and object.hover then
|
||||||
local dtscrolling = self.parent.dtscrolling
|
local dtscrolling = self.parent.dtscrolling
|
||||||
if dtscrolling then
|
if dtscrolling then
|
||||||
|
Loading…
Reference in New Issue
Block a user