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.37 by root, Thu May 25 01:26:53 2006 UTC vs.
Revision 1.38 by root, Thu May 25 02:23:14 2006 UTC

267 glVertex $::WIDTH, $::HEIGHT; 267 glVertex $::WIDTH, $::HEIGHT;
268 glVertex $::WIDTH, 0; 268 glVertex $::WIDTH, 0;
269 glEnd; 269 glEnd;
270 glDisable GL_BLEND; 270 glDisable GL_BLEND;
271 271
272 $self->{out_of_focus} ||= do { 272# $self->{out_of_focus} ||= do {
273 my $label = new CFClient::UI::Label 273# my $label = new CFClient::UI::Label
274 x => 0, 274# x => 0,
275 y => 0, 275# y => 0,
276 z => 1, 276# z => 1,
277 ellipsise => 0, 277# ellipsise => 0,
278 text => "map out of focus (click map to play)"; 278# text => "map out of focus (click map to play)";
279 279#
280 $label->show; 280# $label->show;
281 $label->update; 281# $label->update;
282 282#
283 $CFClient::UI::ROOT->on_post_alloc ("$self$label" => sub { 283# $CFClient::UI::ROOT->on_post_alloc ("$self$label" => sub {
284 $label->move ( 284# $label->move (
285 ($::WIDTH - $label->{w}) * 0.5, 285# ($::WIDTH - $label->{w}) * 0.5,
286 ($::HEIGHT - $label->{h}) * 0.5, 286# ($::HEIGHT - $label->{h}) * 0.5,
287 ); 287# );
288 }); 288# });
289 289#
290 $label 290# $label
291 }; 291# };
292 } 292 }
293} 293}
294 294
295sub DESTROY { 295sub DESTROY {
296 my $self = shift; 296 my $self = shift;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines