git-subtree-dir: multi git-subtree-mainline: 14f186d8e1f36b38f6816dfa4d004dd023b882ce git-subtree-split: 285fa7e933d1986bcbd354294c05cee40ef43cea
14 lines
293 B
Plaintext
14 lines
293 B
Plaintext
function gui:setParent(parent,name)-- Needs fixing!!!
|
|
local temp=self.Parent:getChildren()
|
|
for i=1,#temp do
|
|
if temp[i]==self then
|
|
table.remove(self.Parent.Children,i)
|
|
break
|
|
end
|
|
end
|
|
table.insert(parent.Children,self)
|
|
self.Parent=parent
|
|
if name then
|
|
self:SetName(name)
|
|
end
|
|
end |