1
0
Fork 0

canvas.gui: handle visibility changes of widgets.

This commit is contained in:
Thomas Geymayer 2014-07-21 00:28:44 +02:00
parent 8aabd3726a
commit 67229cbadc

View file

@ -127,6 +127,10 @@ gui.Widget = {
if( me._view != nil and me._view.update != nil ) if( me._view != nil and me._view.update != nil )
me._view.update(me); me._view.update(me);
}, },
visibilityChanged: func(visible)
{
me._view._root.setVisible(visible);
},
_setView: func(view) _setView: func(view)
{ {
me._view = view; me._view = view;