--- deliantra/Deliantra-Client/DC/UI.pm 2006/05/26 18:28:23 1.240 +++ deliantra/Deliantra-Client/DC/UI.pm 2006/05/26 20:50:35 1.241 @@ -231,6 +231,7 @@ # broken show/hide model + delete $self->{root}; delete $self->{visible}; undef $GRAB if $GRAB == $self; @@ -462,7 +463,7 @@ Scalar::Util::weaken ($self->{parent} = $parent); $self->{root} = $parent->{root}; - $self->{visible} = $parent->{visible}; + $self->{visible} = $parent->{visible} + 1; # TODO: req_w _does_change after ->reconfigure $self->check_size @@ -2966,6 +2967,7 @@ my $class = shift; $class->SUPER::new ( + visible => 1, @_, ) } @@ -3033,8 +3035,8 @@ for (my @widgets = @children; my $w = pop @widgets; ) { push @widgets, $w->children; - $w->{root} = $self; - $w->{visible} = 1; + $w->{root} = $self; + $w->{visible} = $self->{visible} + 1; } for my $child (@children) {