Move to top "children" frames

This commit is contained in:
Caldas Lopes 2024-09-03 18:49:22 +01:00 committed by GitHub
parent 5cca031cb1
commit 07a90ce010
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -729,6 +729,15 @@ function newobject:MakeTop()
if baseparent.type == "frame" then if baseparent.type == "frame" then
baseparent:MakeTop() baseparent:MakeTop()
end end
basechildren = baseparent:GetChildren()
for k, v in ipairs(basechildren) do
if v == self then
table.remove(basechildren, k)
table.insert(basechildren, self)
key = k
break
end
end
return self return self
end end