Small bug fixes
This commit is contained in:
Robert Jelic
2023-05-19 12:41:59 +02:00
parent df1569af39
commit 930d2ad0c8
3 changed files with 3 additions and 3 deletions

View File

@@ -25,7 +25,7 @@ return function(name, basalt)
end end
end end
if (h + x - width >= amount) then if (w + x - width >= amount) then
amount = max(w + x - width, 0) amount = max(w + x - width, 0)
end end
end end

View File

@@ -267,7 +267,7 @@ return function(name, basalt)
isFocused = function(self) isFocused = function(self)
if (parent ~= nil) then if (parent ~= nil) then
return parent:getFocusedObject() == self return parent:getFocused() == self
end end
return true return true
end, end,

View File

@@ -28,7 +28,7 @@ return {
local parent = self:getParent() local parent = self:getParent()
local objects = {} local objects = {}
for k,v in pairs(objectGroup)do for k,v in pairs(objectGroup)do
objects[v] = parent:getObject(v) objects[v] = parent:getChild(v)
if(objects[v]==nil)then if(objects[v]==nil)then
error("Dynamic Values - unable to find object: "..v) error("Dynamic Values - unable to find object: "..v)
end end