add helper
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
-- Hide if b is true, but don't unhide if b is false.
|
||||
function Actor:hide_if(b)
|
||||
if b then
|
||||
self:hidden(1)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user