mirror of
https://github.com/linux-man/LoveFrames.git
synced 2024-11-26 05:14:21 +00:00
Fixed Frame:MakeTop() chaining issue
Thanks to htaeD for reporting this.
This commit is contained in:
parent
4dfffef2bc
commit
cea6a20ea3
@ -775,17 +775,17 @@ function newobject:MakeTop()
|
|||||||
if baseparent.type == "frame" then
|
if baseparent.type == "frame" then
|
||||||
baseparent:MakeTop()
|
baseparent:MakeTop()
|
||||||
end
|
end
|
||||||
return
|
return self
|
||||||
end
|
end
|
||||||
|
|
||||||
-- check to see if the object is the only child of the base object
|
-- check to see if the object is the only child of the base object
|
||||||
if numbasechildren == 1 then
|
if numbasechildren == 1 then
|
||||||
return
|
return self
|
||||||
end
|
end
|
||||||
|
|
||||||
-- check to see if the object is already at the top
|
-- check to see if the object is already at the top
|
||||||
if basechildren[numbasechildren] == self then
|
if basechildren[numbasechildren] == self then
|
||||||
return
|
return self
|
||||||
end
|
end
|
||||||
|
|
||||||
-- make this the top object
|
-- make this the top object
|
||||||
@ -1106,4 +1106,4 @@ function newobject:GetAlwaysOnTop()
|
|||||||
|
|
||||||
return self.alwaysontop
|
return self.alwaysontop
|
||||||
|
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user