canvas.gui: handle visibility changes of widgets.
This commit is contained in:
parent
8aabd3726a
commit
67229cbadc
1 changed files with 4 additions and 0 deletions
|
@ -127,6 +127,10 @@ gui.Widget = {
|
|||
if( me._view != nil and me._view.update != nil )
|
||||
me._view.update(me);
|
||||
},
|
||||
visibilityChanged: func(visible)
|
||||
{
|
||||
me._view._root.setVisible(visible);
|
||||
},
|
||||
_setView: func(view)
|
||||
{
|
||||
me._view = view;
|
||||
|
|
Loading…
Reference in a new issue