Refonte pour utiliser le systeme de GUI #112
1 changed files with 8 additions and 0 deletions
|
@ -56,6 +56,14 @@ function Math.between(num, value1, value2)
|
||||||
return math.min(math.max(num, min), max)
|
return math.min(math.max(num, min), max)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function Math.either(bool, val1, val2)
|
||||||
|
if (bool) then
|
||||||
|
return val1
|
||||||
|
else
|
||||||
|
return val2
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
-- VECTOR/DIRECTION functions
|
-- VECTOR/DIRECTION functions
|
||||||
-- Easy-to-use function to handle point and motion
|
-- Easy-to-use function to handle point and motion
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue