Add more available pivots for dynamic grid

This commit is contained in:
Insality
2020-09-28 02:58:43 +03:00
parent af61d4561a
commit a36ba5ab1c
5 changed files with 27 additions and 9 deletions

View File

@@ -131,6 +131,16 @@ function M.lerp(a, b, t)
end
function M.contains(t, value)
for i = 1, #t do
if t[i] == value then
return i
end
end
return false
end
--- Check if node is enabled in gui hierarchy.
-- Return false, if node or any his parent is disabled
-- @function helper.is_enabled