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

Comparing deliantra/Deliantra-Client/DC/MapWidget.pm (file contents):
Revision 1.32 by root, Mon May 22 03:40:43 2006 UTC vs.
Revision 1.34 by root, Tue May 23 21:14:41 2006 UTC

169 my $label = new CFClient::UI::Label 169 my $label = new CFClient::UI::Label
170 x => 0, 170 x => 0,
171 y => 0, 171 y => 0,
172 z => 1, 172 z => 1,
173 ellipsise => 0, 173 ellipsise => 0,
174 text => "Map Out of Focus (click map to play)"; 174 text => "map out of focus (click map to play)";
175 175
176 $label->show; 176 $label->show;
177 $label->update; 177 $label->update;
178 178
179 $CFClient::UI::ROOT->on_post_alloc ("$self$label" => sub { 179 $CFClient::UI::ROOT->on_post_alloc ("$self$label" => sub {
480 480
481 @match = map $self->{command}{$_->[0]}, 481 @match = map $self->{command}{$_->[0]},
482 sort { 482 sort {
483 $a->[1] <=> $b->[1] 483 $a->[1] <=> $b->[1]
484 or $self->{command}{$a->[0]}[4] <=> $self->{command}{$b->[0]}[4] 484 or $self->{command}{$a->[0]}[4] <=> $self->{command}{$b->[0]}[4]
485 or (length $a->[0]) <=> (length $b->[0])
485 } @match; 486 } @match;
486 487
487 $self->{last_search} = $cmd; 488 $self->{last_search} = $cmd;
488 $self->{last_match} = \@match; 489 $self->{last_match} = \@match;
489 490

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines