bug fix
This commit is contained in:
parent
cb5c0c379b
commit
2c8c6b40d2
1 changed files with 11 additions and 2 deletions
|
|
@ -21,6 +21,7 @@ function module.init(shared)
|
||||||
local mount = shared.mount; ---@module src.mount
|
local mount = shared.mount; ---@module src.mount
|
||||||
local getHolder = mount.getHolder;
|
local getHolder = mount.getHolder;
|
||||||
local advancedTween = shared.advancedTween; ---@module src.libs.AdvancedTween
|
local advancedTween = shared.advancedTween; ---@module src.libs.AdvancedTween
|
||||||
|
local round = shared.round; ---@module src.libs.round
|
||||||
|
|
||||||
-- make object that from instance, class and more
|
-- make object that from instance, class and more
|
||||||
function new.make(ClassName,...) -- render object
|
function new.make(ClassName,...) -- render object
|
||||||
|
|
@ -104,7 +105,7 @@ function module.init(shared)
|
||||||
end
|
end
|
||||||
if tween then
|
if tween then
|
||||||
if not advancedTween then
|
if not advancedTween then
|
||||||
return warn "module 'AdvancedTween' needs to be loaded for tween properties but it is not founded on 'src.libs'. you should adding that to src.libs directory";
|
return warn "module 'AdvancedTween' needs to be loaded for tween properties but it is not found on 'src.libs'. you should adding that to src.libs directory";
|
||||||
end
|
end
|
||||||
advancedTween.RunTween(item,tween,{[index] = newValue});
|
advancedTween.RunTween(item,tween,{[index] = newValue});
|
||||||
else
|
else
|
||||||
|
|
@ -121,7 +122,15 @@ function module.init(shared)
|
||||||
-- event binding
|
-- event binding
|
||||||
elseif indexType == "string" then
|
elseif indexType == "string" then
|
||||||
-- prop set
|
-- prop set
|
||||||
|
local isImage = (ClassName == "ImageLabel" or ClassName == "ImageButton");
|
||||||
|
if index == "roundSize" and isImage then
|
||||||
|
if not round then
|
||||||
|
warn "module 'round' needs to be loaded for set images round size but it is not found on 'src.libs'. you should adding that to src.libs directory"
|
||||||
|
end
|
||||||
|
round.setRound(item,value);
|
||||||
|
else
|
||||||
item[index] = value; -- set property
|
item[index] = value; -- set property
|
||||||
|
end
|
||||||
elseif indexType == "number" then -- object
|
elseif indexType == "number" then -- object
|
||||||
-- child object
|
-- child object
|
||||||
mount(item,((iprop == 1) and value or value:Clone()),holder);
|
mount(item,((iprop == 1) and value or value:Clone()),holder);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue