mirror of
https://github.com/airstruck/luigi.git
synced 2026-01-10 16:28:23 +00:00
minor
This commit is contained in:
@@ -177,6 +177,9 @@ end
|
|||||||
Show the layout.
|
Show the layout.
|
||||||
|
|
||||||
Hooks all appropriate Love events and callbacks.
|
Hooks all appropriate Love events and callbacks.
|
||||||
|
|
||||||
|
@treturn Layout
|
||||||
|
Return this layout for chaining.
|
||||||
--]]--
|
--]]--
|
||||||
function Layout:show ()
|
function Layout:show ()
|
||||||
if self.isShown then
|
if self.isShown then
|
||||||
@@ -192,12 +195,17 @@ function Layout:show ()
|
|||||||
|
|
||||||
Backend.show(self)
|
Backend.show(self)
|
||||||
self.root:reshape()
|
self.root:reshape()
|
||||||
|
|
||||||
|
return self
|
||||||
end
|
end
|
||||||
|
|
||||||
--[[--
|
--[[--
|
||||||
Hide the layout.
|
Hide the layout.
|
||||||
|
|
||||||
Unhooks Love events and callbacks.
|
Unhooks Love events and callbacks.
|
||||||
|
|
||||||
|
@treturn Layout
|
||||||
|
Return this layout for chaining.
|
||||||
--]]--
|
--]]--
|
||||||
function Layout:hide ()
|
function Layout:hide ()
|
||||||
if not self.isShown then
|
if not self.isShown then
|
||||||
@@ -205,6 +213,8 @@ function Layout:hide ()
|
|||||||
end
|
end
|
||||||
self.isShown = nil
|
self.isShown = nil
|
||||||
Backend.hide(self)
|
Backend.hide(self)
|
||||||
|
|
||||||
|
return self
|
||||||
end
|
end
|
||||||
|
|
||||||
--[[--
|
--[[--
|
||||||
|
|||||||
Reference in New Issue
Block a user