mirror of
https://github.com/linux-man/LoveFrames.git
synced 2024-11-18 16:04:22 +00:00
Move to top "children" frames
This commit is contained in:
parent
5cca031cb1
commit
07a90ce010
@ -729,6 +729,15 @@ function newobject:MakeTop()
|
||||
if baseparent.type == "frame" then
|
||||
baseparent:MakeTop()
|
||||
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
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user