And yeah! As you said, the ideal solution to solve the issue one and for all would be the OS "adaptation" way (although I hope it doesn't involve so much suffer that css & different brosers conflicts (too recent )), so I still have started to work on it with the invaluable help (even in absence) of 7feet's function to get the curret OS. Then, I suppose that with the use of only one variable and the simple (and lovely) rule of three, I'll have all what I need! Well, almost... cause at the moment I still need one of that "three" magic values to make it work
So heyvern! Please , if you'd have that pixel exact calculations it'd be simply wonderfuUul! But meantime... could you run for me something like this:
Code: Select all
function LayerScript(moho)
function rl_lostASutilities.getOS()
if os.getenv("OS") ~= nil then
local opSys = string.lower(string.sub(os.getenv("OS"), 1, 3))
if opSys == "win" then
return "win"
else
return "unix"
end
else
return "unix"
end
end
local spaces = "_ _"
print(rl_lostASutilities.getOS() .. spaces .. (#spaces - 2))
end