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
if (h + x - width >= amount) then
if (w + x - width >= amount) then
amount = max(w + x - width, 0)
end
end

View File

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

View File

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