Simple problem ^^"
xfresco opened this issue · 1 comments
dgs/plugin/Gradient/gradient.lua
Line 20 in f6e2dc3
assert(type(colorFrom) == "number","Bad argument @dgsGetGradientColor at argument 2, expect number got "..type(color1))
assert(type(color2) == "number","Bad argument @dgsGetGradientColor at argument 3, expect number got "..type(color2))
function dgsGradientSetColor(gradShader,colorFrom,colorTo)
assert(dgsGetPluginType(gradShader) == "dgs-dxgradient","Bad argument @dgsGradientSetColor at argument 1, expect dgs-dxgradient got "..type(gradShader))
assert(type(colorFrom) == "number","Bad argument @dgsGetGradientColor at argument 2, expect number got "..type(colorFrom))
assert(type(colorTo) == "number","Bad argument @dgsGetGradientColor at argument 3, expect number got "..type(colorTo))
dgsSetData(gradShader,"colorFrom",colorFrom)
dgsSetData(gradShader,"colorTo",colorTo)
dxSetShaderValue(gradShader,"colorFrom",{fromcolor(colorFrom,true,true)})
dxSetShaderValue(gradShader,"colorTo",{fromcolor(colorTo,true,true)})
return true
end
Fixed.