add helper

This commit is contained in:
Glenn Maynard
2006-01-18 08:47:00 +00:00
parent 0b241c21bd
commit bd31e7fd92
@@ -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