bug fix ?
This commit is contained in:
parent
ea9b17a2c4
commit
739d441405
1 changed files with 5 additions and 1 deletions
|
|
@ -13,6 +13,7 @@ local module = {};
|
||||||
|
|
||||||
function module.init(shared)
|
function module.init(shared)
|
||||||
local new = {};
|
local new = {};
|
||||||
|
local InstanceNew = Instance.new;
|
||||||
local event = shared.event; ---@module src.event
|
local event = shared.event; ---@module src.event
|
||||||
local bind = event.bind;
|
local bind = event.bind;
|
||||||
local store = shared.store; ---@module src.store
|
local store = shared.store; ---@module src.store
|
||||||
|
|
@ -31,6 +32,9 @@ function module.init(shared)
|
||||||
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"
|
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
|
end
|
||||||
round.setRound(item,value);
|
round.setRound(item,value);
|
||||||
|
elseif index == "uiRoundSize" then
|
||||||
|
local uiCorner = InstanceNew("UICorner",item);
|
||||||
|
uiCorner.CornerRadius = UDim.new(0,value);
|
||||||
else
|
else
|
||||||
item[index] = value; -- set property
|
item[index] = value; -- set property
|
||||||
end
|
end
|
||||||
|
|
@ -42,7 +46,7 @@ function module.init(shared)
|
||||||
local item;
|
local item;
|
||||||
local classOfClassName = type(ClassName);
|
local classOfClassName = type(ClassName);
|
||||||
if classOfClassName == "string" then -- if classname is a string value, cdall instance.new for making new roblox instance
|
if classOfClassName == "string" then -- if classname is a string value, cdall instance.new for making new roblox instance
|
||||||
item = Instance.new(ClassName);
|
item = InstanceNew(ClassName);
|
||||||
elseif classOfClassName == "function" then -- if classname is a function value, call it for making new object (OOP object)
|
elseif classOfClassName == "function" then -- if classname is a function value, call it for making new object (OOP object)
|
||||||
item = ClassName();
|
item = ClassName();
|
||||||
elseif classOfClassName == "table" then -- if classname is a calss what is included new function, call it for making new object (object)
|
elseif classOfClassName == "table" then -- if classname is a calss what is included new function, call it for making new object (object)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue