-monitor support & getAll() for list-objects

added multiple monitor support
added getAll() for lists, dropdowns, radios and menubars
This commit is contained in:
Robert Jelic
2022-05-30 22:45:37 +02:00
parent 628e02d600
commit 1675b71c40
18 changed files with 265 additions and 155 deletions

View File

@@ -123,9 +123,9 @@ local function Object(name)
setPosition = function(self, xPos, yPos, rel)
if (rel) then
self.x, self.y = self.x + xPos, self.y + yPos
self.x, self.y = math.floor(self.x + xPos), math.floor(self.y + yPos)
else
self.x, self.y = xPos, yPos
self.x, self.y = math.floor(xPos), math.floor(yPos)
end
visualsChanged = true
return self
@@ -264,6 +264,7 @@ local function Object(name)
onClick = function(self, func)
self:registerEvent("mouse_click", func)
self:registerEvent("monitor_touch", func)
return self
end;