changed slider issue, fixed monitor bug, added basalt.isKeyDown(keys)

Slider: added setIndex() and changed setValue behaviour
Monitor: Changed monitor draw priority so input's cursor still shows (have to figure out why its even hiding)
added new function where you can check if a user is holding a key currently down
This commit is contained in:
Robert Jelic
2022-05-31 20:55:14 +02:00
parent 5aa57c0930
commit 11cdd74d39
8 changed files with 117 additions and 19 deletions

View File

@@ -419,6 +419,9 @@ local function Frame(name, parent)
draw = function(self)
if (self:getVisualChanged()) then
if (base.draw(self)) then
for _,v in pairs(monitors)do
v.frame:draw()
end
local obx, oby = self:getAbsolutePosition(self:getAnchorPosition())
local anchx, anchy = self:getAnchorPosition()
if (self.parent ~= nil) then
@@ -460,9 +463,6 @@ local function Frame(name, parent)
end
self:setVisualChanged(false)
end
for _,v in pairs(monitors)do
v.frame:draw()
end
drawHelper.update()
end
end;