ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/Deliantra-Client/DC/UI.pm
(Generate patch)

Comparing deliantra/Deliantra-Client/DC/UI.pm (file contents):
Revision 1.220 by root, Mon May 22 03:28:55 2006 UTC vs.
Revision 1.221 by root, Mon May 22 03:48:50 2006 UTC

207} 207}
208 208
209sub show { 209sub show {
210 my ($self) = @_; 210 my ($self) = @_;
211 211
212 for (my @w = $self; @w; ) {
213 my $w = pop @w;
214 push @w, $w->children;
215 $w->{visible} = 1;
216 }
217
212 return if $self->{parent}; 218 return if $self->{parent};
213 219
214 $CFClient::UI::ROOT->add ($self); 220 $CFClient::UI::ROOT->add ($self);
215} 221}
216 222
217sub hide { 223sub hide {
218 my ($self) = @_; 224 my ($self) = @_;
225
226 for (my @w = $self; @w; ) {
227 my $w = pop @w;
228 push @w, $w->children;
229 $w->{visible} = 1;
230 }
219 231
220 undef $GRAB if $GRAB == $self; 232 undef $GRAB if $GRAB == $self;
221 undef $HOVER if $HOVER == $self; 233 undef $HOVER if $HOVER == $self;
222 234
223 $self->{parent}->remove ($self) 235 $self->{parent}->remove ($self)
427 Scalar::Util::weaken ($self->{parent} = $parent); 439 Scalar::Util::weaken ($self->{parent} = $parent);
428 440
429 # TODO: req_w _does_change after ->reconfigure 441 # TODO: req_w _does_change after ->reconfigure
430 $self->check_size 442 $self->check_size
431 unless exists $self->{req_w}; 443 unless exists $self->{req_w};
444
445 $self->show;
432} 446}
433 447
434sub check_size { 448sub check_size {
435 my ($self, $forced) = @_; 449 my ($self, $forced) = @_;
436 450

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines