ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/ext/item-worldmap.ext
(Generate patch)

Comparing deliantra/server/ext/item-worldmap.ext (file contents):
Revision 1.9 by root, Mon Jul 23 23:38:17 2007 UTC vs.
Revision 1.13 by root, Tue Jul 24 04:55:34 2007 UTC

25 my $label = $ws->new (Label => 25 my $label = $ws->new (Label =>
26 text => $k, 26 text => $k,
27 fontsize => 0.2, 27 fontsize => 0.2,
28 ); 28 );
29 29
30 my $marker = cf::face::find "res/map-arrow.png";
31 $ws->{ns}->send_face ($marker);
32 $ws->{ns}->flush_fx;
33 $marker = $ws->new (Face => 30 my $marker = $ws->new (Face =>
34 size_w => undef, 31 face => $ws->{ns}->need_face ("res/map-arrow.png"),
35 size_h => undef,
36 face => $marker,
37 ); 32 );
38 my $children = [$label, $marker]; 33 my $children = [$label, $marker];
39 34
40 $ws->{canvas}->add (my $vbox = $ws->new (VBox => 35 $ws->{canvas}->add (my $vbox = $ws->new (VBox =>
41 children => $children, 36 children => $children,
79 $_[0]{visibility} = $_[1]; 74 $_[0]{visibility} = $_[1];
80 update_worldmap $_[0]{ws} if $_[1]; 75 update_worldmap $_[0]{ws} if $_[1];
81 }, 76 },
82 ); 77 );
83 78
84 my $face = cf::face::find "res/worldmap.jpg";
85 $ns->send_face ($face);
86 $ns->flush_fx;
87
88 $w->add (my $sw = $ws->{window} = $ws->new (ScrolledWindow => scroll_x => 1, scroll_y => 1)); 79 $w->add (my $sw = $ws->{window} = $ws->new (ScrolledWindow => scroll_x => 1, scroll_y => 1));
89 $sw->add (my $canvas = $ws->{canvas} = $ws->new (Canvas => expand => 1)); 80 $sw->add (my $canvas = $ws->{canvas} = $ws->new (Canvas => expand => 1));
90 81
91 $ws->{mapface} = $ws->new (Face => 82 $ws->{mapface} = $ws->new (Face =>
92 expand => 1,
93 size_w => undef, 83 size_w => undef,
94 size_h => undef, 84 size_h => undef,
95 face => $face, 85 face => $ws->{ns}->need_face ("res/worldmap.jpg"),
96 ); 86 );
97 87
98 $ws->{canvas}->add ($ws->{mapface}); 88 $ws->{canvas}->add ($ws->{mapface});
99 89
100 $ws 90 $ws

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines